Skip to content

Commit

Permalink
Merge pull request #19 from dustinblack/fix-etc-hosts-enumeration
Browse files Browse the repository at this point in the history
change regex match for hosts file to correct 10+ nodes bug
  • Loading branch information
dustinblack committed Feb 15, 2018
2 parents 94f9dc5 + 8a6d2a4 commit cb9f5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/g1-etc-hosts.yml
Expand Up @@ -3,7 +3,7 @@
- name: build /etc/hosts file
lineinfile:
dest: /etc/hosts
regexp: ".*{{ item.value.hostname }}.*"
regexp: ".*{{ item.value.hostname }}.{{ domain_name }}.*"
line: "{{ item.value.ip }} {{ item.value.hostname }} {{ item.value.hostname }}.{{ domain_name }}"
state: present
with_dict: '{{ nodeInfo }}'

0 comments on commit cb9f5a3

Please sign in to comment.