Ansible Pilot
About
Contact
Books
Udemy
Articles
filesystem
Sep 9, 21
Delete file or directory - Ansible module file
A real-life example about how the "deleteme" file and the "deleteme" directory with Ansible. Tested in a target Linux machine as well for idempotency of the Ansible Playbook.
#ansible
#delete
#filesystem
#linux
#rhel
#centos
#fedora
#ubuntu
#debian
#suse
Sep 6, 21
Change file permission - Ansible module file
How to change file or directory permission with Ansible? I’m going to show you a live demo and some simple Ansible code to change chmod and group of a test.txt file.
#ansible
#permission
#linux
#filesystem
#authorization
#authentication
#chmod
#chgrp
Aug 25, 21
Check if a file exists - Ansible module stat
How to check if a file exists in Ansible? I’m going to show you a live demo and some simple Ansible code. I'm going to show you how to combine the "stat" module with conditional to verify an existing and not existing path.
#ansible
#stat
#module
#file
#filesystem
Jul 29, 21
Check if a directory exists - Ansible module stat
Deep dive into the Ansible module stat of the collection ansible.builtin to test if a specified path is a directory and print a message. Live demo and Ansible playbook included.
#ansible
#stat
#module
#directory
#rhel
#centos
#fedora
#ubuntu
#debian
#suse
#filesystem
««
«
1
2
»
»»
Red Hat Security Bulletin
Follow me
Subscribe not to miss any new releases
Search
Results
No results found
Try adjusting your search query