# Latest

**URL:** https://forum.ansible.com/latest.md?page=661

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 662

---

## [Jinja2 sort filter and Python 3](https://forum.ansible.com/t/jinja2-sort-filter-and-python-3/24412)

<div class="topic-metadata">

**Author:** [@Sergey\_Baranov](https://forum.ansible.com/u/Sergey_Baranov)\
**Replies:** 0\
**Last updated:** [May 7, 2017, 6:01pm UTC](https://forum.ansible.com/t/jinja2-sort-filter-and-python-3/24412 "2017-05-07T18:01:29Z")

</div>

\` \` Hi everyone! I’m using this jinja2 macro for xml configs: \` {%- macro print\_opts(options, indent=’ ', count=0) %} {% for key in options.keys() | sort2 %} {% set value = options\[key\] %} {% if value is string %…

---

## [run playbook in Ansible v2 with python](https://forum.ansible.com/t/run-playbook-in-ansible-v2-with-python/24410)

<div class="topic-metadata">

**Author:** [@ESWAR\_RAO](https://forum.ansible.com/u/ESWAR_RAO)\
**Replies:** 0\
**Last updated:** [May 7, 2017, 12:22pm UTC](https://forum.ansible.com/t/run-playbook-in-ansible-v2-with-python/24410 "2017-05-07T12:22:43Z")

</div>

Hi All, I am trying to invoke ansible playbook V2 from python modules. I am following below link: (1) http://docs.ansible.com/ansible/dev\_guide/developing\_api.html (2) http://stackoverflow.com/questions/37783145/how-…

---

## [A tool to help you visualize, understand and troubleshoot your playbook runs: ARA - Ansible Run Analysis](https://forum.ansible.com/t/a-tool-to-help-you-visualize-understand-and-troubleshoot-your-playbook-runs-ara-ansible-run-analysis/24408)

<div class="topic-metadata">

**Author:** [@rfc2549](https://forum.ansible.com/u/rfc2549)\
**Replies:** 2\
**Last updated:** [May 6, 2017, 8:38pm UTC](https://forum.ansible.com/t/a-tool-to-help-you-visualize-understand-and-troubleshoot-your-playbook-runs-ara-ansible-run-analysis/24408 "2017-05-06T20:38:44Z")

</div>

Hi there ! I’m the author of a project called ARA: Ansible Run Analysis. I’m here to tell you about an awesome new version of ARA that was just released and I’ve highlighted the best parts in a blog post: https://dmsi…

---

## [how do I use ios\_config to change configuration to default?](https://forum.ansible.com/t/how-do-i-use-ios-config-to-change-configuration-to-default/24311)

<div class="topic-metadata">

**Author:** [@John\_Z](https://forum.ansible.com/u/John_Z)\
**Replies:** 1\
**Last updated:** [May 6, 2017, 12:32am UTC](https://forum.ansible.com/t/how-do-i-use-ios-config-to-change-configuration-to-default/24311 "2017-05-06T00:32:47Z")

</div>

How do I use ios\_config to delete configuration but only if it is present? I want ios\_config to update many devices to conform to a standard template. It will have to delete configuration as well as add it. I don’t want …

---

## [Invoke Jinja2 template in a custom module](https://forum.ansible.com/t/invoke-jinja2-template-in-a-custom-module/24409)

<div class="topic-metadata">

**Author:** [@Rama\_Krishna](https://forum.ansible.com/u/Rama_Krishna)\
**Replies:** 0\
**Last updated:** [May 6, 2017, 12:24am UTC](https://forum.ansible.com/t/invoke-jinja2-template-in-a-custom-module/24409 "2017-05-06T00:24:03Z")

</div>

Hi Fellas, I’m trying to invoke jinja2 template to a custom module, but it end up i get only a string of file name instead of calling ansible container to get the jinja2 output. On debug i see, when the default modules…

---

## [set\_fact variable not working in template](https://forum.ansible.com/t/set-fact-variable-not-working-in-template/24387)

<div class="topic-metadata">

**Author:** [@kiran\_sangeetam](https://forum.ansible.com/u/kiran_sangeetam)\
**Replies:** 3\
**Last updated:** [May 5, 2017, 9:51pm UTC](https://forum.ansible.com/t/set-fact-variable-not-working-in-template/24387 "2017-05-05T21:51:45Z")

</div>

Hi Everyone, I want to use variable that I defined in set\_fact task in template. But it’s not working. Can anyone please suggest if I’m doing anything wrong. Below is the syntax I am using in tasks file. name: Settin…

---

## [Launch VM rom vmdk file](https://forum.ansible.com/t/launch-vm-rom-vmdk-file/24406)

<div class="topic-metadata">

**Author:** [@Pooja\_Umar](https://forum.ansible.com/u/Pooja_Umar)\
**Replies:** 1\
**Last updated:** [May 5, 2017, 1:38pm UTC](https://forum.ansible.com/t/launch-vm-rom-vmdk-file/24406 "2017-05-05T13:38:12Z")

</div>

I am not able to find any reference to create playbook to launch VM from vmdk file. Can anyone help?

---

## [suggestion for using ~/.my.cnf file](https://forum.ansible.com/t/suggestion-for-using-my-cnf-file/24400)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 2\
**Last updated:** [May 5, 2017, 10:04am UTC](https://forum.ansible.com/t/suggestion-for-using-my-cnf-file/24400 "2017-05-05T10:04:50Z")

</div>

I am new to ansible i want to execute my command like this zact /usr/share/doc/zabbix-server-mysql-3.0.9/create.sql.gz| mysql -u zabbix -p zabbixdb Ansible\_code: - name: Import the initial schema mysql\_db: …

---

## [Loading vars into a dictionary](https://forum.ansible.com/t/loading-vars-into-a-dictionary/24396)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 1\
**Last updated:** [May 5, 2017, 9:38am UTC](https://forum.ansible.com/t/loading-vars-into-a-dictionary/24396 "2017-05-05T09:38:19Z")

</div>

Hi, I’d like to load variables from a file into a dictionary, so I can later iterate over that dictionary. I’ve managed to load vars into their own dictionaries based on their name: name: load services definitions fo…

---

## [How to get IP address from inventory file](https://forum.ansible.com/t/how-to-get-ip-address-from-inventory-file/24402)

<div class="topic-metadata">

**Author:** [@Mateusz\_Panczyszyn](https://forum.ansible.com/u/Mateusz_Panczyszyn)\
**Replies:** 2\
**Last updated:** [May 5, 2017, 8:06am UTC](https://forum.ansible.com/t/how-to-get-ip-address-from-inventory-file/24402 "2017-05-05T08:06:38Z")

</div>

Hello, I have no idea how to solve an IP address problem. I need some tips. I have an inventory file with defined hosts: \[clab111\] 11.11.11.11 \[ clab222\] 22.22.22.22 Then I will start working on one host, for examp…

---

## [Build a var containing a var](https://forum.ansible.com/t/build-a-var-containing-a-var/24403)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 2\
**Last updated:** [May 5, 2017, 6:06am UTC](https://forum.ansible.com/t/build-a-var-containing-a-var/24403 "2017-05-05T06:06:45Z")

</div>

Hi, In a playbook, I’d like to define a variable with another variable inside. Example: {{ansible\_{{interface}}.ipv4.address}} What is the best way to do that ? Thanks

---

## [Updating VPC Route Tables](https://forum.ansible.com/t/updating-vpc-route-tables/24404)

<div class="topic-metadata">

**Author:** [@pgb\_twoofive](https://forum.ansible.com/u/pgb_twoofive)\
**Replies:** 0\
**Last updated:** [May 5, 2017, 3:07am UTC](https://forum.ansible.com/t/updating-vpc-route-tables/24404 "2017-05-05T03:07:52Z")

</div>

I have an AWS VPC with route table attached. I would like to add a route to the route table. Using ec2\_vpc\_route\_table module I do routes: -dest: -gateway\_id: igw Checking in either aws console or via ec2\_vpc\_route…

---

## [Syntax error](https://forum.ansible.com/t/syntax-error/24394)

<div class="topic-metadata">

**Author:** [@Bernard\_Lin](https://forum.ansible.com/u/Bernard_Lin)\
**Replies:** 1\
**Last updated:** [May 4, 2017, 10:07pm UTC](https://forum.ansible.com/t/syntax-error/24394 "2017-05-04T22:07:04Z")

</div>

Hi! New Ansible user here. I’m currently getting a syntax error and I can’t figure out what it is. Any clues? (Using version 2.2.2.0) \` ERROR! The requested action was not found in configured module paths. Additionally…

---

## [playbook gets remote invoked best practice](https://forum.ansible.com/t/playbook-gets-remote-invoked-best-practice/24401)

<div class="topic-metadata">

**Author:** [@Weiwen\_Chen](https://forum.ansible.com/u/Weiwen_Chen)\
**Replies:** 0\
**Last updated:** [May 4, 2017, 7:31pm UTC](https://forum.ansible.com/t/playbook-gets-remote-invoked-best-practice/24401 "2017-05-04T19:31:26Z")

</div>

Dear experts, Here is my case with machine A and B. Both have sets of playbooks. The kickoff is initiated from playbook on machine A, and it has a task to call the playbook on machine B: hosts: B tasks: name: Cal…

---

## [Whats your favourite YAML/YML editor](https://forum.ansible.com/t/whats-your-favourite-yaml-yml-editor/24367)

<div class="topic-metadata">

**Author:** [@Owen\_Corcoran](https://forum.ansible.com/u/Owen_Corcoran)\
**Replies:** 9\
**Last updated:** [May 4, 2017, 4:30pm UTC](https://forum.ansible.com/t/whats-your-favourite-yaml-yml-editor/24367 "2017-05-04T16:30:45Z")

</div>

Just wondering what everyone uses to edit/develop there YAML/YML scripts and if any editors have built in SYNTAX highlighting/debug for assisting in catching indention issues. Owen

---

## [Ansible MySQL module issue](https://forum.ansible.com/t/ansible-mysql-module-issue/24398)

<div class="topic-metadata">

**Author:** [@shiva\_jawanjal](https://forum.ansible.com/u/shiva_jawanjal)\
**Replies:** 1\
**Last updated:** [May 4, 2017, 4:25pm UTC](https://forum.ansible.com/t/ansible-mysql-module-issue/24398 "2017-05-04T16:25:52Z")

</div>

I am trying to use ansible role for MySQL When I am running MySQL role, I am not able to get pass installation even though the packages are installed. Git: https://github.com/geerlingguy/ansible-role-mysql.git

---

## [Is there something like "group\_files"](https://forum.ansible.com/t/is-there-something-like-group-files/24391)

<div class="topic-metadata">

**Author:** [@Carlos\_Penas](https://forum.ansible.com/u/Carlos_Penas)\
**Replies:** 2\
**Last updated:** [May 4, 2017, 2:06pm UTC](https://forum.ansible.com/t/is-there-something-like-group-files/24391 "2017-05-04T14:06:35Z")

</div>

I’m a bit new to ansible and perhaps I slip pass over this feature. I’ve read the ansible best practices document and choosed a directory layout like this ansible ├── roles │ ├── ... │ ├── staging │ ├── inventory │ └──…

---

## [Strange vmware\_guest error](https://forum.ansible.com/t/strange-vmware-guest-error/24399)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 0\
**Last updated:** [May 4, 2017, 10:05am UTC](https://forum.ansible.com/t/strange-vmware-guest-error/24399 "2017-05-04T10:05:34Z")

</div>

Maybe I’m missing something, but why does this play to reconfigure an existing VM (set the CPU count): name: Add CPU/RAM vmware\_guest: datacenter: “{{ datacenter }}” hostname: “{{ vcenter }}” username: “{{ vmware\_u…

---

## [clients, products, applications ... inventory/host](https://forum.ansible.com/t/clients-products-applications-inventory-host/24395)

<div class="topic-metadata">

**Author:** [@Scuderia\_FormulaOne](https://forum.ansible.com/u/Scuderia_FormulaOne)\
**Replies:** 2\
**Last updated:** [May 4, 2017, 7:37am UTC](https://forum.ansible.com/t/clients-products-applications-inventory-host/24395 "2017-05-04T07:37:43Z")

</div>

I am looking for the ‘best’ practice for the following case where: there are multiple clients a client can have one or more products a product is made of 1-5 or more applications an application reside on a single vm …

---

## [ec2.py auth error when using Boto3 Profiles with SAML Auth and Assumed Role](https://forum.ansible.com/t/ec2-py-auth-error-when-using-boto3-profiles-with-saml-auth-and-assumed-role/24392)

<div class="topic-metadata">

**Author:** [@Tony\_Vinson](https://forum.ansible.com/u/Tony_Vinson)\
**Replies:** 0\
**Last updated:** [May 3, 2017, 6:46pm UTC](https://forum.ansible.com/t/ec2-py-auth-error-when-using-boto3-profiles-with-saml-auth-and-assumed-role/24392 "2017-05-03T18:46:30Z")

</div>

Hi, Just trying to see if anyone else has run into this error, these boto profiles work fine for AWS-cli but I get the following error when trying to use ec2.py python3 ec2.py --profile product-XXXX-XX Boto configs fo…

---

## [make module not idempotent](https://forum.ansible.com/t/make-module-not-idempotent/24389)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 4:46pm UTC](https://forum.ansible.com/t/make-module-not-idempotent/24389 "2017-05-03T16:46:42Z")

</div>

For certain values of idempotent :slight\_smile: I notice that the make module shows changed every time. I’m trying to make mod\_security: \` name: make modsecurity make: chdir: /root/modsecurity-2.9.1 \` every time…

---

## ["META: ran handlers" informational message. What is it for?](https://forum.ansible.com/t/meta-ran-handlers-informational-message-what-is-it-for/24390)

<div class="topic-metadata">

**Author:** [@Mpampis\_Mpigkonias](https://forum.ansible.com/u/Mpampis_Mpigkonias)\
**Replies:** 3\
**Last updated:** [May 3, 2017, 3:22pm UTC](https://forum.ansible.com/t/meta-ran-handlers-informational-message-what-is-it-for/24390 "2017-05-03T15:22:17Z")

</div>

With the latest Ansible update (2.3) I noticed that whenever I run a playbook with -vv the informational message “META: ran handlers” comes. For example \` PLAYBOOK: yolo.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible - vmware\_guest - deploy from template - object has no attribute port](https://forum.ansible.com/t/ansible-vmware-guest-deploy-from-template-object-has-no-attribute-port/24388)

<div class="topic-metadata">

**Author:** [@Ricardo\_Esteves](https://forum.ansible.com/u/Ricardo_Esteves)\
**Replies:** 0\
**Last updated:** [May 3, 2017, 1:19pm UTC](https://forum.ansible.com/t/ansible-vmware-guest-deploy-from-template-object-has-no-attribute-port/24388 "2017-05-03T13:19:53Z")

</div>

Hi, I’m trying to deploy a VM from a template using vmware\_guest module, but i’m getting this error: The full traceback is: Traceback (most recent call last): File “/tmp/ansible\_yfXPli/ansible\_module\_vmware\_guest.py”…

---

## [How to generate JSON with escaped quotes](https://forum.ansible.com/t/how-to-generate-json-with-escaped-quotes/24365)

<div class="topic-metadata">

**Author:** [@oss.mlists](https://forum.ansible.com/u/oss.mlists)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 1:11pm UTC](https://forum.ansible.com/t/how-to-generate-json-with-escaped-quotes/24365 "2017-05-03T13:11:24Z")

</div>

Hello, I need to get JSON as string with quotes escaped by a single backslash. Original JSON is in file and I need to send it as string in another JSON body using URI module. I’m able to get only string with quotes esca…

---

## [When conditions doesn't work from ansible ansible-2.2.1.0-1.el7.noarch to ansible-2.3](https://forum.ansible.com/t/when-conditions-doesnt-work-from-ansible-ansible-2-2-1-0-1-el7-noarch-to-ansible-2-3/24371)

<div class="topic-metadata">

**Author:** [@Martino\_Vigano](https://forum.ansible.com/u/Martino_Vigano)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 10:28am UTC](https://forum.ansible.com/t/when-conditions-doesnt-work-from-ansible-ansible-2-2-1-0-1-el7-noarch-to-ansible-2-3/24371 "2017-05-03T10:28:03Z")

</div>

Hi, I have a Centos7 central ansible server with version ansible-2.2.1.0 I have this code that works on version 2.2.1.0

---

## [Using lookup plugin to check SHA512 password hash](https://forum.ansible.com/t/using-lookup-plugin-to-check-sha512-password-hash/24384)

<div class="topic-metadata">

**Author:** [@The\_Gripmaster](https://forum.ansible.com/u/The_Gripmaster)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 9:40am UTC](https://forum.ansible.com/t/using-lookup-plugin-to-check-sha512-password-hash/24384 "2017-05-03T09:40:25Z")

</div>

In my Ansible git repo, I have a var file with contents like this vault\_users: alex: password: $1$zMcbvpnN$DxP/LRsINODRkBxG0Kz4.1 danny: password: $1$zMcbvpnN$DxP/LRsINODRkBxG0Kz4.1 gary: password: $1$zMcbvpnN$DxP…

---

## [how to make cron module for running ansible playbooks](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361)

<div class="topic-metadata">

**Author:** [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Replies:** 4\
**Last updated:** [May 3, 2017, 8:45am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361 "2017-05-03T08:45:07Z")

</div>

Hi, I am trying to run cron module for running ansible playbook for every one minute.But it is not working.I can see the job but the job is not running.The playbook is wrote is

---

## [Need help prepare plugin for pull request](https://forum.ansible.com/t/need-help-prepare-plugin-for-pull-request/24385)

<div class="topic-metadata">

**Author:** [@Fredrik\_Rambris](https://forum.ansible.com/u/Fredrik_Rambris)\
**Replies:** 0\
**Last updated:** [May 3, 2017, 7:50am UTC](https://forum.ansible.com/t/need-help-prepare-plugin-for-pull-request/24385 "2017-05-03T07:50:30Z")

</div>

Hello, everyone. I have made a plugin that I am finding extremely useful and would like to share, but I might need a bit of help preparing it for a proper pull request as I haven’t done that before. It is a lookup plug…

---

## [Common group\_by's or include a setup play before running playbook](https://forum.ansible.com/t/common-group-bys-or-include-a-setup-play-before-running-playbook/24372)

<div class="topic-metadata">

**Author:** [@Fredrik\_Rambris](https://forum.ansible.com/u/Fredrik_Rambris)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 7:01am UTC](https://forum.ansible.com/t/common-group-bys-or-include-a-setup-play-before-running-playbook/24372 "2017-05-03T07:01:43Z")

</div>

I want to have a way to globally define OS dependent variables. I currently am doing this with something like this at the top of my playbooks \` name: Gather facts hosts: the\_hosts\_we\_are\_applying\_playbook\_on tags: a…

---

## [Python Annoying error when connecting to target machines](https://forum.ansible.com/t/python-annoying-error-when-connecting-to-target-machines/24381)

<div class="topic-metadata">

**Author:** [@Anthony\_Youssef](https://forum.ansible.com/u/Anthony_Youssef)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 6:02am UTC](https://forum.ansible.com/t/python-annoying-error-when-connecting-to-target-machines/24381 "2017-05-03T06:02:50Z")

</div>

Hi, i am facing an error that is blocking my work on ansible. i am trying to connect from my control machine to a big number of hosts to execute remote commands (around 1000 hosts). some of these target hosts didn’t ha…

[Previous page](https://forum.ansible.com/latest.md?page=660)

[Next page](https://forum.ansible.com/latest.md?page=662)
