Commit ce31381d authored by Chris's avatar Chris
Browse files

Update the 'ansible_hostname' fact after we set the hostname

parent c5f29f89
......@@ -20,6 +20,9 @@
regexp: '^'
line: ' {{ hostname }}'
state: present
- name: Set 'ansible_hostname' fact to the new hostname
ansible_hostname: '{{ hostname }}'
when: hostname is defined and hostname != None and hostname != ''
# Install common packages and utils
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment