Top "Ansible-2.x" questions

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy.

how to read json file using ansible

I have a json file in the same directory where my ansible script is. Following is the content of json …

ansible ansible-playbook ansible-2.x
calling an ansible playbook with tag and parameter

I am trying to call an ansible v2.1 playbook (notifications.yml) from another playbook using an include statement. I would …

ansible ansible-2.x
Update Ansible 1.9.4 to Ansible 2.0

I have uninstall ansible 1.9.4 and install with sudo apt-get install ansible, the version 2.0.2. But when I execute: ikerlan$ ansible --version …

ansible ansible-2.x
Jinja2 filter list using string contains test

I'm trying to filter a list in ansible in Jinja2 when the elements contain a string, but the Jinja documentation …

jinja2 ansible ansible-2.x
Ansible template adds 'u' to array in template

I have the following vars inside of my ansible playbook I got the following structure domains: - { main: 'local1.com', …

ansible jinja2 ansible-2.x ansible-template
Ansible playbook, what is the proper syntax to run a powershell script with a specific (domain) user, in an elevated mode?

running Ansible 2.4.2 in an offline environment, using kerberos to authenticate, Via an ansible playbook, what is the proper syntax to …

windows powershell ansible ansible-2.x kerberos-delegation
Ansible stdout Formatting

Assuming the below tasks: shell: "some_script.sh" register: "some_script_result" debug: msg: "Output: {{ some_script_result.stdout_lines }} …

ansible ansible-2.x
Filter a substring matching a pattern from an ansible variable and assign matched substring to another variable

Let's say we have a long ansible string variable mystr. We have a regex pattern say substr_pattern and a …

ansible ansible-playbook ansible-2.x
How to compare kernel (or other) version numbers in Ansible

For a role I'm developing I need to verify that the kernel version is greater than a particular version. I've …

ansible ansible-2.x version-numbering
How to run only one role of an Ansible playbook?

I have a site.yml which imports several playbooks. - import_playbook: webservers.yml - .... Every playbook "calls" several roles: …

ansible ansible-2.x ansible-role