How do I write a task to obtain the stats of /etc/foo.config and check that the file still belongs to the root?
Hey @Neha, you can use the stats module provided by Ansible.
msg: "Whoops! file ownership has changed"
when: st.stat.pw_name != 'root'
Hey, you can use the k8s module ...READ MORE
Actually both are same. hosts file is ...READ MORE
Hey @Neel, According to the documentation,
Long running ...READ MORE
Hey @Harsh, use with_items to access the result ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Here is concept which you can follow.
blockinfile is ...READ MORE
Hey @Kyraa, to encrypt an existing file ...READ MORE
Already have an account? Sign in.