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.

Log4Shell Remote Code Execution Log4j (CVE-2021–44228)

Remember 2014? Heartbleed was a bug in OpenSSL, the most popular open-source code library…

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.

Ansible Copy Multiple Files

  • `ansible.builtin.fileglob`
  • list files matching a pattern

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”.

How to pass Extra Variables to Ansible Playbook?

  • --extra-vars "fruit=apple"
  • --extra-vars '{"fruit":"apple"}'
  • --extra-vars "@file.json"
  • --extra-vars "@file.yml"

How to automate the configuration of Kernel Parameters (sysctl, sysfs and hugepages) in RedHat-like Linux systems using Linux System Role “kernel_settings” from Ansible Galaxy.

Ansible Configure Kernel Parameters in RedHat-like systems

  • `linux-system-roles` Fedora, Enterprise Linux & CentOS
  • `rhel-system-roles` package Red Hat Enterprise…

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.

RHSB-2021–009

Ansible Playbook

Read about the line-by-line video of the Vulnerability Scanner/Detector Log4Shell Remote Code Execution Log4j (CVE-2021–44228) — Ansible…

How to automate the Linux Kernel module loading of the “dummy” module with parameters on an example machine with Ansible.

Ansible Load and Unload Kernel Modules in Linux

  • community.general.modprobe
  • Load or unload kernel modules

How to automate the setting or verification of the Linux sysctl kernel parameter “vm.swappiness” to 5 with Ansible.

Ansible set sysctl kernel parameters

  • ansible.posix.sysctl
  • Manage entries in sysctl.conf

How to troubleshoot the Windows 11 WSL: Windows Subsystem for Linux — Error: 0x80370102 The virtual machine could not be started because a required feature is not installed. How to verify the Windows Feature and workaround using the Windows Subsystem for Linux version 1.

Windows Subsystem for Linux — Ubuntu distribution

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required…

How to install and maintain Ansible inside Windows 11 using the Windows Subsystem for Linux and Ubuntu 20.04 LTS.

How to install Ansible in Windows 11

Today we’re talking about How to install Ansible…

How to solve the “role not found” error using ansible-galaxy command-line utility and requirements.yml file to download and use “lucab85.ansible_role_log4shell” Ansible Role from Ansible Galaxy.

demo

The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the `role not found…

Ansible Pilot

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store