scripting
14 Ansible tutorials tagged “scripting”. Working examples covering automation, configuration management, and DevOps workflows.
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 troubleshooting — Error: name[template]
playbooks · 4
The name[template] error in Ansible highlights issues with task naming, particularly involving improper use of Jinja templates.
Automating Dynamic Time Date Facts with Ansible
playbooks · 6
Learn how to work with dates, timestamps, and time formatting in Ansible playbooks using set_fact, now(), ansible_date_time, and strftime filters with.
Automating File Extension Validation with Ansible
playbooks · 3
Learn how to structure an Ansible playbook to validate file extensions, ensuring files end with specified formats like .csv or .txt through practical.
Automating PostgreSQL Configuration with Ansible Setting Maximum Connections
playbooks · 7
Learn how to use Ansible lineinfile module to configure PostgreSQL max_connections and other settings. Complete guide with playbooks for tuning.
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.
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.
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.
YAML Multiline Strings — Folded & Literal
playbooks · 3
Break long strings across multiple lines in Ansible YAML. Use folded (>), literal (|), chomp indicators, and Jinja2 line breaks with examples.
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.
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.
Simplify Ansible Output with the community.general.dense Callback Plugin
playbooks · 3
Learn how to reduce verbosity in Ansible output using callback plugins, enhancing efficiency and integration in large-scale automation tasks.
Simplifying Ansible Output with the community.general.unixy Callback Plugin
playbooks · 3
Learn how to enhance Ansible playbook readability by using the community.general.unixy callback plugin for cleaner and more concise output.
Understanding Split in Ansible: A Powerful Tool for Data Transformation
playbooks · 3
Learn to use the split filter in Ansible Playbooks for tasks like converting CSV strings to lists, extracting substrings, and splitting lists into smaller.