# Latest

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

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

**Page:** 767

---

## [Yum packages being skipped using Ansible 2.0.2.0](https://forum.ansible.com/t/yum-packages-being-skipped-using-ansible-2-0-2-0/21348)

<div class="topic-metadata">

**Author:** [@Larry\_Smith1](https://forum.ansible.com/u/Larry_Smith1)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 2:49am UTC](https://forum.ansible.com/t/yum-packages-being-skipped-using-ansible-2-0-2-0/21348 "2016-05-04T02:49:13Z")

</div>

So I am seeing something rather strange when using Ansible 2.0.2.0…If I execute a play with the following tasks the second one is skipped. However if I run the same play using Ansible 2.0.1.0 it runs as expected. Anyone …

---

## [Ansible marathon module](https://forum.ansible.com/t/ansible-marathon-module/19764)

<div class="topic-metadata">

**Author:** [@Ahmad\_Aabed](https://forum.ansible.com/u/Ahmad_Aabed)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 10:14pm UTC](https://forum.ansible.com/t/ansible-marathon-module/19764 "2016-05-03T22:14:51Z")

</div>

Hello, I think it will be nice to have a module to provision mesos machines using marathon I don't know if there is someone working on it now,but if not i'd like to work on it

---

## [The async task did not return valid JSON: Extra data ...](https://forum.ansible.com/t/the-async-task-did-not-return-valid-json-extra-data/19988)

<div class="topic-metadata">

**Author:** [@Nuriel\_Shem-Tov](https://forum.ansible.com/u/Nuriel_Shem-Tov)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 8:59pm UTC](https://forum.ansible.com/t/the-async-task-did-not-return-valid-json-extra-data/19988 "2016-05-03T20:59:34Z")

</div>

Hi! I am running the following playbook: \`

---

## [What's the state on roles and with\_items?](https://forum.ansible.com/t/whats-the-state-on-roles-and-with-items/21347)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 8:16pm UTC](https://forum.ansible.com/t/whats-the-state-on-roles-and-with-items/21347 "2016-05-03T20:16:04Z")

</div>

Hi all, apparently roles allowed using with\_items some time ago: https://github.com/ansible/ansible/issues/12623 https://github.com/ansible/ansible-examples/blob/master/language\_features/roletest2.yml I read 2.1 will…

---

## [ansible.cfg overrides](https://forum.ansible.com/t/ansible-cfg-overrides/21345)

<div class="topic-metadata">

**Author:** [@Dusan\_Matejka](https://forum.ansible.com/u/Dusan_Matejka)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 8:15pm UTC](https://forum.ansible.com/t/ansible-cfg-overrides/21345 "2016-05-03T20:15:15Z")

</div>

Hello, We are using multiple ansible playbook repositories in our company. While we want to make some configuration directives local only for a specific repository, there are some which need to be defined for every curr…

---

## [Register variables in tasks that use with\_items?](https://forum.ansible.com/t/register-variables-in-tasks-that-use-with-items/21346)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 8:11pm UTC](https://forum.ansible.com/t/register-variables-in-tasks-that-use-with-items/21346 "2016-05-03T20:11:03Z")

</div>

Hi all, say I want to create a file for two users. I create a list containing the users and create a task with a loop using with\_items: userlist: - foo - bar To avoid trouble I want to check if the target folde…

---

## [Settings for ansible\_shell\_type in inventory file not work](https://forum.ansible.com/t/settings-for-ansible-shell-type-in-inventory-file-not-work/21227)

<div class="topic-metadata">

**Author:** [@WD\_Wang](https://forum.ansible.com/u/WD_Wang)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 7:45pm UTC](https://forum.ansible.com/t/settings-for-ansible-shell-type-in-inventory-file-not-work/21227 "2016-05-03T19:45:02Z")

</div>

hi, I can use the command below to send some files to remote: $ ansible -e ‘ansible\_shell\_type=sh’ -i hosts -m synchronize -a “src=node\_modules/ dest=/tmp/node\_modules/” dev host1 | SUCCESS =\> { “changed”: false, “c…

---

## [Configuring module\_utils path?](https://forum.ansible.com/t/configuring-module-utils-path/21344)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rowlands](https://forum.ansible.com/u/Jonathan_Rowlands)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 6:25pm UTC](https://forum.ansible.com/t/configuring-module-utils-path/21344 "2016-05-03T18:25:42Z")

</div>

Is there a way to configure the module\_utils path for supporting code like the way ANSIBLE\_LIBRARY works with modules?

---

## [Bug in with\_nested and registered variables?](https://forum.ansible.com/t/bug-in-with-nested-and-registered-variables/21343)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 5:11pm UTC](https://forum.ansible.com/t/bug-in-with-nested-and-registered-variables/21343 "2016-05-03T17:11:36Z")

</div>

Hi, Earlier today on irc I heard that the snippet below not working might be a bug. Being new to Ansible and not wanting to waste the developers time I'd appreciate a confirmation that this is indeed a bug before filing…

---

## [Using playbook to start, stop or restart a service](https://forum.ansible.com/t/using-playbook-to-start-stop-or-restart-a-service/21324)

<div class="topic-metadata">

**Author:** [@Rick\_O\_Shea](https://forum.ansible.com/u/Rick_O_Shea)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 3:36pm UTC](https://forum.ansible.com/t/using-playbook-to-start-stop-or-restart-a-service/21324 "2016-05-03T15:36:26Z")

</div>

We have host groups whose service states we wish to automate. name manage service service: name=foo state={{state}} As near as we can tell this is the only way to automate a playbook to start, stop, restart, enable, …

---

## [How can I figure out which version of Ansible an ansible-modules-core merge request first appears in?](https://forum.ansible.com/t/how-can-i-figure-out-which-version-of-ansible-an-ansible-modules-core-merge-request-first-appears-in/21337)

<div class="topic-metadata">

**Author:** [@Kit\_Sunde](https://forum.ansible.com/u/Kit_Sunde)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 3:13pm UTC](https://forum.ansible.com/t/how-can-i-figure-out-which-version-of-ansible-an-ansible-modules-core-merge-request-first-appears-in/21337 "2016-05-03T15:13:24Z")

</div>

This pull request: https://github.com/ansible/ansible-modules-core/pull/2673 supposedly adds MySQL 5.7 support on mysql\_user. The last note says it’s been merged into the 2.0 stable and the devel branch, but it’s not cle…

---

## [New Modules Report, 03-May-2016](https://forum.ansible.com/t/new-modules-report-03-may-2016/21341)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 1:53pm UTC](https://forum.ansible.com/t/new-modules-report-03-may-2016/21341 "2016-05-03T13:53:10Z")

</div>

There are currently 150 modules waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: New module - elastic\_beanstalk - re-submit https://github.com/ansible/ansible-module…

---

## [synchronize between two remote servers: you can pull but you cannot push?](https://forum.ansible.com/t/synchronize-between-two-remote-servers-you-can-pull-but-you-cannot-push/21330)

<div class="topic-metadata">

**Author:** [@Joe\_Louthan](https://forum.ansible.com/u/Joe_Louthan)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 1:41pm UTC](https://forum.ansible.com/t/synchronize-between-two-remote-servers-you-can-pull-but-you-cannot-push/21330 "2016-05-03T13:41:15Z")

</div>

So pulling in synchronize between two remote servers works like a champ: \`

---

## [Is there a Docker Compose -like solution for Ansible?](https://forum.ansible.com/t/is-there-a-docker-compose-like-solution-for-ansible/21340)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 12:51pm UTC](https://forum.ansible.com/t/is-there-a-docker-compose-like-solution-for-ansible/21340 "2016-05-03T12:51:08Z")

</div>

Hi We are mostly using ansible for creating/managing our TEST environments. One environment can contain the different types of services/nodes like: web/application server(s) windows services DBs JMS queues etc The e…

---

## [Synchronize module with ansible-pull](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339)

<div class="topic-metadata">

**Author:** [@Karibou\_Hunter](https://forum.ansible.com/u/Karibou_Hunter)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 10:44am UTC](https://forum.ansible.com/t/synchronize-module-with-ansible-pull/21339 "2016-05-03T10:44:27Z")

</div>

Hi all, I have an error with this task : \` name: sync app directory synchronize: mode: pull src: rsync://192.168.1.1/home/user/files\_www/ dest: “/var/www/example.com/” become: false \` running ansible-pull -vvv…

---

## [storing Ansible facts in mysql database](https://forum.ansible.com/t/storing-ansible-facts-in-mysql-database/21329)

<div class="topic-metadata">

**Author:** [@Anil\_Dasmala](https://forum.ansible.com/u/Anil_Dasmala)\
**Replies:** 4\
**Last updated:** [May 3, 2016, 9:58am UTC](https://forum.ansible.com/t/storing-ansible-facts-in-mysql-database/21329 "2016-05-03T09:58:26Z")

</div>

Hi Guys, Can someone guide me on how to store the facts for all hosts in inventory into a mysql database. In other words, output data of setup module to mysql. Appreciate ideas/suggestions. –Anil

---

## [Multiple vars in with\_nested problem](https://forum.ansible.com/t/multiple-vars-in-with-nested-problem/21333)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 8:28am UTC](https://forum.ansible.com/t/multiple-vars-in-with-nested-problem/21333 "2016-05-03T08:28:44Z")

</div>

Hi, I'm trying out (Ansible 2.0.2.0 on Fedora 23). The snippet below is also on http://pastie.org/10821272 Goal: expand task #3 below so it installs for existing users all the files listed in the variable mc\_templates. …

---

## [why the playbook does not run as many times as there are entries in the hosts file ?](https://forum.ansible.com/t/why-the-playbook-does-not-run-as-many-times-as-there-are-entries-in-the-hosts-file/21328)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [May 3, 2016, 7:40am UTC](https://forum.ansible.com/t/why-the-playbook-does-not-run-as-many-times-as-there-are-entries-in-the-hosts-file/21328 "2016-05-03T07:40:56Z")

</div>

Hello, I did param 2 entries in my hosts file: \[server\] localhost ansible\_connection=local ansible\_user=fvaltat PARAM=“\[‘tomweb’, ‘’, ‘Y’,‘1’\]” localhost ansible\_connection=local ansible\_user=fvaltat PARAM=“\[‘openhr’…

---

## [No config file found; using defaults](https://forum.ansible.com/t/no-config-file-found-using-defaults/21231)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 6:31am UTC](https://forum.ansible.com/t/no-config-file-found-using-defaults/21231 "2016-05-03T06:31:15Z")

</div>

Centos 7 Ansible 2.1 Windows 7 on remote node My inventory file (/etc/ansible/hosts) contains \[windows\] ADS-6999 ansible\_host=123.123.123.123 I have configured my windows.yml file as follows ansible\_user: Administ…

---

## [custom facts with non-root account](https://forum.ansible.com/t/custom-facts-with-non-root-account/21193)

<div class="topic-metadata">

**Author:** [@Uwe\_Bartels](https://forum.ansible.com/u/Uwe_Bartels)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 6:27am UTC](https://forum.ansible.com/t/custom-facts-with-non-root-account/21193 "2016-05-03T06:27:52Z")

</div>

Hiho, I’m currently working with most recent ansible in a very restricted system environment, e.g. I don’t have root access. now I’m gathering data via shell commands and register. E.g. name: check for java installa…

---

## [Ansible command to get the ethtool information](https://forum.ansible.com/t/ansible-command-to-get-the-ethtool-information/21211)

<div class="topic-metadata">

**Author:** [@Jai\_Reddy](https://forum.ansible.com/u/Jai_Reddy)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 5:28am UTC](https://forum.ansible.com/t/ansible-command-to-get-the-ethtool-information/21211 "2016-05-03T05:28:01Z")

</div>

Greetings, I am trying to get the nic (eth0) info using ansible … When I am running below ansible command I am getting error ansible all -m shell -a “/sbin/ethtool eth0” SSH password: SUDO password\[defaults to SSH p…

---

## [Escalation Prompt Timeout?](https://forum.ansible.com/t/escalation-prompt-timeout/21277)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 5:23am UTC](https://forum.ansible.com/t/escalation-prompt-timeout/21277 "2016-05-03T05:23:04Z")

</div>

Hi, I’m getting “Timeout (12s) waiting for privilege escalation prompt” errors. Can the escalation timeout value be changed somewhere? Thanks, -T

---

## [map extract not working?](https://forum.ansible.com/t/map-extract-not-working/21272)

<div class="topic-metadata">

**Author:** [@Arthur\_Tsang](https://forum.ansible.com/u/Arthur_Tsang)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 5:20am UTC](https://forum.ansible.com/t/map-extract-not-working/21272 "2016-05-03T05:20:36Z")

</div>

Hi all, I have a group named cluster in my inventory file, which has 2 nodes, swarm1 & swarm2. and the following playbook, trying to use map(‘extract’) to get the IP address of the other node. I can print out the ip ju…

---

## [Understanding group vars](https://forum.ansible.com/t/understanding-group-vars/21302)

<div class="topic-metadata">

**Author:** [@Shua\_Talansky](https://forum.ansible.com/u/Shua_Talansky)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 5:11am UTC](https://forum.ansible.com/t/understanding-group-vars/21302 "2016-05-03T05:11:20Z")

</div>

Based on these docs http://docs.ansible.com/ansible/playbooks\_best\_practices.html#group-and-host-variables I would think this should work. I have a yml file with db: host: 123.45.6.7 pass: secret etc… I put one in s…

---

## [help with Jinja2 for loops using keys value](https://forum.ansible.com/t/help-with-jinja2-for-loops-using-keys-value/21292)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 5:06am UTC](https://forum.ansible.com/t/help-with-jinja2-for-loops-using-keys-value/21292 "2016-05-03T05:06:43Z")

</div>

Hello, I’m looking for some guidance on what’s the best way to setup my jinja2 .j2 template so I can generate my VLAN’s correctly in a template. I would like to setup my host\_vars file like the following: bmc.yml https…

---

## [mysql\_user doesen't translate variables](https://forum.ansible.com/t/mysql-user-doesent-translate-variables/21294)

<div class="topic-metadata">

**Author:** [@Florian\_Luttgens](https://forum.ansible.com/u/Florian_Luttgens)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 4:57am UTC](https://forum.ansible.com/t/mysql-user-doesent-translate-variables/21294 "2016-05-03T04:57:19Z")

</div>

Hi, im trying to add a mysql user, but it seems the mysql\_user module does not translate the variables. It works on mysql\_db tho. Output: \` \<178.250..\> REMOTE\_MODULE mysql\_user name={{ item.value.projekt | lower }}{{…

---

## [When condition](https://forum.ansible.com/t/when-condition/21312)

<div class="topic-metadata">

**Author:** [@Suresh\_Uppu](https://forum.ansible.com/u/Suresh_Uppu)\
**Replies:** 1\
**Last updated:** [May 3, 2016, 4:52am UTC](https://forum.ansible.com/t/when-condition/21312 "2016-05-03T04:52:50Z")

</div>

Hi, This is Suresh. I am new to Ansible. I have a query, Can I please ask any one to clarify this. I am using when: condition. The below one is working fine. file copy is working fine based on distribution. didnt ge…

---

## [dictionary key as variable](https://forum.ansible.com/t/dictionary-key-as-variable/21311)

<div class="topic-metadata">

**Author:** [@Serkan\_C](https://forum.ansible.com/u/Serkan_C)\
**Replies:** 3\
**Last updated:** [May 3, 2016, 4:44am UTC](https://forum.ansible.com/t/dictionary-key-as-variable/21311 "2016-05-03T04:44:48Z")

</div>

Hi, I’m developing a generic tomcat role, it gets version number as variable; … roles: { role: tomcat, version: “8.0.33” } I’ve mentioned download urls for some major versions at vars.yml … file: “8”: “…apache-t…

---

## [Ansible Autoscaling with Tower and AWS blog post, instances are NOT authorized by server](https://forum.ansible.com/t/ansible-autoscaling-with-tower-and-aws-blog-post-instances-are-not-authorized-by-server/21336)

<div class="topic-metadata">

**Author:** [@ecoutin\_boingo](https://forum.ansible.com/u/ecoutin_boingo)\
**Replies:** 2\
**Last updated:** [May 3, 2016, 3:19am UTC](https://forum.ansible.com/t/ansible-autoscaling-with-tower-and-aws-blog-post-instances-are-not-authorized-by-server/21336 "2016-05-03T03:19:11Z")

</div>

Hello, So I followed this post: https://www.ansible.com/blog/autoscaling-infrastructures And managed to deploy the infrastructure, the problem is the callback isn’t working. I keep getting no available hosts: curl -k…

---

## [Using Ansible.cfg with roles and tasks](https://forum.ansible.com/t/using-ansible-cfg-with-roles-and-tasks/21323)

<div class="topic-metadata">

**Author:** [@Rick\_O\_Shea](https://forum.ansible.com/u/Rick_O_Shea)\
**Replies:** 1\
**Last updated:** [May 2, 2016, 10:17pm UTC](https://forum.ansible.com/t/using-ansible-cfg-with-roles-and-tasks/21323 "2016-05-02T22:17:40Z")

</div>

I have roles that depend on the ssh\_args settings of the local Ansible.cfg, and they succeed. I also have a role that assumes different ssh\_args values, and it fails. How do we specify Ansible.cfg settings specific to …

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

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