# Latest

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

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

**Page:** 762

---

## [One question about the default variables of dependency roles override in ansible 2.0](https://forum.ansible.com/t/one-question-about-the-default-variables-of-dependency-roles-override-in-ansible-2-0/20246)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 5\
**Last updated:** [May 19, 2016, 3:13am UTC](https://forum.ansible.com/t/one-question-about-the-default-variables-of-dependency-roles-override-in-ansible-2-0/20246 "2016-05-19T03:13:48Z")

</div>

Hi all, Upgrade to ansible 2.0, my playbook activities changed. I have a question about default variables of dependency roles. I have a role A which depends on role B. Role B is defined in meta/main.yml of role A. Act…

---

## [How to run role with a particular tag in a playbook?](https://forum.ansible.com/t/how-to-run-role-with-a-particular-tag-in-a-playbook/21458)

<div class="topic-metadata">

**Author:** [@Dmitry\_Owl](https://forum.ansible.com/u/Dmitry_Owl)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 11:07pm UTC](https://forum.ansible.com/t/how-to-run-role-with-a-particular-tag-in-a-playbook/21458 "2016-05-18T23:07:36Z")

</div>

Hello, I need to run role in a playbook with a particular tag, \*\*without "--tags" option.\*\* Something like this: - hosts: somehost remote\_user: someuser roles: - { role: somerole, with-tags: 'sometag' } I e…

---

## [Ansible 2.1.0 RC3 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc3-is-ready-for-testing/21484)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 8:08pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc3-is-ready-for-testing/21484 "2016-05-18T20:08:48Z")

</div>

Hi all, we’re happy to announce that RC3 for 2.1.0 is now available for testing. This updated release candidate fixes a few additional bugs, including (but not limited to): Fixed several bugs to make the execution of …

---

## [Ansible 2.1.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-1-0-rc2-is-ready-for-testing/21438)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 5\
**Last updated:** [May 18, 2016, 8:03pm UTC](https://forum.ansible.com/t/ansible-2-1-0-rc2-is-ready-for-testing/21438 "2016-05-18T20:03:14Z")

</div>

Hi all, we’re happy to announce that RC2 for 2.1.0 is now available for testing. This updated release candidate fixes several bugs from RC1, including (but not limited to): Fixed several bugs related to the new ziploa…

---

## [using wildcards to fetching src files](https://forum.ansible.com/t/using-wildcards-to-fetching-src-files/12049)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 7\
**Last updated:** [May 18, 2016, 7:54pm UTC](https://forum.ansible.com/t/using-wildcards-to-fetching-src-files/12049 "2016-05-18T19:54:57Z")

</div>

Ansible 0.8 contains "with\_fileglob", which does what you want action: modulename src=$item \<other arguments\> with\_fileglob: /data\_dump\_\*.sql It would send over all files matching the glob from the local server in …

---

## [Need help with adding multiple hosts](https://forum.ansible.com/t/need-help-with-adding-multiple-hosts/21482)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 5:48pm UTC](https://forum.ansible.com/t/need-help-with-adding-multiple-hosts/21482 "2016-05-18T17:48:43Z")

</div>

I’m trying to figure out why this is only adding one hosts after registering ec2 Ansible 2.0.2 name: Add hosts group temporary inventory group add\_host: name={{ item.private\_ip }} groups=dynamic with\_items: “{{ ec2.…

---

## [ansible add\_host module is not adding multiple hosts](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21480)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 3:14pm UTC](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21480 "2016-05-18T15:14:42Z")

</div>

boto (2.40.0) ansible 2.0.2.0 When running this and trying to add multiple hosts to a new group for in memory inventory it only adding the first ec2 instance. On the wait for ssh task it does wait for all ec2 instances …

---

## [Failed to ping linux machine having python version 3.5.1](https://forum.ansible.com/t/failed-to-ping-linux-machine-having-python-version-3-5-1/21470)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 3:03pm UTC](https://forum.ansible.com/t/failed-to-ping-linux-machine-having-python-version-3-5-1/21470 "2016-05-18T15:03:48Z")

</div>

I am trying to ping a linux machine having python version 3.5.1+, but I am facing the following error. ansible -m ping linux1 1.1.1.2 | FAILED! =\> { “changed”: false, “failed”: true, “msg”: “Traceback (most recent c…

---

## [Wait function between Roles](https://forum.ansible.com/t/wait-function-between-roles/21479)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 2:58pm UTC](https://forum.ansible.com/t/wait-function-between-roles/21479 "2016-05-18T14:58:54Z")

</div>

Hi Not sure if you able to assist with this question, but is it at all possible to setup a ‘wait’ function between roles in a playbook? So if I have the following playbook:

---

## [Issue with URI module in ansible1.9-1.9.6-2](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462)

<div class="topic-metadata">

**Author:** [@Guillaume\_Belrose](https://forum.ansible.com/u/Guillaume_Belrose)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 2:53pm UTC](https://forum.ansible.com/t/issue-with-uri-module-in-ansible1-9-1-9-6-2/21462 "2016-05-18T14:53:30Z")

</div>

Hi all, I am on CentOS 6.7 using Ansible 1.9 and I’ve updated my version of Ansible to be ansible1.9-1.9.6-2 (retrieved from EPEL). I have some tasks (\[1\]) which upload (via POST) dashboards to Grafana. Those tasks use…

---

## [ansible add\_host module is not adding multiple hosts](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21478)

<div class="topic-metadata">

**Author:** [@eric\_skaggs](https://forum.ansible.com/u/eric_skaggs)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 2:16pm UTC](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21478 "2016-05-18T14:16:16Z")

</div>

boto (2.40.0) ansible 2.0.2.0 When running this and trying to add multiple hosts to a new group for in memory inventory it only adding the first ec2 instance. On the wait for ssh task it does wait for all ec2 instances …

---

## [ios\_template making changes when router config already exists](https://forum.ansible.com/t/ios-template-making-changes-when-router-config-already-exists/21158)

<div class="topic-metadata">

**Author:** [@Luke\_Russell](https://forum.ansible.com/u/Luke_Russell)\
**Replies:** 4\
**Last updated:** [May 18, 2016, 1:50pm UTC](https://forum.ansible.com/t/ios-template-making-changes-when-router-config-already-exists/21158 "2016-05-18T13:50:12Z")

</div>

I am using ios\_template to deploy some DMVPN tunnels. For some reason it is not recognising two commands that already exist on the router - ip nhrp map a.a.a.a b.b.b.b and ip nhrp nhs a.a.a.a. I’m not really sure what is…

---

## [Inventory Group Name as a Variable?](https://forum.ansible.com/t/inventory-group-name-as-a-variable/21473)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 1:26pm UTC](https://forum.ansible.com/t/inventory-group-name-as-a-variable/21473 "2016-05-18T13:26:52Z")

</div>

I would like to use our inventory group names as a variable in a template file. Has anyone had any success doing this?

---

## [add\_host for multiple containers on multiple hosts](https://forum.ansible.com/t/add-host-for-multiple-containers-on-multiple-hosts/21472)

<div class="topic-metadata">

**Author:** [@Jirayut\_Nimsaeng](https://forum.ansible.com/u/Jirayut_Nimsaeng)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 11:30am UTC](https://forum.ansible.com/t/add-host-for-multiple-containers-on-multiple-hosts/21472 "2016-05-18T11:30:31Z")

</div>

Let's see my use case name: Run Nginx container docker: name: nginx image: nginx state: started ports: “80:80” “443:443” name: Add host nginx container add\_host: name: nginx groups: nginx\_container …

---

## [Correct way to parse arguments in custom module](https://forum.ansible.com/t/correct-way-to-parse-arguments-in-custom-module/21471)

<div class="topic-metadata">

**Author:** [@Valentin\_He](https://forum.ansible.com/u/Valentin_He)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 11:27am UTC](https://forum.ansible.com/t/correct-way-to-parse-arguments-in-custom-module/21471 "2016-05-18T11:27:06Z")

</div>

Hey folks, I am currently trying to learn how to write custom modules for Ansible. My goal is to just execute one command on a remote server, to get started. But I cant seem to figure out how to correctly parse argume…

---

## [Ansible provisioner fails to apply template to second VM in Vagrant](https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459)

<div class="topic-metadata">

**Author:** [@Alex\_Willmer](https://forum.ansible.com/u/Alex_Willmer)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 10:32am UTC](https://forum.ansible.com/t/ansible-provisioner-fails-to-apply-template-to-second-vm-in-vagrant/21459 "2016-05-18T10:32:23Z")

</div>

I’m trying to start-up multiple VMs in Vagrant, using Ansible as the provisioner. However when I run vagrant up only the first VM (foo) gets the template applied. The second (bar) misreports that the destination file is …

---

## [lists and dictionaries in layers](https://forum.ansible.com/t/lists-and-dictionaries-in-layers/21468)

<div class="topic-metadata">

**Author:** [@swen.b](https://forum.ansible.com/u/swen.b)\
**Replies:** 0\
**Last updated:** [May 18, 2016, 7:27am UTC](https://forum.ansible.com/t/lists-and-dictionaries-in-layers/21468 "2016-05-18T07:27:58Z")

</div>

Is it possbile to use lists and dictionaries in more layers like: vars: users: unsername: jon ssh: True pages: pagename: page1 documentroot: /home/page1 pagename: page2 documentroot: /home/page2 unsername: jane …

---

## [Getting aws account id](https://forum.ansible.com/t/getting-aws-account-id/21466)

<div class="topic-metadata">

**Author:** [@Darvin\_Denmian](https://forum.ansible.com/u/Darvin_Denmian)\
**Replies:** 2\
**Last updated:** [May 18, 2016, 3:35am UTC](https://forum.ansible.com/t/getting-aws-account-id/21466 "2016-05-18T03:35:06Z")

</div>

Hi guys, does anyone have a good option to get the my aws account id using Ansible ? Thanks !

---

## [Ho to config my network switch device?](https://forum.ansible.com/t/ho-to-config-my-network-switch-device/21404)

<div class="topic-metadata">

**Author:** [@aries](https://forum.ansible.com/u/aries)\
**Replies:** 5\
**Last updated:** [May 18, 2016, 3:25am UTC](https://forum.ansible.com/t/ho-to-config-my-network-switch-device/21404 "2016-05-18T03:25:41Z")

</div>

Hi My network switch has ssh, no Python. Can I use Ansible via SSH to config my switch? (use CLI command) Thanks

---

## [newbie: Error while running Ansible API from the doc](https://forum.ansible.com/t/newbie-error-while-running-ansible-api-from-the-doc/21465)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 9:36pm UTC](https://forum.ansible.com/t/newbie-error-while-running-ansible-api-from-the-doc/21465 "2016-05-17T21:36:19Z")

</div>

Hi, I am a newbie to the Ansible Python API thing and i am trying out to run the code given in the Ansible Python API documentation (Link: http://docs.ansible.com/ansible/developing\_api.html Python API 2.0) I get the f…

---

## [Ansible reads all files in host\_vars and group\_vars instead of just the ones for the specified hosts](https://forum.ansible.com/t/ansible-reads-all-files-in-host-vars-and-group-vars-instead-of-just-the-ones-for-the-specified-hosts/21464)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 2\
**Last updated:** [May 17, 2016, 9:22pm UTC](https://forum.ansible.com/t/ansible-reads-all-files-in-host-vars-and-group-vars-instead-of-just-the-ones-for-the-specified-hosts/21464 "2016-05-17T21:22:27Z")

</div>

Hello, I am running ansible 2.0.2 on Ubuntu 14.04. I have several vaulted host-specific or group-specific files in host\_vars or group\_vars, so whenever I run “ansible-playbook”, I pass the “–ask-vault” option. I noticed…

---

## [ansible add\_host module is not adding multiple hosts](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21463)

<div class="topic-metadata">

**Author:** [@eric\_skaggs](https://forum.ansible.com/u/eric_skaggs)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 9:05pm UTC](https://forum.ansible.com/t/ansible-add-host-module-is-not-adding-multiple-hosts/21463 "2016-05-17T21:05:48Z")

</div>

boto (2.40.0) ansible 2.0.2.0 When running this and trying to add multiple hosts to a new group for in memory inventory it only adding the first ec2 instance. On the wait for ssh task it does wait for all ec2 instances …

---

## [host-pattern and wild cards](https://forum.ansible.com/t/host-pattern-and-wild-cards/21460)

<div class="topic-metadata">

**Author:** [@Kenny\_Serrine](https://forum.ansible.com/u/Kenny_Serrine)\
**Replies:** 1\
**Last updated:** [May 17, 2016, 8:32pm UTC](https://forum.ansible.com/t/host-pattern-and-wild-cards/21460 "2016-05-17T20:32:45Z")

</div>

I’m using wildcards to match my hosts, and it works in one case but not in another. I’ve figured out that if I use a regex pattern, I can get consistency. But, for just simple wildcard, I’m wondering if this is a bug or …

---

## [Problem with sudo su user](https://forum.ansible.com/t/problem-with-sudo-su-user/21419)

<div class="topic-metadata">

**Author:** [@Jakub\_Zielinski](https://forum.ansible.com/u/Jakub_Zielinski)\
**Replies:** 3\
**Last updated:** [May 17, 2016, 6:03pm UTC](https://forum.ansible.com/t/problem-with-sudo-su-user/21419 "2016-05-17T18:03:12Z")

</div>

In sudoers file I have only (can’t change it) %user ALL=(ALL) NOPASSWD: /bin/su - jboss How can I sudo to jboss and then run some command? I tried something like - become: yes become\_user: "jboss" raw: "touch test" …

---

## [ansible\_facts access within a custom module](https://forum.ansible.com/t/ansible-facts-access-within-a-custom-module/15245)

<div class="topic-metadata">

**Author:** [@Christian\_Huck](https://forum.ansible.com/u/Christian_Huck)\
**Replies:** 4\
**Last updated:** [May 17, 2016, 2:14pm UTC](https://forum.ansible.com/t/ansible-facts-access-within-a-custom-module/15245 "2016-05-17T14:14:40Z")

</div>

Hi, how can I access the ansible\_facts within a custom module which was initialized with the AnsibleModule class ? I either: a) need to pass the facts as a module parameter or b) access the facts directly inside the…

---

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

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 2:00pm UTC](https://forum.ansible.com/t/new-modules-report-17-may-2016/21456 "2016-05-17T14:00:52Z")

</div>

There are currently 180 modules waiting for inclusion in Ansible Extras. One of them might be useful to you! New modules this week: Add os\_recordset module https://github.com/ansible/ansible-modules-extras/pull/2240 …

---

## [LXD module development](https://forum.ansible.com/t/lxd-module-development/21455)

<div class="topic-metadata">

**Author:** [@James\_Pic](https://forum.ansible.com/u/James_Pic)\
**Replies:** 3\
**Last updated:** [May 17, 2016, 1:53pm UTC](https://forum.ansible.com/t/lxd-module-development/21455 "2016-05-17T13:53:06Z")

</div>

Hi all \\o/ Basically, lxd is like the lxc module, with a bit more feature ie. the ability to manage container images like docker. Has anyone started any development on the LXD module ? Is there any recommendation you’…

---

## [Encrypt private\_key\_file ?](https://forum.ansible.com/t/encrypt-private-key-file/21454)

<div class="topic-metadata">

**Author:** [@Gregor1](https://forum.ansible.com/u/Gregor1)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 10:56am UTC](https://forum.ansible.com/t/encrypt-private-key-file/21454 "2016-05-17T10:56:14Z")

</div>

I’d like to put the private key file I ssh into many of my machines with into my repo. When I encrypt the file with the ssh-key in it using ansible-vault, I can easily edit, show etc. the file with ansible-vault when I p…

---

## [Ansible\_facts](https://forum.ansible.com/t/ansible-facts/21453)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 9:13am UTC](https://forum.ansible.com/t/ansible-facts/21453 "2016-05-17T09:13:57Z")

</div>

Hi, I am writing an inventory playbook to fetch the system information such as CPU details, Network Related info, Disk space related info and system specific information. Ansible already provides some of these info tha…

---

## [New install to manage Windows servers, but krb5.conf is missing](https://forum.ansible.com/t/new-install-to-manage-windows-servers-but-krb5-conf-is-missing/21279)

<div class="topic-metadata">

**Author:** [@Mike\_Sherrill](https://forum.ansible.com/u/Mike_Sherrill)\
**Replies:** 3\
**Last updated:** [May 17, 2016, 7:22am UTC](https://forum.ansible.com/t/new-install-to-manage-windows-servers-but-krb5-conf-is-missing/21279 "2016-05-17T07:22:39Z")

</div>

I’m installing Ansible as a test. I have a mixed environment of Windows and Ubuntu servers in an Active Directory domain. I built a new Hyper-V virtual machine for Ansible; it’s running Xubuntu 16.04 LTS. Ansible 2.0.0.…

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

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