Skip to content

Commit

Permalink
add roles configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanbekker authored Jun 14, 2018
1 parent ec27dfd commit 13525fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/configure-hosts-file/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Configure Hosts File
lineinfile: path=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: "{{ groups['docker'] }}"

0 comments on commit 13525fb

Please sign in to comment.