- name: copy resolv.conf
become: root
become_method: sudo
copy:
src: "resolv.conf"
dest: "/etc/resolv.conf"
owner: root
group: root
mode: 0644
force: yes
Error "The destination directory (/etc) is not writable" occur
The problem is with function become - this function require true or false as parameter
Working configuration is (SOLVED)
- name: copy resolv.conf
become: yes
become_method: sudo
copy:
src: "resolv.conf"
dest: "/etc/resolv.conf"
owner: root
group: root
mode: 0644
force: yes
roles/os_conf_dn
No comments:
Post a Comment