I am trying to copy a file in to /etc. But I am getting “msg: Destination /etc not writable” when i run the playbook. Here is my Playbook task part. Really Appreciate your help.
- name: copy rsyslog
msg: Destination /etc not writable
Note:I have provided the ssh and sudo pass while running the Playbook.
Instead of using
sudo with your tasks, try adding
become: yes with your playbook
- hosts: all
Also, make sure that you are really entering the
sudo password instead of the user password.