# Archives

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

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

**Page:** 305

---

## [Jinja2 to filter paths](https://forum.ansible.com/t/jinja2-to-filter-paths/29886)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 2\
**Last updated:** [March 19, 2019, 9:47am UTC](https://forum.ansible.com/t/jinja2-to-filter-paths/29886 "2019-03-19T09:47:47Z")

</div>

Hi, I’ve random paths like: /logs/other/dyn.log /logs/mx/mail.log /logs/apache-servers/other.log /logs/network/nas01.log /logs/mailouts/highvolume/mailout.log and many more. They are part of a list that is iterate…

---

## [convert yaml file into jinja](https://forum.ansible.com/t/convert-yaml-file-into-jinja/29907)

<div class="topic-metadata">

**Author:** [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Replies:** 1\
**Last updated:** [March 19, 2019, 7:05am UTC](https://forum.ansible.com/t/convert-yaml-file-into-jinja/29907 "2019-03-19T07:05:42Z")

</div>

Hi Folks: I want to know if there is a way to extract from a yaml file the disk information in order to pass it into jinja2 template. I got the following: { “ansible\_facts”: { “ansible\_disks”: \[ { “bootable”: false…

---

## [Check existence and state of a service on windows machine using win\_service](https://forum.ansible.com/t/check-existence-and-state-of-a-service-on-windows-machine-using-win-service/20887)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 5\
**Last updated:** [March 19, 2019, 6:11am UTC](https://forum.ansible.com/t/check-existence-and-state-of-a-service-on-windows-machine-using-win-service/20887 "2019-03-19T06:11:14Z")

</div>

I am trying to provision windows server 2012 R2 machine with ansible and for that i need to gather some custom facts about the running services. I tried getting the information via the win\_service module like this:

---

## [getting a variable indirectly](https://forum.ansible.com/t/getting-a-variable-indirectly/29863)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 10\
**Last updated:** [March 18, 2019, 11:49pm UTC](https://forum.ansible.com/t/getting-a-variable-indirectly/29863 "2019-03-18T23:49:56Z")

</div>

Hi all, I need to get the value of a variable whose name is saved in another one, in other words I need the lookup plugin vars Unfortunately I can’t upgrade ansible to a release upper to 2.4, so I have to reinvent the w…

---

## [Could not match supplied host pattern,](https://forum.ansible.com/t/could-not-match-supplied-host-pattern/29906)

<div class="topic-metadata">

**Author:** [@Mahender\_Tirumala](https://forum.ansible.com/u/Mahender_Tirumala)\
**Replies:** 0\
**Last updated:** [March 18, 2019, 11:00pm UTC](https://forum.ansible.com/t/could-not-match-supplied-host-pattern/29906 "2019-03-18T23:00:53Z")

</div>

hi, iam getting this error when iam trying to ping my ec2 machines, iam able to do ec2.py --list, Please help ansible -m ping tag\_Name\_dev2–IC-OCR-MACHINES \[DEPRECATION WARNING\]: ANSIBLE\_HOSTS option, The variable is …

---

## [Sending JSON variable as a body in curl command](https://forum.ansible.com/t/sending-json-variable-as-a-body-in-curl-command/29896)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 6\
**Last updated:** [March 18, 2019, 9:42pm UTC](https://forum.ansible.com/t/sending-json-variable-as-a-body-in-curl-command/29896 "2019-03-18T21:42:09Z")

</div>

Hi All, I defined a json variable in vars section and want to pass it as body in curl command as below: vars: paydata: {“status”:“complete”,“message”:"successfully completed",“actions”:\[“close ticket”\]} local\_acti…

---

## [lineinfile module with python3 on remote host with selinux enabled](https://forum.ansible.com/t/lineinfile-module-with-python3-on-remote-host-with-selinux-enabled/29905)

<div class="topic-metadata">

**Author:** [@dmccheyne](https://forum.ansible.com/u/dmccheyne)\
**Replies:** 2\
**Last updated:** [March 18, 2019, 5:17pm UTC](https://forum.ansible.com/t/lineinfile-module-with-python3-on-remote-host-with-selinux-enabled/29905 "2019-03-18T17:17:03Z")

</div>

(Cross posted from AWX group, since it’s more of an Ansible question) I’m dealing with selinux (which I am new to), that I can’t disable in a shared env. Remote is running python 3.5 and it’s mostly fine with the excep…

---

## [azure\_rm\_virtualmachine\_facts not working to search on Tags](https://forum.ansible.com/t/azure-rm-virtualmachine-facts-not-working-to-search-on-tags/29904)

<div class="topic-metadata">

**Author:** [@Ashwini\_Patil](https://forum.ansible.com/u/Ashwini_Patil)\
**Replies:** 0\
**Last updated:** [March 18, 2019, 4:05pm UTC](https://forum.ansible.com/t/azure-rm-virtualmachine-facts-not-working-to-search-on-tags/29904 "2019-03-18T16:05:59Z")

</div>

I am having trouble working with this module. The requirement is to search all the VMs irrespective of their resource groups based on the tags applied to VMs. The module documentation here says \` resource\_group : Name …

---

## [Network performance metrics details and network device details](https://forum.ansible.com/t/network-performance-metrics-details-and-network-device-details/29903)

<div class="topic-metadata">

**Author:** [@Anant\_Chaturvedi](https://forum.ansible.com/u/Anant_Chaturvedi)\
**Replies:** 0\
**Last updated:** [March 18, 2019, 1:16pm UTC](https://forum.ansible.com/t/network-performance-metrics-details-and-network-device-details/29903 "2019-03-18T13:16:52Z")

</div>

Hi team, I am working on a project that needs to set the performance baseline for a network and also needs to get the device details (no. of interfaces, speed, vendor name) for all the devices on the network. Could som…

---

## [dynamic inventory not working](https://forum.ansible.com/t/dynamic-inventory-not-working/29902)

<div class="topic-metadata">

**Author:** [@Mahender\_Tirumala](https://forum.ansible.com/u/Mahender_Tirumala)\
**Replies:** 0\
**Last updated:** [March 18, 2019, 1:06pm UTC](https://forum.ansible.com/t/dynamic-inventory-not-working/29902 "2019-03-18T13:06:31Z")

</div>

can you please let me know where to change in ec2.py to get dynamic inventory success getting unreachable error

---

## [how to prevent Ansible to change ansible\_python\_interpreter after execution](https://forum.ansible.com/t/how-to-prevent-ansible-to-change-ansible-python-interpreter-after-execution/29901)

<div class="topic-metadata">

**Author:** [@cassell](https://forum.ansible.com/u/cassell)\
**Replies:** 0\
**Last updated:** [March 18, 2019, 11:23am UTC](https://forum.ansible.com/t/how-to-prevent-ansible-to-change-ansible-python-interpreter-after-execution/29901 "2019-03-18T11:23:56Z")

</div>

Hi, I'm using Zsh and PyEnv. I Pip install the Ansible I had set ansible\_python\_interpreter to my own PYTHON, in the Inventory file. ansible\_playbook\_python is the path to the python executable used to invoke the A…

---

## [Ansible Tower Install Error](https://forum.ansible.com/t/ansible-tower-install-error/29892)

<div class="topic-metadata">

**Author:** [@Paul\_Woodhouse](https://forum.ansible.com/u/Paul_Woodhouse)\
**Replies:** 3\
**Last updated:** [March 18, 2019, 11:04am UTC](https://forum.ansible.com/t/ansible-tower-install-error/29892 "2019-03-18T11:04:57Z")

</div>

Hi, I am getting an error when attempting to install Ansible Tower via the setup.sh. The error reads: ERROR! ‘check\_mode’ is not a valid attribute for a Task The error appears to have been in ‘/home/user1/ansible-tower…

---

## [New Module Design Question](https://forum.ansible.com/t/new-module-design-question/29900)

<div class="topic-metadata">

**Author:** [@Matthew\_Burtless](https://forum.ansible.com/u/Matthew_Burtless)\
**Replies:** 1\
**Last updated:** [March 17, 2019, 6:52pm UTC](https://forum.ansible.com/t/new-module-design-question/29900 "2019-03-17T18:52:50Z")

</div>

Hi All - Question regarding the correct Ansible friendly abstraction of a new module that interacts with a fairly complex API. I’m working on updating and refactoring NS1’s existing Ansible modules (found here) for subm…

---

## [SSH Access to the Remote servers](https://forum.ansible.com/t/ssh-access-to-the-remote-servers/29899)

<div class="topic-metadata">

**Author:** [@Guillermo\_Colmena](https://forum.ansible.com/u/Guillermo_Colmena)\
**Replies:** 1\
**Last updated:** [March 17, 2019, 4:48pm UTC](https://forum.ansible.com/t/ssh-access-to-the-remote-servers/29899 "2019-03-17T16:48:50Z")

</div>

Hi Ansible Community, I have been trying to configure the ssh.cfg and ansible.cfg to be able to access using an id\_rsa to connect via ssh to the remote servers. The question comes when I try to configure these 2 config …

---

## [Openshift cluster management](https://forum.ansible.com/t/openshift-cluster-management/29898)

<div class="topic-metadata">

**Author:** [@Rony\_Joy](https://forum.ansible.com/u/Rony_Joy)\
**Replies:** 3\
**Last updated:** [March 17, 2019, 7:10am UTC](https://forum.ansible.com/t/openshift-cluster-management/29898 "2019-03-17T07:10:53Z")

</div>

My ansible knowledge is very limited. I would like to get some expert suggestions from the experts here. Our environments (staging(2-3), productions(3-4)) managed through open shift cluster and docker based micro service…

---

## [Openshift cluster management](https://forum.ansible.com/t/openshift-cluster-management/29897)

<div class="topic-metadata">

**Author:** [@ronyjoy](https://forum.ansible.com/u/ronyjoy)\
**Replies:** 1\
**Last updated:** [March 16, 2019, 1:17pm UTC](https://forum.ansible.com/t/openshift-cluster-management/29897 "2019-03-16T13:17:54Z")

</div>

My ansible knowledge is very limited. I would like to get some expert suggestions from the experts here. Our environments (staging(2-3), productions(3-4)) managed through open shift cluster and docker based micro service…

---

## [how to handle user prompt in privilege escalation](https://forum.ansible.com/t/how-to-handle-user-prompt-in-privilege-escalation/29891)

<div class="topic-metadata">

**Author:** [@hitesh\_shaha](https://forum.ansible.com/u/hitesh_shaha)\
**Replies:** 1\
**Last updated:** [March 16, 2019, 6:56am UTC](https://forum.ansible.com/t/how-to-handle-user-prompt-in-privilege-escalation/29891 "2019-03-16T06:56:38Z")

</div>

Hi Team, we have developed playbook for oracle backup, but we are having big roadblock to use privilege escalation. we are using become\_user mentod for privilege escalation but in our env for security reason unix team …

---

## [Sorting JSON output correctly](https://forum.ansible.com/t/sorting-json-output-correctly/29895)

<div class="topic-metadata">

**Author:** [@email](https://forum.ansible.com/u/email)\
**Replies:** 0\
**Last updated:** [March 15, 2019, 7:00pm UTC](https://forum.ansible.com/t/sorting-json-output-correctly/29895 "2019-03-15T19:00:09Z")

</div>

Hey all, I have a task that I’m really struggling to convert into Ansible from Python. I’m uring the uri module to query an API and it returns the JSON output like the following: \` \[ { “Name”: “Linux File System”, …

---

## [Ansible integration with windows hosts](https://forum.ansible.com/t/ansible-integration-with-windows-hosts/29894)

<div class="topic-metadata">

**Author:** [@Narayana\_Ballem](https://forum.ansible.com/u/Narayana_Ballem)\
**Replies:** 0\
**Last updated:** [March 15, 2019, 6:26pm UTC](https://forum.ansible.com/t/ansible-integration-with-windows-hosts/29894 "2019-03-15T18:26:06Z")

</div>

HI Team, i am working on some app pool recyle automation task where i need to integrate windows server. My control node is oracle Linux and i would like call some perl scripts on windows server, these windows servers a…

---

## [Ansible 2.7.9 and 2.6.15](https://forum.ansible.com/t/ansible-2-7-9-and-2-6-15/29893)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [March 15, 2019, 3:47pm UTC](https://forum.ansible.com/t/ansible-2-7-9-and-2-6-15/29893 "2019-03-15T15:47:34Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.7.9 and Ansible 2.6.15 are now available! How do you get it?

---

## [Postgres DB](https://forum.ansible.com/t/postgres-db/29890)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 2\
**Last updated:** [March 15, 2019, 5:01am UTC](https://forum.ansible.com/t/postgres-db/29890 "2019-03-15T05:01:27Z")

</div>

Hi, I was trying to backup DB(backup.yml) and restore DB(restore.yml) from the backup. It was not successful. So, erased all tower binaries and was trying to perform a fresh tower install. But fresh install (install.ym…

---

## [ansible setup how to show win\_disk\_information](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889)

<div class="topic-metadata">

**Author:** [@fmontaldo3](https://forum.ansible.com/u/fmontaldo3)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 11:33pm UTC](https://forum.ansible.com/t/ansible-setup-how-to-show-win-disk-information/29889 "2019-03-14T23:33:20Z")

</div>

Hi folks I need to create an inventory file for windows servers. Therefore I run the following command: ansible win00-stg -m setup --tree out/ when I check into one of the generate files there is no disk information. …

---

## [Problem creating postgresql user](https://forum.ansible.com/t/problem-creating-postgresql-user/29871)

<div class="topic-metadata">

**Author:** [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Replies:** 6\
**Last updated:** [March 14, 2019, 9:48pm UTC](https://forum.ansible.com/t/problem-creating-postgresql-user/29871 "2019-03-14T21:48:59Z")

</div>

I have this stanza: - name: Create redmine user postgresql\_user: name: redmine password: "ZZZ" expires: infinity become: true become\_user: postgres It runs. The user …

---

## [Hello](https://forum.ansible.com/t/hello/29881)

<div class="topic-metadata">

**Author:** [@Sudhir](https://forum.ansible.com/u/Sudhir)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 6:50pm UTC](https://forum.ansible.com/t/hello/29881 "2019-03-14T18:50:37Z")

</div>

I have the unique situation I am running a playbook on list of hosts ( hostA, hostB, hostC ) for collecting the system current health and dump the data into the directory ( /var/tmp/\<hostname.daily\> on each ansible mana…

---

## [skipping does not show for lists](https://forum.ansible.com/t/skipping-does-not-show-for-lists/29888)

<div class="topic-metadata">

**Author:** [@jyanga](https://forum.ansible.com/u/jyanga)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 4:41pm UTC](https://forum.ansible.com/t/skipping-does-not-show-for-lists/29888 "2019-03-14T16:41:56Z")

</div>

Here are some background info. Ansible Version: 2.7.8 Created a file and folder structure with the commands below. TEMP=“/data” mkdir -p $TEMP/dir{1,2} touch $TEMP/file{1,2}.txt touch $TEMP/file{3,4}.lst.txt touch…

---

## [lineinfile module with python3 on remote host with selinux enabled](https://forum.ansible.com/t/lineinfile-module-with-python3-on-remote-host-with-selinux-enabled/29887)

<div class="topic-metadata">

**Author:** [@dmccheyne](https://forum.ansible.com/u/dmccheyne)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 2:54pm UTC](https://forum.ansible.com/t/lineinfile-module-with-python3-on-remote-host-with-selinux-enabled/29887 "2019-03-14T14:54:43Z")

</div>

I’m dealing with selinux (which I am new to), that I can’t disable in a shared env. Remote is running python 3.5 and it’s mostly fine with the exception of these file editing modules. They run into an issue with the li…

---

## [Installing python dependencies](https://forum.ansible.com/t/installing-python-dependencies/29877)

<div class="topic-metadata">

**Author:** [@Mike\_Alberghini](https://forum.ansible.com/u/Mike_Alberghini)\
**Replies:** 1\
**Last updated:** [March 14, 2019, 2:48pm UTC](https://forum.ansible.com/t/installing-python-dependencies/29877 "2019-03-14T14:48:55Z")

</div>

The vmware\_category\_facts module requires the vsphere-automation-sdk for python from https://github.com/vmware/vsphere-automation-sdk-python A straight up pip install using the pip module and git didn’t seem to work. I …

---

## [Dump tower to awx](https://forum.ansible.com/t/dump-tower-to-awx/29771)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 5\
**Last updated:** [March 14, 2019, 2:47pm UTC](https://forum.ansible.com/t/dump-tower-to-awx/29771 "2019-03-14T14:47:45Z")

</div>

I have a tower 3.1.5 and looking to build the latest AWX server. Any pointers on how I might be able to move templates, jobs, credentials from tower?

---

## [Issue with unmount of volume](https://forum.ansible.com/t/issue-with-unmount-of-volume/29864)

<div class="topic-metadata">

**Author:** [@Karthick\_Thanigaiman](https://forum.ansible.com/u/Karthick_Thanigaiman)\
**Replies:** 1\
**Last updated:** [March 14, 2019, 12:50pm UTC](https://forum.ansible.com/t/issue-with-unmount-of-volume/29864 "2019-03-14T12:50:33Z")

</div>

Hi, I have my facts as like below to unmount a file system in my EC2 via ansible. the ansible playbook executes fine without any issues but still file system doesnt get unmounted (eventhough not in use or no errors). Th…

---

## [How to create a list of dicts](https://forum.ansible.com/t/how-to-create-a-list-of-dicts/29873)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 6\
**Last updated:** [March 14, 2019, 12:48pm UTC](https://forum.ansible.com/t/how-to-create-a-list-of-dicts/29873 "2019-03-14T12:48:24Z")

</div>

Hi All, I have a list logf\_dest (of log files): "logf\_dest": \[ "/logs/mx/mail.log", "/logs/dyn.log", "/logs/apache-servers/other.log" \] I need to form a “list of dicts” called logfile\_config, like the below: \` log…

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

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