mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
check for TZ change post-install move tz.yml to 0-init
This commit is contained in:
parent
13f156c21d
commit
aafba9c520
2 changed files with 6 additions and 4 deletions
|
@ -74,8 +74,7 @@
|
||||||
|
|
||||||
# Put all computed vars here so derive properly from any prior var file
|
# Put all computed vars here so derive properly from any prior var file
|
||||||
- name: If the TZ is not set in env, set it to UTC
|
- name: If the TZ is not set in env, set it to UTC
|
||||||
set_fact: local_tz='UTC'
|
include_tasks: tz.yml
|
||||||
when: local_tz == ""
|
|
||||||
|
|
||||||
- name: Set port 80 for Admin Console
|
- name: Set port 80 for Admin Console
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Set to UTC if the TZ is not set already set
|
- name: Set to UTC if the TZ is not set already set
|
||||||
set_fact: local_tz='UTC' iiab_TZ='UTC'
|
set_fact:
|
||||||
|
local_tz: 'UTC'
|
||||||
|
iiab_TZ: 'UTC'
|
||||||
when: TZ_set.stdout == ""
|
when: TZ_set.stdout == ""
|
||||||
|
|
||||||
- name: Set default Timezone - Debian
|
- name: Set default Timezone - Debian
|
||||||
|
@ -16,5 +18,6 @@
|
||||||
when: is_redhat and iiab_TZ is defined and iiab_TZ != "" and iiab_TZ != "TZ_set.stdout"
|
when: is_redhat and iiab_TZ is defined and iiab_TZ != "" and iiab_TZ != "TZ_set.stdout"
|
||||||
|
|
||||||
- name: override ansible on timezone
|
- name: override ansible on timezone
|
||||||
set_fact: local_tz=TZ_set.stdout
|
set_fact:
|
||||||
|
local_tz: '{{ TZ_set.stdout }}'
|
||||||
when: TZ_set.stdout != ""
|
when: TZ_set.stdout != ""
|
Loading…
Add table
Add a link
Reference in a new issue