Deal with DabApps hostnames in a nicer way

Save keeping the vars clean
This commit is contained in:
Jake Howard 2020-06-04 09:21:26 +01:00
parent 75e1420fd6
commit 947b731116
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@
- import_tasks: tasks/media.yml
- import_tasks: tasks/dabapps.yml
when: ansible_fqdn == "TOO-Work"
when: ansible_fqdn in dabapps_hostnames
- import_tasks: tasks/mac.yml
when: "'Mac' in ansible_facts.product_name"

View file

@ -1,2 +1,5 @@
user: jake
home: /home/{{ user }}
dabapps_hostnames:
- TOO-Work
- big-mike