Testing different ways of doing conditional. Also moved inventory to hosts.

This commit is contained in:
Hyperling 2020-12-21 05:44:28 -06:00
parent b91a51eb4e
commit e898e88d56
2 changed files with 5 additions and 2 deletions

View File

View File

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