When sudo ask method not working and /etc folder permission error.
We need to do below fix,
1) need to add 'sudo: yes' and 'become: yes' to all the task which need to run as root.
- name: modify the resolv.conf
sudo: yes
become:yes
copy:
src: napa_resolv
dest: /etc/resolv.conf
backup: yes
owner: root
group: root
mode: 0544
We need to do below fix,
1) need to add 'sudo: yes' and 'become: yes' to all the task which need to run as root.
- name: modify the resolv.conf
sudo: yes
become:yes
copy:
src: napa_resolv
dest: /etc/resolv.conf
backup: yes
owner: root
group: root
mode: 0544
No comments:
Post a Comment