python
48 Ansible tutorials tagged “python”. Working examples covering automation, configuration management, and DevOps workflows.
Ansible pip — Manage Python Packages
playbooks · 4
Use the Ansible pip module to install, update, and remove Python packages. Virtual environments, requirements files, and version pinning for Python.
Fix Ansible Python Version Errors
troubleshooting · 2
Resolve Ansible Python interpreter errors including 'interpreter_python' warnings, Python 2 vs 3 issues, and virtualenv configuration.
AI DevOps Ansible Community on Skool
cloud-virtualization · 3
Join Luca Berton's AI DevOps Ansible Community for top-tier training in Ansible, Kubernetes, and Terraform. Access 50+ hours of courses and career support!
Ansible VMware — Add Disk to VM
playbooks · 3
Learn how to add a disk to a VMware VM using an Ansible playbook. This guide includes the YAML configuration, variables, and execution steps for easy.
Configure Ansible Dynamic Inventory for VMware in Simple Steps
playbooks · 2
Discover how to configure Ansible Dynamic Inventory for VMware to automate and manage virtual machines efficiently. Step-by-step guide with Playbook.
Ansible Dynamic Inventory Plugins — Write Your Own
playbooks · 6
Write custom Ansible dynamic inventory plugins. Complete guide to the inventory plugin API — parsing, caching, grouping, hostvars, and packaging in.
Automate EC2 Creation with Ansible: YAML Playbook Demo
playbooks · 6
Explore an Ansible playbook for creating EC2 instances on AWS. Learn to use ec2_ami_info, ec2_instance, set_fact, and shell modules in a live Playbook.
Ansible SDK: Run Ansible Programmatically from Python
playbooks · 5
Complete guide to the Ansible SDK Python library. Learn how to run playbooks programmatically, use AnsibleJobDef and JobExecutor, integrate with.
Ansible Troubleshooting Installation Issues on macOS and Python
playbooks · 3
Learn how to resolve the ImportError for Jinja2 when installing Ansible on macOS using Homebrew, ensuring smooth automation setup.
Ansible: Fix 'Failed to Import botocore or boto3' for AWS
playbooks · 4
Learn how to troubleshoot and fix the "Failed to import the required Python library (botocore or boto3)" error in Ansible for AWS with a live Playbook.
Ansible troubleshooting — Error markupsafe
modules · 3
Resolve the No module named markupsafe error in Ansible by reinstalling Ansible, ansible-lint, and python-markupsafe via Homebrew.
Fix ModuleNotFoundError: No module named 'ansible'
playbooks · 6
Fix the ModuleNotFoundError: No module named 'ansible' error. Diagnose Python environment mismatches, PATH issues, pip vs pipx installs, and virtual.
Fix Ansible VMware PyVmomi Error
playbooks · 3
Let’s troubleshoot together the Ansible fatal error “Failed to import the required Python library (PyVmomi)” to find the root cause, install the.
Getting Started with Amazon EC2 Instances
playbooks · 5
Learn how to automate EC2 instance creation on AWS with Ansible. This guide covers essential setup, configuration, and management for seamless cloud.
Build Ansible Execution Environment
playbooks · 4
Learn how to build a custom Ansible Execution Environment using the ansible-builder tool. Manage system, Python, and collection dependencies effectively.
Ansible Execution Environments — Build
playbooks · 4
Build custom Ansible Execution Environments with ansible-builder. Add collections, Python packages, and system deps. Run with ansible-runner.
Can Ansible Run Python Scripts?
playbooks · 4
Learn how Ansible can execute Python scripts on target systems, its requirements, and examples for automating Python-based workflows.
Configuring Ansible for AWS: Setup Guide & Playbook
playbooks · 5
Set up Ansible for AWS with IAM credentials, boto3, and the amazon.aws collection. Follow our guide to configure and execute your first AWS playbook.
Ansible community.vmware Collection Setup
playbooks · 4
Configure Ansible for VMware vSphere with community.vmware collection. Install pyVmomi, set credentials, and manage VMs with complete playbook examples.
Configure a Python Virtual Environment for Ansible AWS — ansible collection amazon.aws
playbooks · 3
Learn to configure a Python Virtual Environment for Ansible AWS amazon.aws collection using the latest Python 3.8 and boto3 library releases.
Ansible VMware community.vmware venv
playbooks · 4
Learn how to set up a Python Virtual Environment for Ansible VMware, ensuring seamless integration and management of your VMware infrastructure with.
Configuring ansible_python_interpreter in Ansible
playbooks · 3
Learn how to use ansible_python_interpreter to configure the Python interpreter in Ansible, ensure compatibility across hosts, and manage multiple versions.
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.
Create VMware vSphere VM with Ansible: Full Playbook Guide
playbooks · 3
Master creating VMware vSphere VMs using Ansible. Our guide provides a comprehensive playbook and step-by-step instructions for VM setup and management.
Ansible AWS S3 Bucket — Create
playbooks · 7
Discover how to automate the creation of AWS S3 buckets using Ansible. Our detailed guide covers the prerequisites, step-by-step playbook creation.
Creating Ansible Collection Using ansible-creator and VS Code Ansible Extension
playbooks · 5
Create and scaffold Ansible Collections using ansible-creator and the VS Code Ansible Extension. Complete guide with CLI commands, directory structure.
Creating Custom Ansible Plugins to Fetch API Data Easily
playbooks · 3
Learn how to create custom Ansible plugins to fetch data from APIs. Enhance your automation tasks with this detailed step-by-step guide.
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.
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.
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.
Creating an Application Load Balancer with Ansible in AWS
playbooks · 4
Automating AWS Infrastructure with Ansible - Creating an Application Load Balancer in AWS. Tested on real machines with clear, copy-paste examples.
Custom hello-world Ansible Filter Plugin
playbooks · 3
Unveiling Ansible’s “hello-world” Filter Plugin in foo.bar: A glimpse into personalized automation for tailored solutions.
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.
Ansible vmware_guest — Deploy VM
playbooks · 2
How to automate the deployment of a virtual machine guest from “mytemplate” template using Ansible Playbook and vmware_guest module.
Effortlessly Create AWS IAM Users and Store their Access Keys with Ansible
playbooks · 6
Effortlessly create AWS IAM users and store their access keys securely with Ansible and AWS SSM Parameter Store, ensuring scalable and secure management.
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.
Ansible VMware ESXi Host Info
playbooks · 14
Discover how to gather info about VMware ESX/ESXi hosts in a cluster using Ansible. Follow our live Playbook and simple code examples to get started.
Get VMware vSphere Virtual Machine UUID — Ansible module vmware_guest_info
playbooks · 3
How to automate the gathering of UUID of a specific “myvm” VMware vSphere Virtual Machine using Ansible Playbook and vmware_guest_info module.
Handling Primary Variable Changes Without Breaking Dependencies
troubleshooting · 2
Learn how to address issues caused by changes to primary variables in your configuration or scripts. Discover strategies like validation, error handling,.
How to install Ansible with PIP — Ansible install
playbooks · 3
How to install Ansible with PIP - the Python package manager. Step-by-step Ansible tutorial with practical examples and best practices.
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.
Leveraging Poetry for Efficient Virtual Environment Management
playbooks · 4
Unveiling the Verses: Navigating Virtual Environments with Poetry and Ansible. Tested on real machines with clear, copy-paste examples.
Managing Virtual Environments with Pipenv for Ansible Projects
playbooks · 5
Set up isolated Python environments for Ansible with Pipenv. Install Ansible in a virtual environment, manage dependencies with Pipfile, compare Pipenv vs.
Mastering Time in Ansible: The now() Function Guide
playbooks · 6
Complete guide to the Ansible now() function. Format dates with strftime, calculate uptime, compare timestamps, and use UTC/local time in playbooks.
Ansible OPA Policy Validation
playbooks · 4
A comprehensive guide to setting up and using the Ansible Policy tool for managing policies in your Ansible projects and create effective Rolebook.
Run a Python Script on Remote Machines — Ansible module script
playbooks · 7
How to automate the execution of a "cars.py" custom Python script on a remote machine after transferring it and processing the output as an Ansible.
Search for AWS EC2 AMI ID by Region — Ansible module ec2_ami_info
playbooks · 3
How to automate the search of an AWS EC2 machine AMI ID running the operating system RHEL-8.3.0 in the region "us-east-1" using Ansible Playbook.
Setting Up Neo4j GenAI Environment on Fedora Using Ansible
playbooks · 5
Learn how to set up a Neo4j GenAI environment on Fedora using Ansible, including full-text and vector indexing, and OpenAI integration