1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/netvars/tasks/main.yml
2017-10-26 10:48:40 -05:00

17 lines
488 B
YAML

- name: Determine if runansible was run
stat: path=/etc/iiab/iiab.env
register: NewInstall
- name: Setting first run flag
set_fact:
first_run: True
when: not NewInstall.stat.exists
# when: NewInstall.stat.exists is defined and not NewInstall.stat.exists
# we need to inialize the ini file
- include: roles/1-prep/tasks/iiab_ini.yml
when: first_run
- include: roles/1-prep/tasks/computed_vars.yml
- include: roles/1-prep/tasks/detected_network.yml
when: not installing