Testing different ways of doing conditional. Also moved inventory to hosts.
This commit is contained in:
parent
b91a51eb4e
commit
e898e88d56
@ -3,10 +3,13 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- include: tasks/users.yml
|
||||
- include: tasks/cron.yml
|
||||
- include: tasks/packages.yml
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
||||
- hosts: workstations
|
||||
become: true
|
||||
tasks:
|
||||
- include: tasks/flatpaks.yml
|
||||
when: workstations
|
||||
|
Loading…
x
Reference in New Issue
Block a user