# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=275

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

**Page:** 276

---

## [Examples of diverse inventories](https://forum.ansible.com/t/examples-of-diverse-inventories/26956)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 0\
**Last updated:** [March 10, 2018, 8:35pm UTC](https://forum.ansible.com/t/examples-of-diverse-inventories/26956 "2018-03-10T20:35:36Z")

</div>

Dear fellow Ansiblizers, I’m working on some ideas related to Ansible Inventory, and am looking on diverse examples of how one structures his inventory. I have some ideas of myself on how to manage the Inventory, but w…

---

## [expect model not working accoring to plan](https://forum.ansible.com/t/expect-model-not-working-accoring-to-plan/26943)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 10\
**Last updated:** [March 10, 2018, 7:29pm UTC](https://forum.ansible.com/t/expect-model-not-working-accoring-to-plan/26943 "2018-03-10T19:29:12Z")

</div>

Hi all, It is me again with config on boxes I am using the expect module it is working but not doing what I want it to do This is the code name: backup of juniper using expect hosts: juniper connection: local task…

---

## [GitHub username change isn't reflected on galaxy](https://forum.ansible.com/t/github-username-change-isnt-reflected-on-galaxy/26954)

<div class="topic-metadata">

**Author:** [@Venkatesh\_Reddy](https://forum.ansible.com/u/Venkatesh_Reddy)\
**Replies:** 0\
**Last updated:** [March 10, 2018, 2:39pm UTC](https://forum.ansible.com/t/github-username-change-isnt-reflected-on-galaxy/26954 "2018-03-10T14:39:19Z")

</div>

Hi Team, Currently i am facing issue in repository sync between Galaxy and GitHub. Initially when i created my Galaxy account using my GitHub account i had username as ‘venkicnu’, but later i changed my GitHub username…

---

## [Permission denied while copy with sudo (Related to issue 2837)](https://forum.ansible.com/t/permission-denied-while-copy-with-sudo-related-to-issue-2837/13158)

<div class="topic-metadata">

**Author:** [@Vincent\_Hardion](https://forum.ansible.com/u/Vincent_Hardion)\
**Replies:** 16\
**Last updated:** [March 10, 2018, 12:28am UTC](https://forum.ansible.com/t/permission-denied-while-copy-with-sudo-related-to-issue-2837/13158 "2018-03-10T00:28:54Z")

</div>

Hi everybody, Another newbie in Ansible … And I have a problem of permission with the copy task… Problem when I launch the playbook : ansible-playbook -k -K -i dev all.yml -vvv … failed: \[acomputer.se\] =\> {“failed”…

---

## [Is there an easy way, or tool, to check what versions of Ansible a role is compatible with?](https://forum.ansible.com/t/is-there-an-easy-way-or-tool-to-check-what-versions-of-ansible-a-role-is-compatible-with/26952)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 11:56pm UTC](https://forum.ansible.com/t/is-there-an-easy-way-or-tool-to-check-what-versions-of-ansible-a-role-is-compatible-with/26952 "2018-03-09T23:56:39Z")

</div>

Is there an easy way or tool to check what versions of Ansible a role is compatible with? I have several roles I’m considering adding to Ansible Galaxy. I’d like to have as accurate of a version requirement as I can. Bu…

---

## [must be stored as a dictionary/hash](https://forum.ansible.com/t/must-be-stored-as-a-dictionary-hash/26950)

<div class="topic-metadata">

**Author:** [@sanjanith\_reddy](https://forum.ansible.com/u/sanjanith_reddy)\
**Replies:** 3\
**Last updated:** [March 9, 2018, 11:26pm UTC](https://forum.ansible.com/t/must-be-stored-as-a-dictionary-hash/26950 "2018-03-09T23:26:59Z")

</div>

Hi All, I’m trying to launch an EC2 instance via a playbook. My playbook contents are like this:

---

## [Use Ansible to audit server configs across life-cycle environments?](https://forum.ansible.com/t/use-ansible-to-audit-server-configs-across-life-cycle-environments/26946)

<div class="topic-metadata">

**Author:** [@Len\_S](https://forum.ansible.com/u/Len_S)\
**Replies:** 2\
**Last updated:** [March 9, 2018, 5:41pm UTC](https://forum.ansible.com/t/use-ansible-to-audit-server-configs-across-life-cycle-environments/26946 "2018-03-09T17:41:31Z")

</div>

Does Ansible provide the ability to effectively provide a diff of configuration files of server components across lifecycle environments? I have a requirement to be able to tell if my JVM’s and AppServers have the same c…

---

## [Arris Modules](https://forum.ansible.com/t/arris-modules/26947)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic](https://forum.ansible.com/u/Juraj_Papic)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 5:35pm UTC](https://forum.ansible.com/t/arris-modules/26947 "2018-03-09T17:35:19Z")

</div>

Hello, Has anyone worked with Arris network with Ansible? Thanks.

---

## [Ansible task failing on error " VARIABLE NOT DEFINED"](https://forum.ansible.com/t/ansible-task-failing-on-error-variable-not-defined/26945)

<div class="topic-metadata">

**Author:** [@Zulkifal\_Sahibzada](https://forum.ansible.com/u/Zulkifal_Sahibzada)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 4:55pm UTC](https://forum.ansible.com/t/ansible-task-failing-on-error-variable-not-defined/26945 "2018-03-09T16:55:47Z")

</div>

Hi list, I am new to this Ansible world. I am using a playbook from sandersv32/cis rhel-7-ansible section-5.2.2 which is giving me an error "VARIABLE NOT DEFINED’. Here is the task I am running -name: 5.2.2 Enable audit…

---

## [Unable to run two commands simultaneously](https://forum.ansible.com/t/unable-to-run-two-commands-simultaneously/26944)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 2\
**Last updated:** [March 9, 2018, 4:19pm UTC](https://forum.ansible.com/t/unable-to-run-two-commands-simultaneously/26944 "2018-03-09T16:19:27Z")

</div>

I’m trying to figure out where I’m going wrong here. I have two raw commands to run, one of which concatenates and copies two files into one and the other just overwrites another file and I’m getting a syntax error on th…

---

## [Sample code of "nested loops" with a "When condition"](https://forum.ansible.com/t/sample-code-of-nested-loops-with-a-when-condition/26893)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 1\
**Last updated:** [March 9, 2018, 1:26pm UTC](https://forum.ansible.com/t/sample-code-of-nested-loops-with-a-when-condition/26893 "2018-03-09T13:26:55Z")

</div>

Can some one provide the sample code if any with When condition? Thanks and Regards Shekar

---

## [Ansible 2.5.0 Release Candidate 2 is available](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-2-is-available/26942)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [March 9, 2018, 7:58am UTC](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-2-is-available/26942 "2018-03-09T07:58:04Z")

</div>

Hi all- we’re happy to announce that Release Candidate 2 of Ansible 2.5.0 is now available! How do you get it?

---

## [determining network os type?](https://forum.ansible.com/t/determining-network-os-type/26940)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 1\
**Last updated:** [March 9, 2018, 6:21am UTC](https://forum.ansible.com/t/determining-network-os-type/26940 "2018-03-09T06:21:52Z")

</div>

Hi, There are various network modules for iOS,EOS, etc etc… What I was wondering is there a way to determine a hosts base os type so that the correct network module can be called? I have seen some sites reference ‘ansi…

---

## [Howto read variables from an vaut encrypted file](https://forum.ansible.com/t/howto-read-variables-from-an-vaut-encrypted-file/26926)

<div class="topic-metadata">

**Author:** [@neccross9](https://forum.ansible.com/u/neccross9)\
**Replies:** 5\
**Last updated:** [March 8, 2018, 10:13pm UTC](https://forum.ansible.com/t/howto-read-variables-from-an-vaut-encrypted-file/26926 "2018-03-08T22:13:08Z")

</div>

Hi all, the following task may sound easy but actually it fails all the time … I want to store my password in a variable and put it into an ansible-vault encrypted file. The content of this file will look like this: \`…

---

## [networking not idempotent](https://forum.ansible.com/t/networking-not-idempotent/26938)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 1\
**Last updated:** [March 8, 2018, 9:45pm UTC](https://forum.ansible.com/t/networking-not-idempotent/26938 "2018-03-08T21:45:33Z")

</div>

I am experimenting with the networking modules in Ansible to try to understand how we can use Ansible to manage our network devices. To that end, I have written a simple playbook to apply an ACL to a router. It works wel…

---

## [Copy module](https://forum.ansible.com/t/copy-module/26914)

<div class="topic-metadata">

**Author:** [@Malcolm\_Hussain-Gamb](https://forum.ansible.com/u/Malcolm_Hussain-Gamb)\
**Replies:** 4\
**Last updated:** [March 8, 2018, 5:55pm UTC](https://forum.ansible.com/t/copy-module/26914 "2018-03-08T17:55:24Z")

</div>

I'm using ansible to build a package in Jenkins and the make an rpm. The copy function takes 20+ minutes to copy a few files. Using the command function takes under a second. The synchronize function is generally unusa…

---

## [Retrieve EC2 Tags via Ansible](https://forum.ansible.com/t/retrieve-ec2-tags-via-ansible/26937)

<div class="topic-metadata">

**Author:** [@Anurag\_Sernapally](https://forum.ansible.com/u/Anurag_Sernapally)\
**Replies:** 0\
**Last updated:** [March 8, 2018, 3:35pm UTC](https://forum.ansible.com/t/retrieve-ec2-tags-via-ansible/26937 "2018-03-08T15:35:51Z")

</div>

Hi All, I have an requirement to execute specific ansible task based on the ec2 tags thats been injected in the instance. I am using ansible version 2.2. Can someone let me know how can I get the list of ec2 tags? Belo…

---

## [Cannot get password from a vault file](https://forum.ansible.com/t/cannot-get-password-from-a-vault-file/26936)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr38](https://forum.ansible.com/u/JiElPe-Fr38)\
**Replies:** 0\
**Last updated:** [March 8, 2018, 3:35pm UTC](https://forum.ansible.com/t/cannot-get-password-from-a-vault-file/26936 "2018-03-08T15:35:13Z")

</div>

Dear all, I am really stucked with this problem. I have a vault file which is referenced within ansible.cfg and its password is stored in a file referenced on the command line through --vault-password-file. This seems…

---

## [cannot get remote\_user in a callback plugin](https://forum.ansible.com/t/cannot-get-remote-user-in-a-callback-plugin/26935)

<div class="topic-metadata">

**Author:** [@Igor\_B](https://forum.ansible.com/u/Igor_B)\
**Replies:** 0\
**Last updated:** [March 8, 2018, 2:16pm UTC](https://forum.ansible.com/t/cannot-get-remote-user-in-a-callback-plugin/26935 "2018-03-08T14:16:05Z")

</div>

Hi all, I am developing a callback plugin to print messages to hipchat when playbook starts and finishes, and some additional info like who is running the playbook. To get the username I tried 2 ways: cli.options.rem…

---

## [When hostnames have hyphens in them](https://forum.ansible.com/t/when-hostnames-have-hyphens-in-them/26933)

<div class="topic-metadata">

**Author:** [@Richard\_Sobey](https://forum.ansible.com/u/Richard_Sobey)\
**Replies:** 1\
**Last updated:** [March 8, 2018, 1:50pm UTC](https://forum.ansible.com/t/when-hostnames-have-hyphens-in-them/26933 "2018-03-08T13:50:12Z")

</div>

Hi all, I’ve come across an issue which might be a showstopper for me; either way I wouldn’t mind some advice. My aim is to lookup in a vaulted file the name of a variable that is based around the hostname of the serve…

---

## [os\_nova\_flavor does not update a flavor if it already exists...](https://forum.ansible.com/t/os-nova-flavor-does-not-update-a-flavor-if-it-already-exists/21183)

<div class="topic-metadata">

**Author:** [@Thiago\_Martins](https://forum.ansible.com/u/Thiago_Martins)\
**Replies:** 5\
**Last updated:** [March 8, 2018, 6:53am UTC](https://forum.ansible.com/t/os-nova-flavor-does-not-update-a-flavor-if-it-already-exists/21183 "2018-03-08T06:53:24Z")

</div>

Guys, I’m trying to update the default OpenStack flavors, by using “os\_nova\_flavor” but, it does not update the flavors settings if it already exists… Is there any way to force it to update the flavors? A workaround i…

---

## [Using the wait\_for module to check ports from one windows host to another windows host](https://forum.ansible.com/t/using-the-wait-for-module-to-check-ports-from-one-windows-host-to-another-windows-host/26929)

<div class="topic-metadata">

**Author:** [@marcalfa1](https://forum.ansible.com/u/marcalfa1)\
**Replies:** 1\
**Last updated:** [March 8, 2018, 5:38am UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-ports-from-one-windows-host-to-another-windows-host/26929 "2018-03-08T05:38:30Z")

</div>

Not sure if i’m using the wait\_for module correctly on two windows host. I’m getting the error below when trying to check if a port is open from a source windows host to a target windows host. Wondering if i’m using the…

---

## [psycog2 is installed but postgresql\_user gives error that psycog2 is required](https://forum.ansible.com/t/psycog2-is-installed-but-postgresql-user-gives-error-that-psycog2-is-required/26928)

<div class="topic-metadata">

**Author:** [@gearoidibm](https://forum.ansible.com/u/gearoidibm)\
**Replies:** 2\
**Last updated:** [March 7, 2018, 10:45pm UTC](https://forum.ansible.com/t/psycog2-is-installed-but-postgresql-user-gives-error-that-psycog2-is-required/26928 "2018-03-07T22:45:30Z")

</div>

psycog2 has beeen installed using ansible pip module. The postgresql\_user module fails with a message saying psycog2 is required. pip list shows that psycog2 is installed on the managed system. ansible 2.4.3, python 2…

---

## [win\_get\_url always failing first time](https://forum.ansible.com/t/win-get-url-always-failing-first-time/26927)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 10:32pm UTC](https://forum.ansible.com/t/win-get-url-always-failing-first-time/26927 "2018-03-07T22:32:34Z")

</div>

Are you able to share some more info like the Ansible version you are on, the task you are running. A 500 status code means internal error (internal to the http server) and usually indicates a problem on the remote end. …

---

## [apt\_key hanging issues](https://forum.ansible.com/t/apt-key-hanging-issues/26925)

<div class="topic-metadata">

**Author:** [@David\_Jones](https://forum.ansible.com/u/David_Jones)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 8:16pm UTC](https://forum.ansible.com/t/apt-key-hanging-issues/26925 "2018-03-07T20:16:45Z")

</div>

Hi I am stuck trying to get apt\_key to download a key from a key server. Here is my code which just hags indefinitely. name: Get upstream APT GPG key apt\_key: id: “{{ docker\_apt\_key }}” keyserver: “{{ key\_server }}…

---

## [ios\_facts module unable to open shell](https://forum.ansible.com/t/ios-facts-module-unable-to-open-shell/26913)

<div class="topic-metadata">

**Author:** [@Otto\_Nix](https://forum.ansible.com/u/Otto_Nix)\
**Replies:** 4\
**Last updated:** [March 7, 2018, 7:34pm UTC](https://forum.ansible.com/t/ios-facts-module-unable-to-open-shell/26913 "2018-03-07T19:34:26Z")

</div>

Hello all, I’m new to Ansible so forgive me if this is elementary. I have looked all over for a solution to my problems getting ios\_facts to work and none of the solutions worked for me. No matter what I try it always f…

---

## [inventory\_dir is still present as a global variable in Ansible 2.4  ?](https://forum.ansible.com/t/inventory-dir-is-still-present-as-a-global-variable-in-ansible-2-4/26918)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 5:57pm UTC](https://forum.ansible.com/t/inventory-dir-is-still-present-as-a-global-variable-in-ansible-2-4/26918 "2018-03-07T17:57:44Z")

</div>

Hi All, I am trying to understand the changes with Ansible 2.4 that affects the usage of inventory\_dir variable. Earlier i was using a static host file and in my playbooks, i was heavily relying on inventory\_dir to loa…

---

## [expect module hangs](https://forum.ansible.com/t/expect-module-hangs/26912)

<div class="topic-metadata">

**Author:** [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Replies:** 7\
**Last updated:** [March 7, 2018, 5:40pm UTC](https://forum.ansible.com/t/expect-module-hangs/26912 "2018-03-07T17:40:57Z")

</div>

Hello I have a config to copy config to a tftp server but with the expect module it just hangs no error it logs it successful with telnet( I can see it in the logs) but does not copy ( I have tested it manually with …

---

## [connection to multiple hosts with all different passwords](https://forum.ansible.com/t/connection-to-multiple-hosts-with-all-different-passwords/26920)

<div class="topic-metadata">

**Author:** [@neccross9](https://forum.ansible.com/u/neccross9)\
**Replies:** 0\
**Last updated:** [March 7, 2018, 12:48pm UTC](https://forum.ansible.com/t/connection-to-multiple-hosts-with-all-different-passwords/26920 "2018-03-07T12:48:45Z")

</div>

Hi all, I’m new to Ansible, so please excuse myl lack of knowledge I’m tryting to handle multiple hosts that need to execute some tasks being root. While it’s not a good idea to have all root-ssh-keys stored on one ma…

---

## [Unable to run ansible playbook..](https://forum.ansible.com/t/unable-to-run-ansible-playbook/26919)

<div class="topic-metadata">

**Author:** [@borseankush2112](https://forum.ansible.com/u/borseankush2112)\
**Replies:** 1\
**Last updated:** [March 7, 2018, 12:35pm UTC](https://forum.ansible.com/t/unable-to-run-ansible-playbook/26919 "2018-03-07T12:35:59Z")

</div>

Hi Team, I want to run a script via ansible playbook. The script contains installation and uninstallation of some agents and If we run that script, It requires some inputs like Yes or No or 1 or 2 like that... So how t…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=274)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=276)
