Sep 1, 21
Remove user account - Ansible module user
How to remove an example user removing home directory and spool files.
Aug 27, 21
Extract an archive - Ansible module unarchive
Live console coding how to download a zip file and extract it in a user home directory. The playbook is also taking care of the necessary softwre dependencies.
Aug 26, 21
Create user account - Ansible module user
How to create an example user with home directory, groups, password, and SSH key file with Ansible Playbook.
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.
Aug 24, 21
Restart services on remote hosts - Ansible module service
How to restart services on a managed host using Ansible? The service module supports init systems include BSD init, OpenRC, SysV, Solaris SMF, systemd, upstart. I'm going to show you how to restart services on a Linux-managed host with some simple code.
Aug 20, 21
Test Windows host availability - Ansible module win_ping
Deep dive into the Ansible module win_ping in the collection ansible.windows to test the access to a managed Windows host and that that there is a shell usually PowerShell available. Live demo and Ansible playbook included.