Merge "Use become: True when updating /etc/hosts"

This commit is contained in:
Jenkins 2016-11-03 14:15:16 +00:00 committed by Gerrit Code Review
commit 7a07ce0862
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@
{% for host in groups['all'] %}
{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }}
{% endfor %}
become: True
when: customize_etc_hosts | bool == True
- name: Ensure sudo group is present