# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=575

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

**Page:** 576

---

## [include\_vars look up files in wrong directory if used with local\_action](https://forum.ansible.com/t/include-vars-look-up-files-in-wrong-directory-if-used-with-local-action/20102)

<div class="topic-metadata">

**Author:** [@Paulo\_Suderio](https://forum.ansible.com/u/Paulo_Suderio)\
**Replies:** 3\
**Last updated:** [July 5, 2016, 6:29pm UTC](https://forum.ansible.com/t/include-vars-look-up-files-in-wrong-directory-if-used-with-local-action/20102 "2016-07-05T18:29:53Z")

</div>

I believe it is a bug, but since I am an ansible beginner I would like to check with someone before reporting - either for comfirmation or some indication that I am doing it the wrong way: I am trying to load some varia…

---

## ["--file" mechanism in os\_server module?](https://forum.ansible.com/t/file-mechanism-in-os-server-module/21890)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 3\
**Last updated:** [July 5, 2016, 4:43pm UTC](https://forum.ansible.com/t/file-mechanism-in-os-server-module/21890 "2016-07-05T16:43:32Z")

</div>

I do not see a way to specify the --file option in the os\_server module to store files on the instance. Is there a way to do this with the os\_server module? Thanks, Steven.

---

## [Introducing Ansible Container](https://forum.ansible.com/t/introducing-ansible-container/21646)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 8\
**Last updated:** [July 5, 2016, 4:03pm UTC](https://forum.ansible.com/t/introducing-ansible-container/21646 "2016-07-05T16:03:31Z")

</div>

Many thanks to Joshua Ginsberg and Chris Houseknecht of Ansible for starting this new project: https://github.com/ansible/ansible-container Still in its infancy, so please take it for a spin and let us know how it wo…

---

## [What does {{ vars|random }} do ?](https://forum.ansible.com/t/what-does-vars-random-do/21925)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 3:52pm UTC](https://forum.ansible.com/t/what-does-vars-random-do/21925 "2016-07-05T15:52:37Z")

</div>

Looking over some ansible ec2 script I see reference to: “{{ vars|random }}” e.g. vpc\_subnet\_id: “{{ ec2\_subnet\_id|random }}” (http://allandenot.com/devops/2015/01/31/provisioning-ec2-hosts-with-ansible.html) Does t…

---

## [playbook to create new openstack project and virtual networks](https://forum.ansible.com/t/playbook-to-create-new-openstack-project-and-virtual-networks/21927)

<div class="topic-metadata">

**Author:** [@Maurizio\_Santovito](https://forum.ansible.com/u/Maurizio_Santovito)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 3:51pm UTC](https://forum.ansible.com/t/playbook-to-create-new-openstack-project-and-virtual-networks/21927 "2016-07-05T15:51:48Z")

</div>

Hi all, I’m quite new in Ansuble and I’m struggling a bit ti find a way to use openstack modules to create a new Openstack project and some very basic virtual networks by neutron. Is it a valid question? And if yes, i…

---

## [nested playbooks](https://forum.ansible.com/t/nested-playbooks/21924)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 1\
**Last updated:** [July 5, 2016, 3:04pm UTC](https://forum.ansible.com/t/nested-playbooks/21924 "2016-07-05T15:04:18Z")

</div>

Hi My nested playbooks fail with this error: $ ansible-playbook site.yml --limit dev ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to h…

---

## [How to obtain "Alias Hosted Zone ID"?](https://forum.ansible.com/t/how-to-obtain-alias-hosted-zone-id/19098)

<div class="topic-metadata">

**Author:** [@Stanley\_Nguyen](https://forum.ansible.com/u/Stanley_Nguyen)\
**Replies:** 1\
**Last updated:** [July 5, 2016, 2:27pm UTC](https://forum.ansible.com/t/how-to-obtain-alias-hosted-zone-id/19098 "2016-07-05T14:27:52Z")

</div>

Hi, I’m using route53 modules and wondering how you can obtain “Alias Hosted Zone ID” without hard-coding it? thanks, stanley

---

## [Running Ansible playbook without an inventory file (use other source for getting inventory)](https://forum.ansible.com/t/running-ansible-playbook-without-an-inventory-file-use-other-source-for-getting-inventory/21904)

<div class="topic-metadata">

**Author:** [@Arpit\_Ghiya](https://forum.ansible.com/u/Arpit_Ghiya)\
**Replies:** 3\
**Last updated:** [July 5, 2016, 12:33pm UTC](https://forum.ansible.com/t/running-ansible-playbook-without-an-inventory-file-use-other-source-for-getting-inventory/21904 "2016-07-05T12:33:02Z")

</div>

Hello We are currently in a process to switch from our current legacy systems to Ansible for server provisioning and deployment. All of our server details are stored in ruby configuration files \[.rb\], which is obviously…

---

## [NameError: name 'ansible' is not defined](https://forum.ansible.com/t/nameerror-name-ansible-is-not-defined/18985)

<div class="topic-metadata">

**Author:** [@Karthik\_Rengarajan](https://forum.ansible.com/u/Karthik_Rengarajan)\
**Replies:** 2\
**Last updated:** [July 5, 2016, 12:27pm UTC](https://forum.ansible.com/t/nameerror-name-ansible-is-not-defined/18985 "2016-07-05T12:27:50Z")

</div>

Hi, I am new to ansible and learning ansible from a tutorial. I am using windows 7 (unfortunately) and Vagrant with VirtualBox. I have installed ansible 2.0.0 on one vagrant ubuntu box and the ansible inventory file has …

---

## [Ping module - SSH connection fails on my Fedora 23 box](https://forum.ansible.com/t/ping-module-ssh-connection-fails-on-my-fedora-23-box/21885)

<div class="topic-metadata">

**Author:** [@Hornbachner\_Simon](https://forum.ansible.com/u/Hornbachner_Simon)\
**Replies:** 4\
**Last updated:** [July 5, 2016, 8:55am UTC](https://forum.ansible.com/t/ping-module-ssh-connection-fails-on-my-fedora-23-box/21885 "2016-07-05T08:55:55Z")

</div>

Ahoy hoy Ansiblers, I can't get Ansible to work from my Fedora 23 box. I don't have any firewall running, but can't even connect to localhost. Doing ssh user@m yhost manually works perfectly. And most interestingly, i…

---

## [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/21918)

<div class="topic-metadata">

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

</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 …

---

## [How to use new Azure modules](https://forum.ansible.com/t/how-to-use-new-azure-modules/21598)

<div class="topic-metadata">

**Author:** [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Replies:** 4\
**Last updated:** [July 4, 2016, 7:28pm UTC](https://forum.ansible.com/t/how-to-use-new-azure-modules/21598 "2016-07-04T19:28:56Z")

</div>

Hi All, I would like to know details to use Azure modules ( azure\_rm\_xxxxxx ) . because it failed tasks for azure. I already have own azure account. I think that I must get some objects ( ad\_user / password ) on my …

---

## [Action plugin: Delegate task to different host](https://forum.ansible.com/t/action-plugin-delegate-task-to-different-host/21916)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 1\
**Last updated:** [July 4, 2016, 1:48pm UTC](https://forum.ansible.com/t/action-plugin-delegate-task-to-different-host/21916 "2016-07-04T13:48:49Z")

</div>

Holla! I have an action plugin that will run some modules on the target host per self.\_execute\_module(…) Now I want one single module to be delegated to a different host.\* The name of this host is a parameter of my cus…

---

## [variables in hostname doesn't work well with jinja2 templates](https://forum.ansible.com/t/variables-in-hostname-doesnt-work-well-with-jinja2-templates/21910)

<div class="topic-metadata">

**Author:** [@Aneesh\_Joseph](https://forum.ansible.com/u/Aneesh_Joseph)\
**Replies:** 2\
**Last updated:** [July 4, 2016, 12:07pm UTC](https://forum.ansible.com/t/variables-in-hostname-doesnt-work-well-with-jinja2-templates/21910 "2016-07-04T12:07:30Z")

</div>

I’m using variables within the inventory host name to provision environments dynamically using the ansible openstack modules and this is working well \[openstack\] myserver-{{env}}.subdomain.mycompany.com but, when I try…

---

## [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/21912)

<div class="topic-metadata">

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

</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 …

---

## [VMware VM's Configuring Server Names](https://forum.ansible.com/t/vmware-vms-configuring-server-names/21906)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 1\
**Last updated:** [July 4, 2016, 8:05am UTC](https://forum.ansible.com/t/vmware-vms-configuring-server-names/21906 "2016-07-04T08:05:37Z")

</div>

Hi I have a playbook that creates multiple VM’s in VMware (see below). When the VM’s have all been created they have the same server name as the template. So I have 20 new VM’s all with the same OS name. I want the OS…

---

## [Man page of ansible displays: ERROR: Missing target hosts.](https://forum.ansible.com/t/man-page-of-ansible-displays-error-missing-target-hosts/21915)

<div class="topic-metadata">

**Author:** [@akansha\_agarwal](https://forum.ansible.com/u/akansha_agarwal)\
**Replies:** 0\
**Last updated:** [July 4, 2016, 7:00am UTC](https://forum.ansible.com/t/man-page-of-ansible-displays-error-missing-target-hosts/21915 "2016-07-04T07:00:25Z")

</div>

I am running latest version of ansible:2.1.0.0 on CentOS 6.8. But man page of ansible displays: ERROR: Missing target hosts. Can anyone please help?

---

## [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…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=574)

[Next page](https://forum.ansible.com/c/archives/31.md?page=576)
