DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Developing and Testing Ansible Roles with Molecule and Podman - Part 2

4 years ago www.ansible.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com