Deal with DabApps hostnames in a nicer way
Save keeping the vars clean
This commit is contained in:
parent
75e1420fd6
commit
947b731116
2 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
- import_tasks: tasks/media.yml
|
- import_tasks: tasks/media.yml
|
||||||
|
|
||||||
- import_tasks: tasks/dabapps.yml
|
- import_tasks: tasks/dabapps.yml
|
||||||
when: ansible_fqdn == "TOO-Work"
|
when: ansible_fqdn in dabapps_hostnames
|
||||||
|
|
||||||
- import_tasks: tasks/mac.yml
|
- import_tasks: tasks/mac.yml
|
||||||
when: "'Mac' in ansible_facts.product_name"
|
when: "'Mac' in ansible_facts.product_name"
|
||||||
|
|
3
vars.yml
3
vars.yml
|
@ -1,2 +1,5 @@
|
||||||
user: jake
|
user: jake
|
||||||
home: /home/{{ user }}
|
home: /home/{{ user }}
|
||||||
|
dabapps_hostnames:
|
||||||
|
- TOO-Work
|
||||||
|
- big-mike
|
||||||
|
|
Loading…
Reference in a new issue