# Archives

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

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

**Page:** 585

---

## [Service now dynamic inventory](https://forum.ansible.com/t/service-now-dynamic-inventory/18730)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 5\
**Last updated:** [June 3, 2016, 1:25pm UTC](https://forum.ansible.com/t/service-now-dynamic-inventory/18730 "2016-06-03T13:25:04Z")

</div>

Has anyone written a dynamic inventory script that integrates with service now's cmdb/discovery? My company has decided to use service now's cmdb so I guess I should leverage it for our inventory.

---

## [OSA Keystone error tenant service failed](https://forum.ansible.com/t/osa-keystone-error-tenant-service-failed/21657)

<div class="topic-metadata">

**Author:** [@Abhijeet\_Karve](https://forum.ansible.com/u/Abhijeet_Karve)\
**Replies:** 0\
**Last updated:** [June 3, 2016, 10:05am UTC](https://forum.ansible.com/t/osa-keystone-error-tenant-service-failed/21657 "2016-06-03T10:05:18Z")

</div>

Hi Folks, We are trying to setup openstack liberty with OSA playbooks, But it seems while running os-keystone-install.yml we are getting some error with “http.GatewayTimeout: Gateway Timeout mux\_client\_read\_packet: read…

---

## [ansible-pull only from git?](https://forum.ansible.com/t/ansible-pull-only-from-git/19228)

<div class="topic-metadata">

**Author:** [@Stephan\_Hradek](https://forum.ansible.com/u/Stephan_Hradek)\
**Replies:** 3\
**Last updated:** [June 3, 2016, 8:55am UTC](https://forum.ansible.com/t/ansible-pull-only-from-git/19228 "2016-06-03T08:55:39Z")

</div>

Is it correct that ansible-pull can only pull from a git repository? I’m asking because my ansible 1.9 tells me: ERROR! Unsuported repo module subversion, choices are git

---

## [percentage sign in raw command](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [June 3, 2016, 6:51am UTC](https://forum.ansible.com/t/percentage-sign-in-raw-command/21654 "2016-06-03T06:51:58Z")

</div>

I am trying to add a key-value to %PATH% variable in windows and for that i am using a raw module. But when i use something like: PATH=E:\\jre;%PATH% then i get error saying, "%PATH% : The term ‘%PATH%’ is not recogniz…

---

## [How to i get list of all hosts in playbook\_on\_task\_start ?](https://forum.ansible.com/t/how-to-i-get-list-of-all-hosts-in-playbook-on-task-start/21269)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 2\
**Last updated:** [June 3, 2016, 1:50am UTC](https://forum.ansible.com/t/how-to-i-get-list-of-all-hosts-in-playbook-on-task-start/21269 "2016-06-03T01:50:54Z")

</div>

I used to have this code in ansible 1.x

---

## [How to check the result of a lineinfile task?](https://forum.ansible.com/t/how-to-check-the-result-of-a-lineinfile-task/21650)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 7:10pm UTC](https://forum.ansible.com/t/how-to-check-the-result-of-a-lineinfile-task/21650 "2016-06-02T19:10:30Z")

</div>

Dear all, how to check the result of a lineinfile task? I got one that outputs the following: "backup": "", "changed": true, "diff": \[ { "after": "", …

---

## [elasticache subnet group](https://forum.ansible.com/t/elasticache-subnet-group/21649)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 6:36pm UTC](https://forum.ansible.com/t/elasticache-subnet-group/21649 "2016-06-02T18:36:35Z")

</div>

using the elasticache\_subnet\_group module and trying to populate the list of subnet ids using a variable but its only populating one of the ids. Here’s the task: name: create elasticache subnet group elasticache\_subne…

---

## [Bug in shell module? Wrong syntax not noticed](https://forum.ansible.com/t/bug-in-shell-module-wrong-syntax-not-noticed/21633)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 4\
**Last updated:** [June 2, 2016, 5:36pm UTC](https://forum.ansible.com/t/bug-in-shell-module-wrong-syntax-not-noticed/21633 "2016-06-02T17:36:13Z")

</div>

Dear all, I stumbled upon this code, because it was not idempotent and reported as changed each time I ran the playbook: - name: "copy file" shell: "cp /some/path/to/a/file.txt /home/foobar/some/other/path" args…

---

## [Connection refused when sending mail with ansible](https://forum.ansible.com/t/connection-refused-when-sending-mail-with-ansible/21642)

<div class="topic-metadata">

**Author:** [@Colin\_MacKenzie\_III](https://forum.ansible.com/u/Colin_MacKenzie_III)\
**Replies:** 3\
**Last updated:** [June 2, 2016, 5:17pm UTC](https://forum.ansible.com/t/connection-refused-when-sending-mail-with-ansible/21642 "2016-06-02T17:17:06Z")

</div>

I am running ansible on a macbook pro. when i use mail Mod like this… name: Send Emails local\_action: mail subject=“Company WFI Report – Automated email” body=“This email is automated contact Colin Mackenzie if you …

---

## [Can update\_cache be used with package module?](https://forum.ansible.com/t/can-update-cache-be-used-with-package-module/21644)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 3:20pm UTC](https://forum.ansible.com/t/can-update-cache-be-used-with-package-module/21644 "2016-06-02T15:20:13Z")

</div>

I often have playbooks fail to install because my apt or yum cache is out of date. Can I use update\_cache: yes in the package module, or do I need to go back to using apt module and yum module? Thanks! Joanna

---

## [mysql\_db single\_transaction breaks import](https://forum.ansible.com/t/mysql-db-single-transaction-breaks-import/21643)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 3\
**Last updated:** [June 2, 2016, 3:18pm UTC](https://forum.ansible.com/t/mysql-db-single-transaction-breaks-import/21643 "2016-06-02T15:18:01Z")

</div>

Out of curiosity I have a mysql\_db play in a playbook that imports a database into a pre-production environment. I added single\_transaction=yes to it and the import never fully finished. Not sure if this is a bug or some…

---

## [running a python script through Ansible](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640)

<div class="topic-metadata">

**Author:** [@shreya\_mittal](https://forum.ansible.com/u/shreya_mittal)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 2:06pm UTC](https://forum.ansible.com/t/running-a-python-script-through-ansible/21640 "2016-06-02T14:06:14Z")

</div>

Hello Friends, I am a bit stuck in proceeding with ansible. I would like to be guided for how Can I run a python script using Ansible. As far as i understood we are supposed to make an ansible module and then use it in…

---

## [Running a Python Script using Ansible](https://forum.ansible.com/t/running-a-python-script-using-ansible/21641)

<div class="topic-metadata">

**Author:** [@shreya\_mittal](https://forum.ansible.com/u/shreya_mittal)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 9:15am UTC](https://forum.ansible.com/t/running-a-python-script-using-ansible/21641 "2016-06-02T09:15:12Z")

</div>

Hello Friends , I have a python Flask Script and I would like to run the script using ansible. Or lets say , I would like to sync ansible with that script. It will be really kind of you if you can help me with the abov…

---

## [Handling status codes in get\_url module](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639)

<div class="topic-metadata">

**Author:** [@Tobias\_Carlsson](https://forum.ansible.com/u/Tobias_Carlsson)\
**Replies:** 0\
**Last updated:** [June 2, 2016, 7:58am UTC](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639 "2016-06-02T07:58:41Z")

</div>

Code to talk about https://github.com/tecarlsson/ansible-modules-core/commit/8fb54c65d545417d515b35ecea1c5e63f0882eed The implementation is not superb, but it shows which status codes I would like to talk about. …

---

## [template substitution](https://forum.ansible.com/t/template-substitution/21623)

<div class="topic-metadata">

**Author:** [@Peter\_Gray](https://forum.ansible.com/u/Peter_Gray)\
**Replies:** 4\
**Last updated:** [June 2, 2016, 4:01am UTC](https://forum.ansible.com/t/template-substitution/21623 "2016-06-02T04:01:28Z")

</div>

If I have in a template file

---

## [Cloudformation module: output json](https://forum.ansible.com/t/cloudformation-module-output-json/21624)

<div class="topic-metadata">

**Author:** [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Replies:** 1\
**Last updated:** [June 2, 2016, 12:38am UTC](https://forum.ansible.com/t/cloudformation-module-output-json/21624 "2016-06-02T00:38:54Z")

</div>

Hi all, I am looking into deploying AWS environments using Cloudformation and Ansible. Since a little while, you can now check what effect changes in a Cloudformation template will have prior to deploying it using the A…

---

## [Unlock and Lock users across multiple machines](https://forum.ansible.com/t/unlock-and-lock-users-across-multiple-machines/21637)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 5\
**Last updated:** [June 1, 2016, 6:34pm UTC](https://forum.ansible.com/t/unlock-and-lock-users-across-multiple-machines/21637 "2016-06-01T18:34:38Z")

</div>

Right now my system consists of 20 machines. When we make user accounts it locks them by default on creation with a default password they must change upon initial login. Instead of locking the same account on each syste…

---

## [Fact caching](https://forum.ansible.com/t/fact-caching/21590)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 6:31pm UTC](https://forum.ansible.com/t/fact-caching/21590 "2016-06-01T18:31:40Z")

</div>

We have a use case similar to one I've seen in a couple of places, where (let's say) a web server has a template that needs to contain information about (let's say) all the app servers that are in their Ansible facts. …

---

## [Advice on best way to sync root-owned files from one remote server to a group of others?](https://forum.ansible.com/t/advice-on-best-way-to-sync-root-owned-files-from-one-remote-server-to-a-group-of-others/21631)

<div class="topic-metadata">

**Author:** [@Uditha\_Desilva](https://forum.ansible.com/u/Uditha_Desilva)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 5:33pm UTC](https://forum.ansible.com/t/advice-on-best-way-to-sync-root-owned-files-from-one-remote-server-to-a-group-of-others/21631 "2016-06-01T17:33:36Z")

</div>

Hi, I’m trying to create a Playbook to synchronize some initialization scripts and crontabs across a VCS cluster. The cluster itself is on RHEL5, so I am trying to use a RHEL7 server as a controller. The key restrictio…

---

## [Can individual variables be set to no\_log?](https://forum.ansible.com/t/can-individual-variables-be-set-to-no-log/21635)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 5:02pm UTC](https://forum.ansible.com/t/can-individual-variables-be-set-to-no-log/21635 "2016-06-01T17:02:13Z")

</div>

I thought I ran across a playbook output that indicated individual variables had been set with a no\_log parameter. Unfortunately, I cannot find the website where I saw it yesterday. Is it actually possible to specify no\_…

---

## [Is the user module idempotent?](https://forum.ansible.com/t/is-the-user-module-idempotent/21632)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 5\
**Last updated:** [June 1, 2016, 4:08pm UTC](https://forum.ansible.com/t/is-the-user-module-idempotent/21632 "2016-06-01T16:08:19Z")

</div>

Hi all, I tried the following task, but it reports 'changed' each time it runs. Is this intentional? - name: "create user" user: name="foobar" password="{{ some\_variable | password\_hash('sha512') }}" crea…

---

## [Ansible roles to docker container ?](https://forum.ansible.com/t/ansible-roles-to-docker-container/21636)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 3:36pm UTC](https://forum.ansible.com/t/ansible-roles-to-docker-container/21636 "2016-06-01T15:36:52Z")

</div>

Hi, I would apply ansible roles to my docker container, but i don’t found any simply solution :confused: Is it possible to defined Ansible container on hosts var task ?? Thx

---

## [Removing a user from a group using Ansible and the USER module](https://forum.ansible.com/t/removing-a-user-from-a-group-using-ansible-and-the-user-module/21634)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad1](https://forum.ansible.com/u/Alan_Harkleroad1)\
**Replies:** 2\
**Last updated:** [June 1, 2016, 2:50pm UTC](https://forum.ansible.com/t/removing-a-user-from-a-group-using-ansible-and-the-user-module/21634 "2016-06-01T14:50:54Z")

</div>

Good morning. I am trying to run a test case where I can edit a users groups using a playbook in Ansible on CENTOS 6.7 Ansible version 1.9.2 currently installed. After thorough research of other postes and the user mod…

---

## [raw module: where is the python source code?](https://forum.ansible.com/t/raw-module-where-is-the-python-source-code/21626)

<div class="topic-metadata">

**Author:** [@sparkvilla](https://forum.ansible.com/u/sparkvilla)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:43pm UTC](https://forum.ansible.com/t/raw-module-where-is-the-python-source-code/21626 "2016-06-01T13:43:24Z")

</div>

Hi all. I am new to Ansible. I would like to have a look at the python code for the raw module. I went under ansibe/ansible-modules-core/command/raw.py but I see only the DOCUMENTATION and EXAMPLES. So where can I find t…

---

## [global name 'ANSIBLE\_VERSION' is not defined](https://forum.ansible.com/t/global-name-ansible-version-is-not-defined/21620)

<div class="topic-metadata">

**Author:** [@Nicolas\_Rusconi](https://forum.ansible.com/u/Nicolas_Rusconi)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:27pm UTC](https://forum.ansible.com/t/global-name-ansible-version-is-not-defined/21620 "2016-06-01T13:27:19Z")

</div>

I am getting this error when running ansible 2.1.0.0 An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File “/var/folders/c7/wbkyhcfj69dcsvp3464g0knh0000gn/T/ansibl…

---

## [get\_url module failed when we download file from ftp with username and password](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627)

<div class="topic-metadata">

**Author:** [@pawan\_kumar2](https://forum.ansible.com/u/pawan_kumar2)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 12:59pm UTC](https://forum.ansible.com/t/get-url-module-failed-when-we-download-file-from-ftp-with-username-and-password/21627 "2016-06-01T12:59:31Z")

</div>

fatal: \[192.168.0.111\]: FAILED! =\> {“changed”: false, “dest”: “/root/”, “failed”: true, “gid”: 0, “group”: “root”, “mode”: “0755”, “msg”: “Request failed”, “owner”: “root”, “response”: “OK (unknown bytes)”, “secontext”: …

---

## [url requires slash at end regex\_replace filter](https://forum.ansible.com/t/url-requires-slash-at-end-regex-replace-filter/21621)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 10:57am UTC](https://forum.ansible.com/t/url-requires-slash-at-end-regex-replace-filter/21621 "2016-06-01T10:57:08Z")

</div>

I’m trying to create a template which contains a URL and must always have a / on the end. So if jenkins\_master\_url is ‘https://xyz.com’ ansible must add a / If someone could help me with the regex\_replace I’d be most gr…

---

## [No Networking Working Group IRC Meeting today](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21630)

<div class="topic-metadata">

**Author:** [@psprygada](https://forum.ansible.com/u/psprygada)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:28am UTC](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21630 "2016-06-01T10:28:05Z")

</div>

We will resume at our normal time next week

---

## [No Networking Working Group IRC Meeting today](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21629)

<div class="topic-metadata">

**Author:** [@psprygada](https://forum.ansible.com/u/psprygada)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:27am UTC](https://forum.ansible.com/t/no-networking-working-group-irc-meeting-today/21629 "2016-06-01T10:27:05Z")

</div>

We will resume at our regular time next week.

---

## [new option "project" in ansible-modules-core/cloud/openstack/os\_router.py](https://forum.ansible.com/t/new-option-project-in-ansible-modules-core-cloud-openstack-os-router-py/21628)

<div class="topic-metadata">

**Author:** [@Mario\_David](https://forum.ansible.com/u/Mario_David)\
**Replies:** 0\
**Last updated:** [June 1, 2016, 10:22am UTC](https://forum.ansible.com/t/new-option-project-in-ansible-modules-core-cloud-openstack-os-router-py/21628 "2016-06-01T10:22:33Z")

</div>

hi all use case: I am an admin of openstack infra managed mostly by ansible in particular the admin manages the creation of new “project” that include the initial setup of the network it includes creation of router f…

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

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