# Archives

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

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

**Page:** 591

---

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

---

## [Looking for a way to use Galaxy without overflowing our Github organization with roles](https://forum.ansible.com/t/looking-for-a-way-to-use-galaxy-without-overflowing-our-github-organization-with-roles/21451)

<div class="topic-metadata">

**Author:** [@Sean\_Bollin](https://forum.ansible.com/u/Sean_Bollin)\
**Replies:** 0\
**Last updated:** [May 17, 2016, 3:32am UTC](https://forum.ansible.com/t/looking-for-a-way-to-use-galaxy-without-overflowing-our-github-organization-with-roles/21451 "2016-05-17T03:32:49Z")

</div>

Hi our company has an organization setup on Github. We’d like to create a central area to store ansible roles that we create (and open source them). The problem is, we don’t want to put dozens of ansible roles in our ma…

---

## [netconf module](https://forum.ansible.com/t/netconf-module/21201)

<div class="topic-metadata">

**Author:** [@Leandro\_Penz](https://forum.ansible.com/u/Leandro_Penz)\
**Replies:** 6\
**Last updated:** [May 17, 2016, 1:44am UTC](https://forum.ansible.com/t/netconf-module/21201 "2016-05-17T01:44:54Z")

</div>

Hi there I’ve coded a very simple netconf module, for edit-config operations. You can see it here: https://github.com/lpenz/ansible-modules-extras/commit/02beadea716e923185bbba5aa44211efc36ee47a There are still a coupl…

---

## [Using module junos\_install\_os through ssh tunnel to Jump server (Paramiko transport failed)](https://forum.ansible.com/t/using-module-junos-install-os-through-ssh-tunnel-to-jump-server-paramiko-transport-failed/21450)

<div class="topic-metadata">

**Author:** [@cdassy.ccs](https://forum.ansible.com/u/cdassy.ccs)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 11:05pm UTC](https://forum.ansible.com/t/using-module-junos-install-os-through-ssh-tunnel-to-jump-server-paramiko-transport-failed/21450 "2016-05-16T23:05:55Z")

</div>

Hello guys, I’m deploying a new playbook in order to provision some devices and working with netconify is working fine, but when i want to upgrade the junos through the jump server i’m having issues with paramiko authen…

---

## [group\_vars values overriden for repeating servers](https://forum.ansible.com/t/group-vars-values-overriden-for-repeating-servers/21199)

<div class="topic-metadata">

**Author:** [@Manoj\_Badam](https://forum.ansible.com/u/Manoj_Badam)\
**Replies:** 4\
**Last updated:** [May 16, 2016, 9:49pm UTC](https://forum.ansible.com/t/group-vars-values-overriden-for-repeating-servers/21199 "2016-05-16T21:49:15Z")

</div>

Hi Team, I’m a newbie to ansible, trying to complete this project for opening firewall ports. Below is my project structure group\_vars dbserver webserver applicationserver host\_vars roles Common files app.app handler…

---

## [problem with installing ansible](https://forum.ansible.com/t/problem-with-installing-ansible/21447)

<div class="topic-metadata">

**Author:** [@Mahyar\_Damavand](https://forum.ansible.com/u/Mahyar_Damavand)\
**Replies:** 1\
**Last updated:** [May 16, 2016, 6:16pm UTC](https://forum.ansible.com/t/problem-with-installing-ansible/21447 "2016-05-16T18:16:57Z")

</div>

Hi, unfortunately I can’t install ansible using pip: sudo pip install git+https://github.com/edx/ansible.git@stable-1.9.3-rc1-edx#egg=ansible==1.9.3-edx I dont know why but cloning did not finished after about an hour…

---

## [How can you install a package into a specific directory using Ansible?](https://forum.ansible.com/t/how-can-you-install-a-package-into-a-specific-directory-using-ansible/21449)

<div class="topic-metadata">

**Author:** [@jamesvader13](https://forum.ansible.com/u/jamesvader13)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 4:47pm UTC](https://forum.ansible.com/t/how-can-you-install-a-package-into-a-specific-directory-using-ansible/21449 "2016-05-16T16:47:50Z")

</div>

| I am using win\_package to install many MSI’s and EXE’s. I would like to be able to pass a directory as an argument so that they get installed in a particular folder. Right now they are automatically gettin…

---

## [Need help with Ansible Notify module: Handlers are not invoked even if template target file changes](https://forum.ansible.com/t/need-help-with-ansible-notify-module-handlers-are-not-invoked-even-if-template-target-file-changes/21437)

<div class="topic-metadata">

**Author:** [@Srikanth\_Vavilapalli](https://forum.ansible.com/u/Srikanth_Vavilapalli)\
**Replies:** 2\
**Last updated:** [May 16, 2016, 3:35pm UTC](https://forum.ansible.com/t/need-help-with-ansible-notify-module-handlers-are-not-invoked-even-if-template-target-file-changes/21437 "2016-05-16T15:35:19Z")

</div>

Hi I am using ansible-playbook version 1.8.2. I have the following task in my ansible playbook that needs to invoke a set of handlers whenever the config file changes: name: ceilometer proxy config template: src=cei…

---

## [Ovirt add storage module](https://forum.ansible.com/t/ovirt-add-storage-module/21448)

<div class="topic-metadata">

**Author:** [@Rob\_Cousins](https://forum.ansible.com/u/Rob_Cousins)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 3:20pm UTC](https://forum.ansible.com/t/ovirt-add-storage-module/21448 "2016-05-16T15:20:26Z")

</div>

Here at highops.com we have developed a few Ovirt modules .We would like to share them with the ansible community .I have read through the documentation and believe one of our modules are ready for release .I have pulled…

---

## [OS\_TOKEN environment variable with os\_\* modules](https://forum.ansible.com/t/os-token-environment-variable-with-os-modules/20754)

<div class="topic-metadata">

**Author:** [@Curtis](https://forum.ansible.com/u/Curtis)\
**Replies:** 1\
**Last updated:** [May 16, 2016, 12:32pm UTC](https://forum.ansible.com/t/os-token-environment-variable-with-os-modules/20754 "2016-05-16T12:32:29Z")

</div>

Hi, I'm having a hard time getting the os\_user (and I would imagine other modules) to work just using a service token, ie. there are no users in keystone yet, so need to create them using the service token. How would…

---

## [Feature suggestion: use\_tags](https://forum.ansible.com/t/feature-suggestion-use-tags/21446)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 0\
**Last updated:** [May 16, 2016, 12:15pm UTC](https://forum.ansible.com/t/feature-suggestion-use-tags/21446 "2016-05-16T12:15:15Z")

</div>

The quick summary is as follows: the documentation says to think of roles as classes. Complex lifecycle operations are hard to express, decompose, and recompose. This proposal is to extend the use of tags to permit the p…

---

## [Python not found in Ubuntu 16.04 server](https://forum.ansible.com/t/python-not-found-in-ubuntu-16-04-server/21252)

<div class="topic-metadata">

**Author:** [@Peter\_Loron](https://forum.ansible.com/u/Peter_Loron)\
**Replies:** 6\
**Last updated:** [May 16, 2016, 11:04am UTC](https://forum.ansible.com/t/python-not-found-in-ubuntu-16-04-server/21252 "2016-05-16T11:04:37Z")

</div>

I’m trying to provision a Ubuntu 16.04 server machine. When running a playbook which has worked fine on Ubuntu 14.x and 15.x, it fails with this error: TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Variable file inclusion advice sought](https://forum.ansible.com/t/variable-file-inclusion-advice-sought/21135)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 2\
**Last updated:** [May 16, 2016, 9:06am UTC](https://forum.ansible.com/t/variable-file-inclusion-advice-sought/21135 "2016-05-16T09:06:05Z")

</div>

I’m trying to create a playbook in which I have a single role though I expect this will expand with time. I want to load the variables in a file per play\_host. I think I can include the variable file with the same name a…

---

## [How to secure Ansible Vault password?](https://forum.ansible.com/t/how-to-secure-ansible-vault-password/21425)

<div class="topic-metadata">

**Author:** [@Foss\_Geek](https://forum.ansible.com/u/Foss_Geek)\
**Replies:** 2\
**Last updated:** [May 15, 2016, 11:06pm UTC](https://forum.ansible.com/t/how-to-secure-ansible-vault-password/21425 "2016-05-15T23:06:10Z")

</div>

Hi All, In my environment I am automatically triggering ansible-playbook with in bash script like below(not possible to give password in interactive prompt). I am storing the vault password in plain text file in the fil…

---

## [How to get values for inventory files using with\_inventory\_hostname](https://forum.ansible.com/t/how-to-get-values-for-inventory-files-using-with-inventory-hostname/21399)

<div class="topic-metadata">

**Author:** [@pawan\_kumar3](https://forum.ansible.com/u/pawan_kumar3)\
**Replies:** 1\
**Last updated:** [May 15, 2016, 3:16pm UTC](https://forum.ansible.com/t/how-to-get-values-for-inventory-files-using-with-inventory-hostname/21399 "2016-05-15T15:16:38Z")

</div>

Hi all, I am trying to figure out how to use inventory created dynamically in my playbook. I dynamically create an inventory file as below and place it in inventory folder : \[gapp\] gapp\[01:02\]-leo.dev.com role=gapp …

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

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