Jan 26, 22
Install Docker in Windows-like systems - Ansible module win_chocolatey
How to automate the installation of the latest version of Docker Desktop in your Windows-like system with Ansible Playbook and Chocolatey.
Jan 25, 22
Read file from remote hosts - Ansible module slurp
How to automate the read of /proc/cpuinfo file from Linux remote host with Ansible. The file is copied as base 64 encoding and decoded with an Ansible Filter.
Jan 24, 22
Install Docker in RedHat-like systems - Ansible module rpm_key, yum_repository and yum
How to automate the installation of the docker-ce engine in Fedora 35 x86_64 (or amd64) using Ansible Playbook. The procedure is going to take care of the GPG signing key, add a repository into the sources list, and install the latest docker-ce package. Included Demo for RedHat-like workstation (RedHat Enterprise Linux, CentOS, CentOS Stream, Fedora).
Jan 24, 22
Install Docker in Debian-like systems - Ansible module apt_key, apt_repository and apt
How to automate the installation of the docker-ce engine in Ubuntu 20.04 LTS x86_64 (or amd64) using Ansible Playbook. The procedure is going to take care of the GPG signing key, add a repository into the sources list, and install the latest docker-ce package. Included Demo for Debian-like workstation (Debian and Ubuntu).
Jan 21, 22
How to install Ansible in RedHat Enterprise Linux (RHEL) 9 Beta - Ansible install
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9 Beta included in the RHEL 9 AppStream repository.
Jan 21, 22
How to install Ansible in Oracle Linux 8 - Ansible install
How to install and maintain up-to-date Ansible inside Oracle Linux 8 using the EPEL repository.
Jan 18, 22
Break a string over multiple lines - Ansible Literal and Folded Block Scalar operators
How to use multi-line YAML variables in Ansible using the "|", Literal Block Scalar, and the ">", Folded Block Scalar, operators. Plus how to elide the new line "\n" at the end of the line and print multi-line with debug module on a terminal.
Jan 17, 22
Copy Multiple Files to Remote Hosts - Local to Remote - Ansible lookup plugin fileglob
How to automate the copy of the "example/*.txt" files to a target host using the with_fileglob Ansible loop statement and Ansible lookup plugin fileglob.
Jan 15, 22
How to Pass Variables to Ansible Playbook in command line? - Ansible extra variables
How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. Very useful to combine some script, automation, or shell variables. Example with fruit variable defined as “banana” and changed to “apple” or “raspberry”.
Jan 13, 22
Configure Kernel Parameters in RedHat-like Linux systems - Ansible system role
How to automate the configuration of Kernel Parameters (sysctl, sysfs, and hugepages) in RedHat-like Linux systems using Linux System Role "linux-system-role.kernel_settings" from Ansible Galaxy.
Jan 12, 22
Load and Unload Kernel Modules in Linux - Ansible module modprobe
How to automate the Linux Kernel module loading of the "dummy" module with parameters on an example machine with Ansible.
Jan 12, 22
Ansible code in RHSB-2021-009 Log4Shell - Remote Code Execution - log4j (CVE-2021-44228)
How to automate the Vulnerability Scanner/Detector provided by Red Hat RHSB-2021–009 Log4Shell — Remote Code Execution — log4j (CVE-2021–44228) with Ansible Playbook. Installation of dependency, GPG key verification, Vulnerability Scanner/Detector run, and result display on target Linux machine.