# Ansible Project

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

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

**Page:** 201

---

## [Make a list from list of dicts](https://forum.ansible.com/t/make-a-list-from-list-of-dicts/29915)

<div class="topic-metadata">

**Author:** [@Ashok1](https://forum.ansible.com/u/Ashok1)\
**Replies:** 1\
**Last updated:** [March 19, 2019, 11:51pm UTC](https://forum.ansible.com/t/make-a-list-from-list-of-dicts/29915 "2019-03-19T23:51:05Z")

</div>

Hi all… I’ve a list of dicts like the below: \` client\_destinations: apache-servers: pre\_cmd: ‘$template custom,“/logs/apache-servers/%source%.log”’ rules: var: ‘$syslogfacility-text’ operator: ‘contains’ search…

---

## [replace module cannot crashes when encountering Danish characters](https://forum.ansible.com/t/replace-module-cannot-crashes-when-encountering-danish-characters/29912)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 4\
**Last updated:** [March 19, 2019, 6:29pm UTC](https://forum.ansible.com/t/replace-module-cannot-crashes-when-encountering-danish-characters/29912 "2019-03-19T18:29:14Z")

</div>

I am working on a playbook to replace the comment field in a server’s password file. I was trying to use the replace module to do this. But it began crashing on one server. By elimination I was able to isolate the proble…

---

## [How to print message at end of playbook without using debug?](https://forum.ansible.com/t/how-to-print-message-at-end-of-playbook-without-using-debug/29911)

<div class="topic-metadata">

**Author:** [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Replies:** 0\
**Last updated:** [March 19, 2019, 5:00pm UTC](https://forum.ansible.com/t/how-to-print-message-at-end-of-playbook-without-using-debug/29911 "2019-03-19T17:00:53Z")

</div>

Is there a good way to display instructional information after a playbook ends without using the “debug” directive? I don’t like using debug because the output is printed in red and so it makes it look at though my playb…

---

## [Utilizing win\_iis\_webbinding to update IIS certs](https://forum.ansible.com/t/utilizing-win-iis-webbinding-to-update-iis-certs/26023)

<div class="topic-metadata">

**Author:** [@John\_Martin](https://forum.ansible.com/u/John_Martin)\
**Replies:** 5\
**Last updated:** [March 19, 2019, 12:57pm UTC](https://forum.ansible.com/t/utilizing-win-iis-webbinding-to-update-iis-certs/26023 "2019-03-19T12:57:51Z")

</div>

Hello, I’m new to Ansible and have been giving it some attention in my test environment to see how feasible it is to utilize in production… Mainly to provision/configure/manage 30 or so Windows web-servers. I was able …

---

## [Problem with the RedHat's VDO module](https://forum.ansible.com/t/problem-with-the-redhats-vdo-module/29909)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [March 19, 2019, 11:32am UTC](https://forum.ansible.com/t/problem-with-the-redhats-vdo-module/29909 "2019-03-19T11:32:51Z")

</div>

Morning, I am seeing this error and wonder if someone have seen a similar error with this module or would know what could be the problem. These are the particulars of this problem: \[william@ansible ~\]$ rpm -qa | gre…

---

## [ansible fail to work with ssh](https://forum.ansible.com/t/ansible-fail-to-work-with-ssh/29908)

<div class="topic-metadata">

**Author:** [@tharanga2006](https://forum.ansible.com/u/tharanga2006)\
**Replies:** 9\
**Last updated:** [March 19, 2019, 10:26am UTC](https://forum.ansible.com/t/ansible-fail-to-work-with-ssh/29908 "2019-03-19T10:26:09Z")

</div>

OS : Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-104-generic x86\_64) ansible : ansible 2.7.8 Problem I need to configure ansible to run another node without entering the password ( through ssh) I have followed below method t…

---

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

---

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

---

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

---

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

---

## [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/ansible-project/30.md?page=199)

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