How to do sudo with Ansible

1 · Hayato Iriumi · Jan. 1, 2022, 3:25 a.m.
Now I have the following content in my test.yaml playbook. I want Ansible to write a file under /etc directory. When I execute it like the following, I get an error. Obviously, azureuser does not have permission to write out the file, so how do we do sudo in Ansible? You just have to pass … Continue reading "How to do sudo with Ansible"...