mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
dfebcd3120
commit
52d1757c35
1 changed files with 7 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
- name: ...IS BEGINNING ============================================
|
- name: ...IS BEGINNING ============================================
|
||||||
stat:
|
stat:
|
||||||
path: /etc/iiab/iiab.env
|
path: {{ iiab_env_file }}
|
||||||
register: NewInstall
|
register: NewInstall
|
||||||
|
|
||||||
- name: Setting first run flag
|
- name: Setting first run flag
|
||||||
|
@ -165,9 +165,9 @@
|
||||||
include_tasks: hostname.yml
|
include_tasks: hostname.yml
|
||||||
when: FQDN_changed
|
when: FQDN_changed
|
||||||
|
|
||||||
- name: Add 'runtime' section alongside list of services at /etc/iiab/iiab.ini
|
- name: Add 'runtime' variable values to /etc/iiab/iiab.ini
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "{{ iiab_config_file }}"
|
dest: "{{ iiab_ini_file }}"
|
||||||
section: runtime
|
section: runtime
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
|
@ -209,13 +209,9 @@
|
||||||
- option: FQDN_changed
|
- option: FQDN_changed
|
||||||
value: "{{ FQDN_changed }}"
|
value: "{{ FQDN_changed }}"
|
||||||
|
|
||||||
#- name: Now changing FQDN
|
- name: Add 'runtime' variable 'is_VM' value if defined, to /etc/iiab/iiab.ini
|
||||||
# include_tasks: hostname.yml
|
|
||||||
# when: FQDN_changed
|
|
||||||
|
|
||||||
- name: STAGE 0 HAS COMPLETED ======================================
|
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: "{{ iiab_config_file }}"
|
dest: "{{ iiab_ini_file }}"
|
||||||
section: runtime
|
section: runtime
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
|
@ -223,3 +219,5 @@
|
||||||
- option: is_VM
|
- option: is_VM
|
||||||
value: "yes"
|
value: "yes"
|
||||||
when: is_VM is defined
|
when: is_VM is defined
|
||||||
|
|
||||||
|
- name: STAGE 0 HAS COMPLETED ======================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue