1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move hostname handling from network role --edited double check after rebase

This commit is contained in:
Jerry Vonau 2017-10-08 14:42:55 -05:00
parent b81c2c5121
commit c0590d973e
5 changed files with 30 additions and 47 deletions

View file

@ -47,6 +47,15 @@
file: path=/tmp/heart-beat.txt
state=absent
- name: no prior domain name
set_fact:
iiab_domain: "{{ iiab_domain }}"
iiab_hostname: "{{ iiab_hostname }}"
# Now check FQDN
- include: roles/2-common/tasks/hostname.yml
when: not first_run and "iiab_hostname.iiab_domain" != ansible_fqdn
# 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
set_fact: local_tz='UTC'