1
0
Fork 0
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:
A Holt 2018-10-15 05:05:20 -04:00 committed by GitHub
parent dfebcd3120
commit 52d1757c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ======================================