Category: Ubuntu, automation, yaml, ansible

Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. Ansible is powerful IT automation that you can learn quickly.

Edit the file “tasks/main.yaml” and include this task: Save the file and “converge” the instances by running “molecule converge”.

By using Molecule, you can quickly evaluate the result of your tasks in all platforms and verify if the role works according to the requirements!

Start with RHEL8 by adding a file “RedHat.yaml” under the “vars” sub-directory with this content: Save this file and add the corresponding file “vars/Debian.yaml” for Ubuntu: Save this file and modify the “tasks/main.yaml” file to include these variable files according to the OS family identified by Ansible via the system fact variable “ansible_os_family”.

Related Articles