42684/task-obtain-stats-config-check-file-still-belongs-root-ansible
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.
- stat: path: /etc/foo.conf register: st - fail: msg: "Whoops! file ownership has changed" when: st.stat.pw_name != 'root'
Hey, you can use the k8s module ...READ MORE
Hi@akhtar, I think your file does not have ...READ MORE
Hi@akhtar, You can find one argument in the ...READ MORE
Hi@akhtar, Ansible registers module used to capture/store the ...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
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.