Trying to fix hosts file by defining it in config. Added when for POP!_OS.
This commit is contained in:
parent
e898e88d56
commit
9a2bb2f7a8
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
inventory = hosts
|
2
hosts
2
hosts
@ -1,3 +1,3 @@
|
||||
[workstations]
|
||||
[workstation]
|
||||
x570
|
||||
dell
|
||||
|
@ -9,7 +9,10 @@
|
||||
- include: tasks/packages.yml
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
||||
- hosts: workstations
|
||||
- include: tasks/flatpaks.yml
|
||||
when: ansible_distribution == "Pop!_OS"
|
||||
|
||||
- hosts: workstation
|
||||
become: true
|
||||
tasks:
|
||||
- include: tasks/flatpaks.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user