# Archives

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

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

**Page:** 474

---

## [Showing which roles have been run on a machine](https://forum.ansible.com/t/showing-which-roles-have-been-run-on-a-machine/24912)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [July 6, 2017, 1:15pm UTC](https://forum.ansible.com/t/showing-which-roles-have-been-run-on-a-machine/24912 "2017-07-06T13:15:49Z")

</div>

Is there a standard way to show which roles have been installed on a target machine from that machine? e.g. Ansible control machine installs Apache & MySQL on Remote1 and Nginx & MySQL on Remote2. If I SSH into Remote2,…

---

## [How to have a space in a variable from a JSON payload returned by uri module](https://forum.ansible.com/t/how-to-have-a-space-in-a-variable-from-a-json-payload-returned-by-uri-module/24891)

<div class="topic-metadata">

**Author:** [@Rasmus\_Sjorslev](https://forum.ansible.com/u/Rasmus_Sjorslev)\
**Replies:** 1\
**Last updated:** [July 6, 2017, 9:07am UTC](https://forum.ansible.com/t/how-to-have-a-space-in-a-variable-from-a-json-payload-returned-by-uri-module/24891 "2017-07-06T09:07:20Z")

</div>

Im using the uri module to call a REST endpoint but the JSON structure returns contains a space which im not sure how to escape. First the call i make and register: name: Get subnet information (DNS, gateway, netmask …

---

## [Is splitting of the inventory possible?](https://forum.ansible.com/t/is-splitting-of-the-inventory-possible/24908)

<div class="topic-metadata">

**Author:** [@thomas.lehmann](https://forum.ansible.com/u/thomas.lehmann)\
**Replies:** 3\
**Last updated:** [July 6, 2017, 7:43am UTC](https://forum.ansible.com/t/is-splitting-of-the-inventory-possible/24908 "2017-07-06T07:43:57Z")

</div>

Hi, assume we would have 1000 projects in a big company and an OPS guys tells us to copy every detail for provisioning for qa, dev and prod in one repository. Some told arguments: just to clone one repository all Un…

---

## [Issue in latest os-client-config being worked WRT OpenStack modules for 2.0](https://forum.ansible.com/t/issue-in-latest-os-client-config-being-worked-wrt-openstack-modules-for-2-0/19279)

<div class="topic-metadata">

**Author:** [@Monty\_Taylor](https://forum.ansible.com/u/Monty_Taylor)\
**Replies:** 1\
**Last updated:** [July 6, 2017, 7:35am UTC](https://forum.ansible.com/t/issue-in-latest-os-client-config-being-worked-wrt-openstack-modules-for-2-0/19279 "2017-07-06T07:35:12Z")

</div>

If you’re using the new OpenStack modules in 2.0 and you upgrade os-client-config to the latest AND you don’t use clouds.yaml AND you decide to pass auth\_url as auth-url - you will get an error: keystoneauth1.exceptions…

---

## [Anyway to render jinja templates like all.yml or group vars using ansible api?](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906)

<div class="topic-metadata">

**Author:** [@james3](https://forum.ansible.com/u/james3)\
**Replies:** 2\
**Last updated:** [July 6, 2017, 1:53am UTC](https://forum.ansible.com/t/anyway-to-render-jinja-templates-like-all-yml-or-group-vars-using-ansible-api/24906 "2017-07-06T01:53:10Z")

</div>

Would like to access the all.yml, group\_vars variables outside the context of a playbook? Ideally through the api Less ideal output a rendered all.yml, then i’ll read it afterwards.

---

## [Playbook that uses become only if root user not specified?](https://forum.ansible.com/t/playbook-that-uses-become-only-if-root-user-not-specified/24886)

<div class="topic-metadata">

**Author:** [@ajay\_jiwanand](https://forum.ansible.com/u/ajay_jiwanand)\
**Replies:** 5\
**Last updated:** [July 5, 2017, 10:55pm UTC](https://forum.ansible.com/t/playbook-that-uses-become-only-if-root-user-not-specified/24886 "2017-07-05T22:55:20Z")

</div>

I am writing a playbook that will cover a wide ranged of hosts some that is integrated into AD with sudo privileges and others with just a local “root” account. I currently have the playbook written with the become modul…

---

## [complex loop in playbook](https://forum.ansible.com/t/complex-loop-in-playbook/24868)

<div class="topic-metadata">

**Author:** [@Francois\_Herbet](https://forum.ansible.com/u/Francois_Herbet)\
**Replies:** 1\
**Last updated:** [July 5, 2017, 5:04pm UTC](https://forum.ansible.com/t/complex-loop-in-playbook/24868 "2017-07-05T17:04:51Z")

</div>

Hi Guys, hope someone can guide me here! i succesfully get facts from my IOS-XR PE ansible\_facts: interfaces\_ip: GigabitEthernet0/0/0/2.1004: ipv4: 172.24.70.157: prefix\_length: 30 GigabitEthernet0/0/0/2.1031: …

---

## [Ansible custom module and custom python library](https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23609)

<div class="topic-metadata">

**Author:** [@Julien\_Buonocore](https://forum.ansible.com/u/Julien_Buonocore)\
**Replies:** 5\
**Last updated:** [July 5, 2017, 3:59pm UTC](https://forum.ansible.com/t/ansible-custom-module-and-custom-python-library/23609 "2017-07-05T15:59:09Z")

</div>

Hello, As part of the deployment of an application specific to the business of my company, I developed modules Ansible in Python and for reuse and factorization of code, I also developed a Python library. A bootable pla…

---

## [Add 'check mode' feature to an existing module](https://forum.ansible.com/t/add-check-mode-feature-to-an-existing-module/24902)

<div class="topic-metadata">

**Author:** [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Replies:** 0\
**Last updated:** [July 5, 2017, 2:08pm UTC](https://forum.ansible.com/t/add-check-mode-feature-to-an-existing-module/24902 "2017-07-05T14:08:14Z")

</div>

ec2\_elb\_lb does not support ‘check mode’ (Dry run). I would like to add it to the module. Is the below still the preferred way? https://groups.google.com/d/topic/ansible-project/v638okDSzvo/discussion add supports\_…

---

## [handler with listed variables](https://forum.ansible.com/t/handler-with-listed-variables/24899)

<div class="topic-metadata">

**Author:** [@trg.achilles](https://forum.ansible.com/u/trg.achilles)\
**Replies:** 0\
**Last updated:** [July 5, 2017, 12:29pm UTC](https://forum.ansible.com/t/handler-with-listed-variables/24899 "2017-07-05T12:29:57Z")

</div>

Hello, I’m having trouble to figure out the best way to use handler with listed variables. My setup is as follow: vars: omd\_sites: prod stg dev3 tasks: name: Template groups.mk template: src: groups.mk.j2 dest…

---

## [Pamd Pull Request](https://forum.ansible.com/t/pamd-pull-request/24898)

<div class="topic-metadata">

**Author:** [@Ken\_Evensen](https://forum.ansible.com/u/Ken_Evensen)\
**Replies:** 0\
**Last updated:** [July 5, 2017, 11:25am UTC](https://forum.ansible.com/t/pamd-pull-request/24898 "2017-07-05T11:25:30Z")

</div>

Greetings, At a maintainer’s convenience, could you please take a look at https://github.com/ansible/ansible/pull/25817. It is ready to be merged. Thank you!

---

## [Some problems with module raw](https://forum.ansible.com/t/some-problems-with-module-raw/24896)

<div class="topic-metadata">

**Author:** [@user121](https://forum.ansible.com/u/user121)\
**Replies:** 0\
**Last updated:** [July 5, 2017, 9:39am UTC](https://forum.ansible.com/t/some-problems-with-module-raw/24896 "2017-07-05T09:39:05Z")

</div>

When I was using modules of raw, Some servers do not automatically stop tasks。 Have you ever been in a similar situation? ansible server:SUSE Linux Enterprise Server 11 SP4 (x86\_64) ansible version:1.7.2 Problematic…

---

## [Ansible： Some problems with modules【raw】](https://forum.ansible.com/t/ansible-some-problems-with-modules-raw/24895)

<div class="topic-metadata">

**Author:** [@user121](https://forum.ansible.com/u/user121)\
**Replies:** 0\
**Last updated:** [July 5, 2017, 9:33am UTC](https://forum.ansible.com/t/ansible-some-problems-with-modules-raw/24895 "2017-07-05T09:33:21Z")

</div>

When I was using modules of raw, Some servers do not automatically stop tasks。 Have you ever been in a similar situation? ansible server:SUSE Linux Enterprise Server 11 SP4 (x86\_64) ansible version:1.7.2 Problematic…

---

## [getting key:value from fact](https://forum.ansible.com/t/getting-key-value-from-fact/24892)

<div class="topic-metadata">

**Author:** [@Jan\_Mattsson](https://forum.ansible.com/u/Jan_Mattsson)\
**Replies:** 2\
**Last updated:** [July 5, 2017, 7:36am UTC](https://forum.ansible.com/t/getting-key-value-from-fact/24892 "2017-07-05T07:36:02Z")

</div>

I am trying to get back into some Ansible automation after some absence but get stuck immediately trying to get the IP address of an Azure VM from ansible facts: ok: \[localhost\] =\> { “interface\_facts.ansible\_facts.azur…

---

## [Custom Fact - Drill down into each variable](https://forum.ansible.com/t/custom-fact-drill-down-into-each-variable/24893)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [July 4, 2017, 7:02pm UTC](https://forum.ansible.com/t/custom-fact-drill-down-into-each-variable/24893 "2017-07-04T19:02:20Z")

</div>

Created a custom fact which only seems to work when not executable - etc/ansible/facts.d/preference.fact \[new facts\] material = concrete structure = square When the preference.fact is set to executable I get the foll…

---

## [Join the first Ansible Windows Sprint](https://forum.ansible.com/t/join-the-first-ansible-windows-sprint/24837)

<div class="topic-metadata">

**Author:** [@Dag\_Wieers](https://forum.ansible.com/u/Dag_Wieers)\
**Replies:** 1\
**Last updated:** [July 4, 2017, 4:25pm UTC](https://forum.ansible.com/t/join-the-first-ansible-windows-sprint/24837 "2017-07-04T16:25:55Z")

</div>

Hi, So one of the problems we want to tackle with Ansible Sprints is to bring down the number of open issues and open PRs. The idea of doing Sprints that have a strong focus on advancing and closing issues/PRs is someth…

---

## [Facing Ansible bug & how to use the most recent Ansible branch with fixed code ?](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 6\
**Last updated:** [July 4, 2017, 2:34pm UTC](https://forum.ansible.com/t/facing-ansible-bug-how-to-use-the-most-recent-ansible-branch-with-fixed-code/24783 "2017-07-04T14:34:35Z")

</div>

Hi all, I am trying to use Ansible vmware\_guest module to clone template to VM but having the following issue: \` fatal: \[localhost → localhost\]: FAILED! =\> { “changed”: true, “failed”: true, “invocation”: { “modul…

---

## [Alternative Directory Layout fails to load group\_vars with -i inventories](https://forum.ansible.com/t/alternative-directory-layout-fails-to-load-group-vars-with-i-inventories/24859)

<div class="topic-metadata">

**Author:** [@Vasco\_Barroso](https://forum.ansible.com/u/Vasco_Barroso)\
**Replies:** 2\
**Last updated:** [July 4, 2017, 2:21pm UTC](https://forum.ansible.com/t/alternative-directory-layout-fails-to-load-group-vars-with-i-inventories/24859 "2017-07-04T14:21:01Z")

</div>

Hi, I’m currently having some issues while using Ansible with the Alternative Directory Layout as defined in the docs. Let’s take the following inventory structure (which I like because it allows me to split neatly bet…

---

## [Active Directory - Windows Domain User management Ansible module](https://forum.ansible.com/t/active-directory-windows-domain-user-management-ansible-module/24890)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 2\
**Last updated:** [July 4, 2017, 1:49pm UTC](https://forum.ansible.com/t/active-directory-windows-domain-user-management-ansible-module/24890 "2017-07-04T13:49:30Z")

</div>

I have created an Ansible module for management of Active Directory domain users. Is this something that would be useful to anyone?

---

## [Ansible with cpanel](https://forum.ansible.com/t/ansible-with-cpanel/24888)

<div class="topic-metadata">

**Author:** [@Fayad](https://forum.ansible.com/u/Fayad)\
**Replies:** 0\
**Last updated:** [July 4, 2017, 9:24am UTC](https://forum.ansible.com/t/ansible-with-cpanel/24888 "2017-07-04T09:24:59Z")

</div>

I’ll explain the current scenario: We have around 500 cpanel servers which are either openvz VEs or physical servers. Currently these servers are managed using puppet for rolling out any common tasks. We have also disab…

---

## [Feature Request: Additional virt modules in the Cloud/Misc section](https://forum.ansible.com/t/feature-request-additional-virt-modules-in-the-cloud-misc-section/24887)

<div class="topic-metadata">

**Author:** [@Alex\_Bron](https://forum.ansible.com/u/Alex_Bron)\
**Replies:** 0\
**Last updated:** [July 4, 2017, 9:22am UTC](https://forum.ansible.com/t/feature-request-additional-virt-modules-in-the-cloud-misc-section/24887 "2017-07-04T09:22:44Z")

</div>

Hi All, Is anyone already working on building additional virt modules (like the virt\_net and virt\_pool module)? If not, I will voluntarily step into that, as I could definitely use them in my attempts to bring the full …

---

## [starting karaf with ansble](https://forum.ansible.com/t/starting-karaf-with-ansble/24840)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [July 4, 2017, 8:03am UTC](https://forum.ansible.com/t/starting-karaf-with-ansble/24840 "2017-07-04T08:03:08Z")

</div>

Hello, If I run karaf manually with the start command, I have no error. But if I run the start command in a ansible task, I have the following command: 347 \[sshd-SshClient\[7a4ccb53\]-nio2-thread-1\] WARN org.apache.sshd…

---

## [is it possible to open a file locally, read the content and push it to a remote host?](https://forum.ansible.com/t/is-it-possible-to-open-a-file-locally-read-the-content-and-push-it-to-a-remote-host/24880)

<div class="topic-metadata">

**Author:** [@Danilo\_Braga](https://forum.ansible.com/u/Danilo_Braga)\
**Replies:** 3\
**Last updated:** [July 4, 2017, 7:09am UTC](https://forum.ansible.com/t/is-it-possible-to-open-a-file-locally-read-the-content-and-push-it-to-a-remote-host/24880 "2017-07-04T07:09:47Z")

</div>

Hi all, I have a script that was wrote in tcl/expect to shutdown ports. This is necessary to test our master/backup environment. Now I have to convert this one to ansible. I’m learning this new one language and I’m stuc…

---

## [Ansible forced sudo prompt issue](https://forum.ansible.com/t/ansible-forced-sudo-prompt-issue/24864)

<div class="topic-metadata">

**Author:** [@Imre\_Szell](https://forum.ansible.com/u/Imre_Szell)\
**Replies:** 2\
**Last updated:** [July 3, 2017, 8:27pm UTC](https://forum.ansible.com/t/ansible-forced-sudo-prompt-issue/24864 "2017-07-03T20:27:21Z")

</div>

Hi, I encountered a really strange issue when running Ansible 2.2.1 on hosts that are managed centrally and have some restrictions that I have to live with. All hosts are running Ubuntu 14.04 When I run a playbook that…

---

## [bigip\_irule module and token authentication](https://forum.ansible.com/t/bigip-irule-module-and-token-authentication/24885)

<div class="topic-metadata">

**Author:** [@Sebastian\_Plush](https://forum.ansible.com/u/Sebastian_Plush)\
**Replies:** 0\
**Last updated:** [July 3, 2017, 6:51pm UTC](https://forum.ansible.com/t/bigip-irule-module-and-token-authentication/24885 "2017-07-03T18:51:33Z")

</div>

Hi Does anyone know whether the bigip\_irule module supports token authentication? Using remote (ldap) auth to the BigIP and, while initial authentication is successful, subsequent REST calls fail with auth error. All i…

---

## [google-cloud-python](https://forum.ansible.com/t/google-cloud-python/24883)

<div class="topic-metadata">

**Author:** [@Boaventura\_Rodrigues](https://forum.ansible.com/u/Boaventura_Rodrigues)\
**Replies:** 0\
**Last updated:** [July 3, 2017, 5:38pm UTC](https://forum.ansible.com/t/google-cloud-python/24883 "2017-07-03T17:38:43Z")

</div>

Hello everyone. Is there any initiative to use the google-cloud-python SDK in Google Cloud Platform modules?

---

## [Ansible variable with find](https://forum.ansible.com/t/ansible-variable-with-find/24835)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 4\
**Last updated:** [July 3, 2017, 3:58pm UTC](https://forum.ansible.com/t/ansible-variable-with-find/24835 "2017-07-03T15:58:50Z")

</div>

Running the playbook below and wondering whats the correct syntax so I can use a variable within the find statement below This line is in question - when: p.stdout.find"{{(‘user’)}}" != -1 This would be correct withou…

---

## [complex LOOPS in playbook](https://forum.ansible.com/t/complex-loops-in-playbook/24867)

<div class="topic-metadata">

**Author:** [@Francois\_Herbet](https://forum.ansible.com/u/Francois_Herbet)\
**Replies:** 1\
**Last updated:** [July 3, 2017, 2:47pm UTC](https://forum.ansible.com/t/complex-loops-in-playbook/24867 "2017-07-03T14:47:00Z")

</div>

Hi Guys, hope someone can guide me here! i succesfully get facts from one of my network devices ansible\_facts: interfaces\_ip: GigabitEthernet0/0/0/2.1004: ipv4: 172.24.70.157: prefix\_length: 30 GigabitEthernet0/…

---

## [expected sudo prompt](https://forum.ansible.com/t/expected-sudo-prompt/24768)

<div class="topic-metadata">

**Author:** [@reapsowrepeat](https://forum.ansible.com/u/reapsowrepeat)\
**Replies:** 4\
**Last updated:** [July 3, 2017, 2:04pm UTC](https://forum.ansible.com/t/expected-sudo-prompt/24768 "2017-07-03T14:04:52Z")

</div>

Hi, I hit a snag using “become/sudo”. I can become/sudo to the root user if the prompt that is returned is as expected (I think). For example, here is the default prompt. \[sudo\] password for testuser: I think Ansible …

---

## [Backup of files](https://forum.ansible.com/t/backup-of-files/24870)

<div class="topic-metadata">

**Author:** [@Mohit\_Mahajan](https://forum.ansible.com/u/Mohit_Mahajan)\
**Replies:** 1\
**Last updated:** [July 3, 2017, 2:02pm UTC](https://forum.ansible.com/t/backup-of-files/24870 "2017-07-03T14:02:32Z")

</div>

How to take backup before editing in the file, without changing time-stamp of the file. I used “backup=yes” but the problem is that it changed the time-stamp. Thanks in advance

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

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