Code

27 Ansible tutorials tagged “Code”. Working examples covering automation, configuration management, and DevOps workflows.

Luca Berton on 2023's Skills-Based Economy & 2024 Automation Goals

troubleshooting · 2

Explore Luca Berton reflections on 2023 skills-based economy and his ambitious goals for 2024. Stay informed on the latest in IT automation and learning.

Advanced

Understanding Ansible Builtin vs Legacy Collections: Key Differences

playbooks · 5

Explore the essential differences between Ansible's ansible.builtin and ansible.legacy collections. Understand how each affects your playbooks with.

Advanced

Ansible troubleshooting — VMware Unknown error while connecting to vCenter or ESXi

playbooks · 3

Let’s troubleshoot together the Ansible fatal error “Unknown error while connecting to vCenter or ESXi API, [Errno -2] Name or service not known” to.

Beginner

Fix Ansible VMware Certificate Error

playbooks · 4

Learn how to resolve the "certificate verify failed" error in Ansible when connecting to VMware vCenter. Follow our step-by-step guide for a smooth fix.

Beginner

Automate Redmine Installation on Ubuntu LTS 22.04 with Ansible

playbooks · 4

Learn how to automate the installation of Redmine on Ubuntu 22.04 LTS using Ansible, ensuring a consistent and efficient deployment process for your.

Advanced

Automate Tasks with Ansible: Execute Actions at 10:55

playbooks · 3

Learn how to automate scheduled tasks in Ansible. This guide demonstrates executing a playbook at 10:55, including time calculations and waiting.

Beginner

Comparing versions — ansible.builtin.version plugin

playbooks · 4

Using Ansible to compare versions and ensure consistency across your infrastructure with the ansible.builtin.version plugin.

Beginner

Crafting and Publishing Your Custom Ansible Collection on Automation Hub

modules · 4

Learn to create and publish a custom Ansible Collection "test.test" on Automation Hub. Follow steps to initialize, customize, build, and upload your.

Beginner

Creating a Custom Ansible Lookup Plugin in Python for Reading a File

playbooks · 7

Create a custom Ansible lookup plugin in Python to extend capabilities for reading file contents on the Ansible controller, enhancing file retrieval.

Beginner

Creating a Custom Ansible Lookup Plugin in Python for retrieving API token

playbooks · 6

Learn how to create an Ansible lookup plugin to fetch API tokens, with a complete example of the token.py plugin code and step-by-step explanations.

Beginner

Creating a New Ansible Collection: A Step-by-Step Guide

modules · 4

Create a new Ansible Collection "test.test" with ansible-galaxy. Follow steps to initialize, build, and verify the collection, resulting in a.

Beginner

Customizing Ansible: Ansible Module Creation

playbooks · 5

Learn how to create custom Ansible modules in Python, utilizing Ansible Module Utils for efficient development. Follow best practices and explore an.

Advanced

Download and Use Ansible Galaxy Collection — ansible-galaxy and requirements.yml

playbooks · 3

Learn how to download and use the Ansible Galaxy Collection community.general with ansible-core in a system, including a real-life example.

Beginner

Download and Use Ansible Galaxy Role — ansible-galaxy and requirements.yml

playbooks · 3

Learn how to download and use the Ansible Galaxy Role lucab85.ansible_role_log4shell with ansible-core, including a step-by-step example.

Beginner

Efficient Automation with Ansible

playbooks · 3

A Practical Guide for DevOps Professionals by Michael Knyazev, Gineesh Madapparambath, and Nicholas Wong. With tested, real-world examples.

Advanced

Executing Custom Lookup Plugins in the Ansible Automation Platform

playbooks · 4

How to execute two custom Ansible Lookup Plugins to interact with API and read the contents of files in the local Ansible Controller.

Beginner

Exploring Ansible Playbook Gather Facts for Displaying Network Information

playbooks · 4

Streamlining Network Information Retrieval with Ansible’s Declarative Playbooks using the setup Ansible module. With clear, copy-paste, step-by-step examples.

Advanced

How to install ansible-lint in macOS

playbooks · 3

How to install the ansible-lint command line utility and use it to improve our Ansible Playbooks in macOS Intel and Silicon.

Beginner

Improve Playbook Debugging Using Ansible Lint

playbooks · 4

Explore how Ansible lint, a crucial command-line tool, improves Ansible automation by checking code quality, reducing errors, and enhancing playbook.

Beginner

Introducing the zabbix_add_host Ansible Role Simplifying Certificate Validation with Zabbix

playbooks · 5

Simplifying Zabbix Server Management with the ‘zabbix_add_host’ Ansible Role by Steffen Scheib, Senior Technical Account Manager at Red Hat

Advanced

Leveraging Ansible Callback Plugins for Enhanced Performance

playbooks · 4

Profiling, Troubleshooting, and Optimizing Resources in Ansible Automation with timer, profile_tasks, and profile_roles Callback Plugins

Beginner

Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation

playbooks · 2

Exploring the Power of OpenAI’s ChatGPT in Revolutionizing Ansible Coding: Advancing Automation to the Next Level. Tested, copy-paste examples included.

Advanced

Ansible Handler — Run Immediately

playbooks · 2

How to flush the execution of an Ansible handler after the notification task using the ansible.builtin.meta module. Tested, copy-paste examples included.

Beginner

Ansible Sudo Password — Secure become

playbooks · 6

Configure sudo password for Ansible become. Use --ask-become-pass, ansible-vault encrypted vars, and NOPASSWD sudoers safely.

Beginner

Streamline Ansible Development with Auto-Fixing FCQN Violations

playbooks · 8

Learn how to use ansible-lint to automatically fix FCQN rule violations in Ansible playbooks, ensuring consistent, high-quality automation code.

Advanced

The Ultimate Automation Guide Books to Master Ansible

playbooks · 4

A list of seven books to learn the automation that saves time, reduces human errors, and boosts your skill and productivity.

Advanced

Two Ways to Run Multiple Ansible Handlers — Ansible Playbook

playbooks · 2

Discover two methods to trigger multiple Ansible handlers based on changed status in playbooks, enhancing task execution efficiency.

Beginner