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