Trying to fix hosts file by defining it in config. Added when for POP!_OS.

This commit is contained in:
Hyperling 2020-12-21 05:50:12 -06:00
parent e898e88d56
commit 9a2bb2f7a8
3 changed files with 7 additions and 2 deletions

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
inventory = hosts

2
hosts
View File

@ -1,3 +1,3 @@
[workstations] [workstation]
x570 x570
dell dell

View File

@ -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