# Latest

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

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

**Page:** 748

---

## [Looping and Error handling](https://forum.ansible.com/t/looping-and-error-handling/21914)

<div class="topic-metadata">

**Author:** [@megha\_sharma](https://forum.ansible.com/u/megha_sharma)\
**Replies:** 0\
**Last updated:** [July 4, 2016, 6:40am UTC](https://forum.ansible.com/t/looping-and-error-handling/21914 "2016-07-04T06:40:33Z")

</div>

I am trying to add multiple users on my machine using Looping concept in ansible. Along with that I want to handle the errors occur when i try to add a user that already exists.But I am not able to rescue each iteration. …

---

## [How to run multiple playbooks in parallel? Async and poll don't seem to support "Include playbook"](https://forum.ansible.com/t/how-to-run-multiple-playbooks-in-parallel-async-and-poll-dont-seem-to-support-include-playbook/21913)

<div class="topic-metadata">

**Author:** [@Shruti\_Kembhavi](https://forum.ansible.com/u/Shruti_Kembhavi)\
**Replies:** 0\
**Last updated:** [July 4, 2016, 6:13am UTC](https://forum.ansible.com/t/how-to-run-multiple-playbooks-in-parallel-async-and-poll-dont-seem-to-support-include-playbook/21913 "2016-07-04T06:13:47Z")

</div>

How to run multiple playbooks in parallel? Async and poll don’t seem to support “Include playbook” I want to do something like include: …/abc.yml async: 500 poll: 0 tags: \[abc\] include: …/xyz.yml async: 500 …

---

## [rolling YUM packages back](https://forum.ansible.com/t/rolling-yum-packages-back/21901)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 2\
**Last updated:** [July 2, 2016, 8:34pm UTC](https://forum.ansible.com/t/rolling-yum-packages-back/21901 "2016-07-02T20:34:13Z")

</div>

I've got some tasks I use to make sure we're on the correct RPM version. Each inventory governs an environment with a common site.yml playbook. (ansible 1.9.x, centos 6.x) $environment/group\_vars/all holds vars like t…

---

## [Setting auth\_pass for use by ios\_command from Ansible Tower](https://forum.ansible.com/t/setting-auth-pass-for-use-by-ios-command-from-ansible-tower/21887)

<div class="topic-metadata">

**Author:** [@David\_Evans](https://forum.ansible.com/u/David_Evans)\
**Replies:** 1\
**Last updated:** [July 1, 2016, 7:08pm UTC](https://forum.ansible.com/t/setting-auth-pass-for-use-by-ios-command-from-ansible-tower/21887 "2016-07-01T19:08:44Z")

</div>

Hi, Short question: Can someone tell me the name of the variable that is used to pass the privilege escalation password from Ansible Tower to a playbook? Long question (same question with more context): I’m taking a …

---

## [Problem using nxos\_command module.](https://forum.ansible.com/t/problem-using-nxos-command-module/21908)

<div class="topic-metadata">

**Author:** [@Lisa\_Huang](https://forum.ansible.com/u/Lisa_Huang)\
**Replies:** 0\
**Last updated:** [July 1, 2016, 6:36pm UTC](https://forum.ansible.com/t/problem-using-nxos-command-module/21908 "2016-07-01T18:36:59Z")

</div>

Hi, I am having an issue to send nxos\_command. I am able to test “show version” using NX-API Developer Sanbox, but couldn’t access “http://10.2.100.100:80/ins” in browser. Here are the error and configuration informatio…

---

## [Questions about Ansible NXOS command](https://forum.ansible.com/t/questions-about-ansible-nxos-command/21040)

<div class="topic-metadata">

**Author:** [@Ludi\_Fang](https://forum.ansible.com/u/Ludi_Fang)\
**Replies:** 2\
**Last updated:** [July 1, 2016, 6:25pm UTC](https://forum.ansible.com/t/questions-about-ansible-nxos-command/21040 "2016-07-01T18:25:44Z")

</div>

Hello support team, when I enter this command, ansible test -m nxos\_command it gives me the following error: 10.122.234.253 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “missing required arguments: user…

---

## [Ping & playbook runs failing for some boxes](https://forum.ansible.com/t/ping-playbook-runs-failing-for-some-boxes/21902)

<div class="topic-metadata">

**Author:** [@Sivabalan\_N](https://forum.ansible.com/u/Sivabalan_N)\
**Replies:** 1\
**Last updated:** [July 1, 2016, 4:52pm UTC](https://forum.ansible.com/t/ping-playbook-runs-failing-for-some-boxes/21902 "2016-07-01T16:52:45Z")

</div>

Team, I’m using ansible to deploy in my AWS production environment. I’m using dynamic inventory and ping & running playbook based on the host tag name. If I run ping for specific tag, 2 out of 5 servers are failing to p…

---

## [virt\_net and ignore\_errors](https://forum.ansible.com/t/virt-net-and-ignore-errors/21903)

<div class="topic-metadata">

**Author:** [@foo](https://forum.ansible.com/u/foo)\
**Replies:** 2\
**Last updated:** [July 1, 2016, 2:16pm UTC](https://forum.ansible.com/t/virt-net-and-ignore-errors/21903 "2016-07-01T14:16:26Z")

</div>

Hi, I’ve just started using ansible and I wanted to delete the “default” network created in my KVM install. I’m using the following syntax: name: destroy default network virt\_net: command=destroy name=default ignor…

---

## [Learning Ansible and found issue with yum module](https://forum.ansible.com/t/learning-ansible-and-found-issue-with-yum-module/21898)

<div class="topic-metadata">

**Author:** [@Donald\_Macaulay](https://forum.ansible.com/u/Donald_Macaulay)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 11:27pm UTC](https://forum.ansible.com/t/learning-ansible-and-found-issue-with-yum-module/21898 "2016-06-30T23:27:40Z")

</div>

I am running through an Ansible training course on Pluralsight and I am trying to deploy Apache from onto a remote CentOS box using (Ansible controller is also on CentOS). The command I am using is: ansible webservers …

---

## [chaining ssh and lxd connections](https://forum.ansible.com/t/chaining-ssh-and-lxd-connections/21896)

<div class="topic-metadata">

**Author:** [@Pavel\_Stratil](https://forum.ansible.com/u/Pavel_Stratil)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 10:18pm UTC](https://forum.ansible.com/t/chaining-ssh-and-lxd-connections/21896 "2016-06-30T22:18:15Z")

</div>

Hi, I wonder if/how is it possible to chain ssh and lxd connections in order to manipulate lxd/docker containers on remote physical servers thanks, Pavel

---

## [Check for reboot](https://forum.ansible.com/t/check-for-reboot/21889)

<div class="topic-metadata">

**Author:** [@MJP](https://forum.ansible.com/u/MJP)\
**Replies:** 3\
**Last updated:** [June 30, 2016, 9:47pm UTC](https://forum.ansible.com/t/check-for-reboot/21889 "2016-06-30T21:47:19Z")

</div>

Hello, We are currently using Ansible to install security updates to our Ubuntu 14.04 servers. We are using apticron to tell us when updates are available and we are using unattended-upgrades to install the updates. We …

---

## [emacs inventory-generic-mode](https://forum.ansible.com/t/emacs-inventory-generic-mode/21702)

<div class="topic-metadata">

**Author:** [@Tim\_Chambers](https://forum.ansible.com/u/Tim_Chambers)\
**Replies:** 8\
**Last updated:** [June 30, 2016, 7:42pm UTC](https://forum.ansible.com/t/emacs-inventory-generic-mode/21702 "2016-06-30T19:42:44Z")

</div>

I got inspired by ini-generic-mode today. (define-generic-mode inventory-generic-mode '(?#) nil '((“^\\(\\\[.\\\]\\)" 1 font-lock-constant-face) ("^\\(\[^=\\n\\r\]\\)=\\(\[^\\n\\r\]\\)$" (1 font-lock-function-name-face) (2 font-loc…

---

## [trouble looping through host list with conditional check and loop.last check to supress seperator on last output](https://forum.ansible.com/t/trouble-looping-through-host-list-with-conditional-check-and-loop-last-check-to-supress-seperator-on-last-output/21895)

<div class="topic-metadata">

**Author:** [@Rory\_Schramm](https://forum.ansible.com/u/Rory_Schramm)\
**Replies:** 1\
**Last updated:** [June 30, 2016, 4:47pm UTC](https://forum.ansible.com/t/trouble-looping-through-host-list-with-conditional-check-and-loop-last-check-to-supress-seperator-on-last-output/21895 "2016-06-30T16:47:15Z")

</div>

I have a jinja template file that’s iterating through the play hosts and checking which site each hosts belongs to that should output like this: 192.168.1.1, 192.168.1.2, 192.168.1.3, {%- for host in play\_hosts %}{% if…

---

## [SSLError: \[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed](https://forum.ansible.com/t/sslerror-ssl-certificate-verify-failed-certificate-verify-failed/21870)

<div class="topic-metadata">

**Author:** [@Hugo\_Enrique\_Hernand](https://forum.ansible.com/u/Hugo_Enrique_Hernand)\
**Replies:** 5\
**Last updated:** [June 30, 2016, 4:46pm UTC](https://forum.ansible.com/t/sslerror-ssl-certificate-verify-failed-certificate-verify-failed/21870 "2016-06-30T16:46:53Z")

</div>

Hi I’m running ansible against a windows host for testing purposes. but i am getting this error : Red Hat 7.2 Ansible 1.9.2 \[ansible-windows\]$ ansible windows -i host -m win\_ping -vvvvv \<srvspodvlmx01.wt.mx.corp\> ES…

---

## [What arguments/parameters to deploy to VM?](https://forum.ansible.com/t/what-arguments-parameters-to-deploy-to-vm/21900)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 0\
**Last updated:** [June 30, 2016, 1:53pm UTC](https://forum.ansible.com/t/what-arguments-parameters-to-deploy-to-vm/21900 "2016-06-30T13:53:44Z")

</div>

I have a Virtualbox VM (CentOS) I need to deploy packages to. What are the settings to use the Vagrant SSH tunnel, so that Ansible can deploy to the VM just like to a remote physical machine? The user would be ‘vagrant…

---

## [How to use pip module wiht multiple packages and versions](https://forum.ansible.com/t/how-to-use-pip-module-wiht-multiple-packages-and-versions/21897)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 1:48pm UTC](https://forum.ansible.com/t/how-to-use-pip-module-wiht-multiple-packages-and-versions/21897 "2016-06-30T13:48:22Z")

</div>

I have a long list packages to install in the fashion: pip install == I can see that you can do pip: name={{ item }} state=present with\_items: - \<package\> - \<package\> ... But how can I specify the version in a…

---

## [run playbooks in rc.local](https://forum.ansible.com/t/run-playbooks-in-rc-local/21852)

<div class="topic-metadata">

**Author:** [@Xiaohui\_Liu](https://forum.ansible.com/u/Xiaohui_Liu)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 1:34pm UTC](https://forum.ansible.com/t/run-playbooks-in-rc-local/21852 "2016-06-30T13:34:07Z")

</div>

I met a problem using ansible-playbook today. I prepared a playbook, and tried to trigger the playbook inside rc.local. The idea is that the machine will be bootstrapped automatically on boot. But rc.local does not out…

---

## [Single quotes inside Jinja2 string literals](https://forum.ansible.com/t/single-quotes-inside-jinja2-string-literals/20358)

<div class="topic-metadata">

**Author:** [@Christian\_Thiemann](https://forum.ansible.com/u/Christian_Thiemann)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 10:12am UTC](https://forum.ansible.com/t/single-quotes-inside-jinja2-string-literals/20358 "2016-06-30T10:12:27Z")

</div>

How can I include single quotes in single-quoted Jinja2 string literals in Ansible 2.0? Minimal test case: \`

---

## [deploy VM undera  DRS cluster](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867)

<div class="topic-metadata">

**Author:** [@Ayan\_Dasgupta](https://forum.ansible.com/u/Ayan_Dasgupta)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 7:30am UTC](https://forum.ansible.com/t/deploy-vm-undera-drs-cluster/21867 "2016-06-30T07:30:38Z")

</div>

Hi, Can we deploy a VM under a specific DRS cluster instead of providing datastore name. Any help would be greatly appreciated. Warm regards, Ayan

---

## [question on lineinfile module](https://forum.ansible.com/t/question-on-lineinfile-module/21884)

<div class="topic-metadata">

**Author:** [@Werner\_Flamme](https://forum.ansible.com/u/Werner_Flamme)\
**Replies:** 4\
**Last updated:** [June 30, 2016, 6:43am UTC](https://forum.ansible.com/t/question-on-lineinfile-module/21884 "2016-06-30T06:43:17Z")

</div>

Hi everyone, I have one play that does not do what I want it to: - name: set kernel multiversions lineinfile: dest: /etc/zypp/zypp.conf line: "multiversion.kernels = latest,oldest,running" regexp: "mu…

---

## [Ansible + Packer = nothing?](https://forum.ansible.com/t/ansible-packer-nothing/21893)

<div class="topic-metadata">

**Author:** [@Foster\_Rilindo](https://forum.ansible.com/u/Foster_Rilindo)\
**Replies:** 0\
**Last updated:** [June 29, 2016, 7:02pm UTC](https://forum.ansible.com/t/ansible-packer-nothing/21893 "2016-06-29T19:02:24Z")

</div>

I dumbs. I had a reboot option in my packer config, which mean that the machine was rebooting right when I was running ansible code. It works now. J Rilindo

---

## [List all variables/facts that are used in a playbook?](https://forum.ansible.com/t/list-all-variables-facts-that-are-used-in-a-playbook/21892)

<div class="topic-metadata">

**Author:** [@Kevin\_Schumacher](https://forum.ansible.com/u/Kevin_Schumacher)\
**Replies:** 1\
**Last updated:** [June 29, 2016, 6:52pm UTC](https://forum.ansible.com/t/list-all-variables-facts-that-are-used-in-a-playbook/21892 "2016-06-29T18:52:57Z")

</div>

Hi all, I am looking for a way to list all variables referenced by a playbook without executing any tasks. Ideally, I would also be able to spit out the values of those variables for each host matched in the play. My u…

---

## [Using backslash in Windows path](https://forum.ansible.com/t/using-backslash-in-windows-path/21875)

<div class="topic-metadata">

**Author:** [@Karol\_Olczak](https://forum.ansible.com/u/Karol_Olczak)\
**Replies:** 4\
**Last updated:** [June 29, 2016, 6:21pm UTC](https://forum.ansible.com/t/using-backslash-in-windows-path/21875 "2016-06-29T18:21:36Z")

</div>

Hi What is the most efficient way to "push" backslashes in ansible playbooks ? My playbook does not work because Python cut backslashes or add new one. e.g. //hostname001/foo/

---

## [Synchronize module fails to push data to hosted local VMs](https://forum.ansible.com/t/synchronize-module-fails-to-push-data-to-hosted-local-vms/21854)

<div class="topic-metadata">

**Author:** [@Frederic\_Lionello](https://forum.ansible.com/u/Frederic_Lionello)\
**Replies:** 2\
**Last updated:** [June 29, 2016, 2:40pm UTC](https://forum.ansible.com/t/synchronize-module-fails-to-push-data-to-hosted-local-vms/21854 "2016-06-29T14:40:24Z")

</div>

Hello, In my ansible inventory, I have VMs on localhost defined: myvm ansible\_port=15022 ansible\_host=127.0.0.1 ansible\_user=tibco I’m trying to synchronize a local directory from the control host (running ansible) to…

---

## [Ansible set\_fact not working](https://forum.ansible.com/t/ansible-set-fact-not-working/21878)

<div class="topic-metadata">

**Author:** [@sreenivas\_narayan](https://forum.ansible.com/u/sreenivas_narayan)\
**Replies:** 1\
**Last updated:** [June 29, 2016, 1:57pm UTC](https://forum.ansible.com/t/ansible-set-fact-not-working/21878 "2016-06-29T13:57:15Z")

</div>

I am trying to list the directory size of certain directory in list of servers. In the below playbook the ruby script along with ansible task will create file with all instance details and saving it in region-ec2-list.tx…

---

## [~/.my.cnf path](https://forum.ansible.com/t/my-cnf-path/21888)

<div class="topic-metadata">

**Author:** [@sdarwin](https://forum.ansible.com/u/sdarwin)\
**Replies:** 0\
**Last updated:** [June 29, 2016, 11:10am UTC](https://forum.ansible.com/t/my-cnf-path/21888 "2016-06-29T11:10:15Z")

</div>

Hi, Question about the location of ~/.my.cnf . For ansible, would this refer to the “become” user’s home directory ( which is /root/.my.cnf ), or the ansible user’s home directory ( such as, during testing, /home/vagran…

---

## [About Inventory](https://forum.ansible.com/t/about-inventory/21886)

<div class="topic-metadata">

**Author:** [@user12](https://forum.ansible.com/u/user12)\
**Replies:** 2\
**Last updated:** [June 29, 2016, 10:37am UTC](https://forum.ansible.com/t/about-inventory/21886 "2016-06-29T10:37:40Z")

</div>

I’am a beginning user of Ansible,One problem has been bothering me： whether all host must be add into a single file with “hosts”? if i have a lots of host,It will lead to very large files,How to divide into multiple fil…

---

## [Still in 2.1?: Nested values always cast to string](https://forum.ansible.com/t/still-in-2-1-nested-values-always-cast-to-string/21871)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 4\
**Last updated:** [June 29, 2016, 8:03am UTC](https://forum.ansible.com/t/still-in-2-1-nested-values-always-cast-to-string/21871 "2016-06-29T08:03:20Z")

</div>

I thought one of the big improvements in 2.x was not blindly casting nested values to strings: \` vars: a\_var\_number: 200 tasks: mymodule: module\_args: a\_fixed\_number: 100 a\_var\_number: “{{ a\_number }}” a\_var\_nu…

---

## [Installation of 2.0](https://forum.ansible.com/t/installation-of-2-0/21611)

<div class="topic-metadata">

**Author:** [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Replies:** 12\
**Last updated:** [June 29, 2016, 6:40am UTC](https://forum.ansible.com/t/installation-of-2-0/21611 "2016-06-29T06:40:59Z")

</div>

I am in need of assistance in upgrading Ansible to version 2.0. Every time I attempt to install I get the 1.7.2 version. I have about 10 windows vm machines that I am looking to manage with the Ansible application and …

---

## [Ansible + Packer = nothing?](https://forum.ansible.com/t/ansible-packer-nothing/21883)

<div class="topic-metadata">

**Author:** [@Foster\_Rilindo](https://forum.ansible.com/u/Foster_Rilindo)\
**Replies:** 0\
**Last updated:** [June 29, 2016, 12:02am UTC](https://forum.ansible.com/t/ansible-packer-nothing/21883 "2016-06-29T00:02:01Z")

</div>

I am currently experimenting with deploying using Packer’s Ansible local provisioning and for some odd reason, it doesn’t appear to be executing the tasks in the playbook. Packer, after installing the pre-requiresites fo…

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

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