mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
change netvars to 0-init
This commit is contained in:
parent
99633173a4
commit
2d49a1590b
7 changed files with 6 additions and 6 deletions
1
roles/0-init/defaults/main.yml
Symbolic link
1
roles/0-init/defaults/main.yml
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/iiab/iiab/roles/1-prep/defaults/main.yml
|
15
roles/0-init/tasks/main.yml
Normal file
15
roles/0-init/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- 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
|
||||
|
||||
# we need to inialize the ini file and only write the location and version sections once and only
|
||||
# once to preserve the install date and git hash.
|
||||
- include: roles/1-prep/tasks/iiab_ini.yml
|
||||
when: first_run
|
||||
# Now load the computed vars
|
||||
- include: roles/1-prep/tasks/computed_vars.yml
|
Loading…
Add table
Add a link
Reference in a new issue