Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
ansible/roles/baremetal/tasks/pre-install.yml: use ansible_fqdn to re…
Browse files Browse the repository at this point in the history
…liable get fqdn
  • Loading branch information
Fabian Zimmermann committed Jan 23, 2020
1 parent 9698041 commit 3058f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/baremetal/tasks/pre-install.yml
Expand Up @@ -23,7 +23,7 @@
- name: Ensure hostname does not point to loopback in /etc/hosts
lineinfile:
dest: /etc/hosts
regexp: "^127.\\d+.\\d+.\\d+(\\s+{{ ansible_nodename }})?\\s+{{ ansible_hostname }}$"
regexp: "^127.\\d+.\\d+.\\d+(\\s+{{ ansible_fqdn }})?\\s+{{ ansible_hostname }}$"
state: absent
become: True
when: customize_etc_hosts | bool
Expand Down

0 comments on commit 3058f60

Please sign in to comment.