From 52d1757c35c534d47d0b97fa5f4809b177e61e6c Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 15 Oct 2018 05:05:20 -0400 Subject: [PATCH] Update main.yml --- roles/0-init/tasks/main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/roles/0-init/tasks/main.yml b/roles/0-init/tasks/main.yml index ae246e1de..d2e598ba8 100644 --- a/roles/0-init/tasks/main.yml +++ b/roles/0-init/tasks/main.yml @@ -2,7 +2,7 @@ - name: ...IS BEGINNING ============================================ stat: - path: /etc/iiab/iiab.env + path: {{ iiab_env_file }} register: NewInstall - name: Setting first run flag @@ -165,9 +165,9 @@ include_tasks: hostname.yml 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: - dest: "{{ iiab_config_file }}" + dest: "{{ iiab_ini_file }}" section: runtime option: "{{ item.option }}" value: "{{ item.value }}" @@ -209,13 +209,9 @@ - option: FQDN_changed value: "{{ FQDN_changed }}" -#- name: Now changing FQDN -# include_tasks: hostname.yml -# when: FQDN_changed - -- name: STAGE 0 HAS COMPLETED ====================================== +- name: Add 'runtime' variable 'is_VM' value if defined, to /etc/iiab/iiab.ini ini_file: - dest: "{{ iiab_config_file }}" + dest: "{{ iiab_ini_file }}" section: runtime option: "{{ item.option }}" value: "{{ item.value }}" @@ -223,3 +219,5 @@ - option: is_VM value: "yes" when: is_VM is defined + +- name: STAGE 0 HAS COMPLETED ======================================