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
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: tasks/users.yml
|
- include: tasks/users.yml
|
||||||
- include: tasks/cron.yml
|
- include: tasks/cron.yml
|
||||||
- include: tasks/packages.yml
|
- include: tasks/packages.yml
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
|
|
||||||
|
- hosts: workstations
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
- include: tasks/flatpaks.yml
|
- include: tasks/flatpaks.yml
|
||||||
when: workstations
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user