# Latest

**URL:** https://forum.ansible.com/latest.md?page=412

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

**Page:** 413

---

## [could not locate file in lookup to deploy authorized\_keys](https://forum.ansible.com/t/could-not-locate-file-in-lookup-to-deploy-authorized-keys/31889)

<div class="topic-metadata">

**Author:** [@cch](https://forum.ansible.com/u/cch)\
**Replies:** 1\
**Last updated:** [December 31, 2019, 11:09am UTC](https://forum.ansible.com/t/could-not-locate-file-in-lookup-to-deploy-authorized-keys/31889 "2019-12-31T11:09:39Z")

</div>

I have a task like this name: test tags: key authorized\_key: user: “{{ item }}” state: present key: “{{lookup(‘file’, ‘/home/{{ item }}/.ssh/id\_rsa.pub’)}}” with\_items: changch become\_user: “{{ item }}” I’m s…

---

## [Ansible create module connect MSSQL](https://forum.ansible.com/t/ansible-create-module-connect-mssql/31887)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [December 31, 2019, 9:04am UTC](https://forum.ansible.com/t/ansible-create-module-connect-mssql/31887 "2019-12-31T09:04:39Z")

</div>

Hello, I create module in file /library/module.py with this content : #!/usr/bin/python -- coding: utf-8 -- from ansible.module\_utils.basic import AnsibleModule from ansible.module\_utils.parsing.convert\_bool import B…

---

## [ansible Inventory](https://forum.ansible.com/t/ansible-inventory/31869)

<div class="topic-metadata">

**Author:** [@Arjan\_Goos](https://forum.ansible.com/u/Arjan_Goos)\
**Replies:** 2\
**Last updated:** [December 31, 2019, 9:00am UTC](https://forum.ansible.com/t/ansible-inventory/31869 "2019-12-31T09:00:35Z")

</div>

We have an cluster of windows machines and there are two types: web and esb And on these machines we have multiple jboss installations (one for each application). And we want to manipulate the jboss instances with an an…

---

## [Ansible-Vmware snapshot question](https://forum.ansible.com/t/ansible-vmware-snapshot-question/31886)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 6\
**Last updated:** [December 31, 2019, 3:32am UTC](https://forum.ansible.com/t/ansible-vmware-snapshot-question/31886 "2019-12-31T03:32:59Z")

</div>

Hello all, I have been using Ansible to manage snapshots for single specified vm’s. Is there a way to have Ansible remove snapshots for all vm’s in Vmware datacenter? If this is posssible, would you mind providing a play…

---

## [Ansible play task if error in my running playbook](https://forum.ansible.com/t/ansible-play-task-if-error-in-my-running-playbook/31882)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 2\
**Last updated:** [December 30, 2019, 1:36pm UTC](https://forum.ansible.com/t/ansible-play-task-if-error-in-my-running-playbook/31882 "2019-12-30T13:36:38Z")

</div>

Hello !! :slight\_smile: I want execut task in ansible if my playbook filed and stop … exemple : If when my playbook running, and one moment stop because there is error … I want execut one task … ? If possible or not…

---

## [Ansible problem with command shell : mail](https://forum.ansible.com/t/ansible-problem-with-command-shell-mail/31884)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 2\
**Last updated:** [December 30, 2019, 1:11pm UTC](https://forum.ansible.com/t/ansible-problem-with-command-shell-mail/31884 "2019-12-30T13:11:38Z")

</div>

Hey !! With prompt shell on my linux this command works perfectly : mail -a “Content-Type: text/html” -s “Ansible deployment HospitalisV3” moi@outlook.com \</home/ansible/test\_hospi\_package/frontoffice/roles/frontoffice…

---

## [Cant SSH / PING to Network Devices](https://forum.ansible.com/t/cant-ssh-ping-to-network-devices/31861)

<div class="topic-metadata">

**Author:** [@Nirmal\_Gauda](https://forum.ansible.com/u/Nirmal_Gauda)\
**Replies:** 9\
**Last updated:** [December 30, 2019, 11:00am UTC](https://forum.ansible.com/t/cant-ssh-ping-to-network-devices/31861 "2019-12-30T11:00:33Z")

</div>

I am a Newbie to Ansible , writing my first playbook. I can not SSH / PING to network Devices. \` leaf-1 | UNREACHABLE! =\> { “changed”: false, “msg”: “Authentication failure.”, “unreachable”: true } leaf-2 | UNREA…

---

## [Citrix configuration](https://forum.ansible.com/t/citrix-configuration/31885)

<div class="topic-metadata">

**Author:** [@Raviteja\_Jinkala](https://forum.ansible.com/u/Raviteja_Jinkala)\
**Replies:** 0\
**Last updated:** [December 30, 2019, 10:54am UTC](https://forum.ansible.com/t/citrix-configuration/31885 "2019-12-30T10:54:16Z")

</div>

Hi All, I have installed citrix DDC, PVS and Director using win\_package. Can you please suggest Ansible module to configure citrixDDC, citrix PVS and citrixdirectoryconfig on Windows machine Thanks

---

## [persistent venv in /var/lib/awx/venv path.](https://forum.ansible.com/t/persistent-venv-in-var-lib-awx-venv-path/31883)

<div class="topic-metadata">

**Author:** [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Replies:** 0\
**Last updated:** [December 30, 2019, 10:01am UTC](https://forum.ansible.com/t/persistent-venv-in-var-lib-awx-venv-path/31883 "2019-12-30T10:01:20Z")

</div>

Hello, I need some additionnal py module to run my playbooks with local docker, so I set custom\_venv\_dir=/var/lib/awx/venv in the installer to make the default ansible venv available outside of container lifecycle. Whe…

---

## [AWX is not recognizing ovirt-engine-sdk-python](https://forum.ansible.com/t/awx-is-not-recognizing-ovirt-engine-sdk-python/31754)

<div class="topic-metadata">

**Author:** [@Shlomi](https://forum.ansible.com/u/Shlomi)\
**Replies:** 5\
**Last updated:** [December 30, 2019, 9:50am UTC](https://forum.ansible.com/t/awx-is-not-recognizing-ovirt-engine-sdk-python/31754 "2019-12-30T09:50:34Z")

</div>

Hi, I’m trying to run a playbook that does some stuff in oVirt, and AWX is telling me: “ovirtsdk4 version 4.3.0 or higher is required for this module”, despite the fact that the module is installed and exists in /var/li…

---

## [Ansible hosts](https://forum.ansible.com/t/ansible-hosts/21014)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 4\
**Last updated:** [December 30, 2019, 4:02am UTC](https://forum.ansible.com/t/ansible-hosts/21014 "2019-12-30T04:02:17Z")

</div>

When I try playbook I see below error ok: \[resoxapp-ch2f-01c.email.comcast.net\] ERROR! the field ‘hosts’ is required but was not set my inventory file \[hosts\] resoxapp-ch2f-01c.email.comcast.net resoxapp-ch2f-02c.e…

---

## [And filter for smart inventory](https://forum.ansible.com/t/and-filter-for-smart-inventory/31880)

<div class="topic-metadata">

**Author:** [@Nathanael\_Blanchet](https://forum.ansible.com/u/Nathanael_Blanchet)\
**Replies:** 0\
**Last updated:** [December 29, 2019, 10:03pm UTC](https://forum.ansible.com/t/and-filter-for-smart-inventory/31880 "2019-12-29T22:03:50Z")

</div>

Hello, in a smart inventory, i can't do such a filter: groups.name:cluster\_Sudoc and groups.name:status\_up, it outpouts no result whereas groups.name:cluster\_Sudoc and inventory.exact:9 is ok. How to successfully filter…

---

## [Provision Weblogic sever](https://forum.ansible.com/t/provision-weblogic-sever/31879)

<div class="topic-metadata">

**Author:** [@Cloud09](https://forum.ansible.com/u/Cloud09)\
**Replies:** 0\
**Last updated:** [December 28, 2019, 1:34am UTC](https://forum.ansible.com/t/provision-weblogic-sever/31879 "2019-12-28T01:34:08Z")

</div>

Hello team, Did anyone creates weblogic domain and provision server? If you guys have any git url please share with me Thanks

---

## [pip install - missing execute bits](https://forum.ansible.com/t/pip-install-missing-execute-bits/31821)

<div class="topic-metadata">

**Author:** [@Markus\_Falb](https://forum.ansible.com/u/Markus_Falb)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 12:08am UTC](https://forum.ansible.com/t/pip-install-missing-execute-bits/31821 "2019-12-28T00:08:39Z")

</div>

hi, I installed ansible via pip on a CentOS 7 workstation $ sudo yum install python-virtualenv $ virtualenv venv $ . venv/bin/activate $ pip install ansible but all installed binaries are missing the execute permissio…

---

## [Running Ansible ping and getting error: Operation not permitted\\r\\n",](https://forum.ansible.com/t/running-ansible-ping-and-getting-error-operation-not-permitted-r-n/31874)

<div class="topic-metadata">

**Author:** [@eddie\_eakemu1](https://forum.ansible.com/u/eddie_eakemu1)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 7:59pm UTC](https://forum.ansible.com/t/running-ansible-ping-and-getting-error-operation-not-permitted-r-n/31874 "2019-12-27T19:59:26Z")

</div>

When I am running a ansible ping from a ubuntu VM to a host using the command ansible -m ping juniper It gives me the error message … WARNING\]: Platform freebsd on host 172.16.203.122 is using the discovered Python in…

---

## [Ansible check for a file using stat in loop](https://forum.ansible.com/t/ansible-check-for-a-file-using-stat-in-loop/31876)

<div class="topic-metadata">

**Author:** [@Prudhvi1](https://forum.ansible.com/u/Prudhvi1)\
**Replies:** 0\
**Last updated:** [December 27, 2019, 5:22pm UTC](https://forum.ansible.com/t/ansible-check-for-a-file-using-stat-in-loop/31876 "2019-12-27T17:22:37Z")

</div>

I’m using stat module in loop to search for a file when defined. name: Check for .pub file stat: path: “{{ playbook\_dir }}/…/vars/{{ item.name }}.pub” loop: “{{ UserAddList.add\_users }}” register: file\_details wh…

---

## [Force ansible-playbook to collect ansible facts](https://forum.ansible.com/t/force-ansible-playbook-to-collect-ansible-facts/31873)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 2:53pm UTC](https://forum.ansible.com/t/force-ansible-playbook-to-collect-ansible-facts/31873 "2019-12-27T14:53:16Z")

</div>

Hello, I ran my ansible playbook, pb.yml file, with --tags, like following: ansible-playbook -i “192.168.100.1,” pb.yml --tags “networking” ansible-playbook does NOT collect ansible facts. However, if I run it without…

---

## [Not replacing invalid character(s) in group name warning](https://forum.ansible.com/t/not-replacing-invalid-character-s-in-group-name-warning/31859)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 2:36pm UTC](https://forum.ansible.com/t/not-replacing-invalid-character-s-in-group-name-warning/31859 "2019-12-27T14:36:26Z")

</div>

Hello, I’m using Ansible group\_by for networking specific information configuration. I need to use group\_by to collect data values from my group\_var/subnet\_ file. My group\_vars/subnet\_192.168.101.0 matches group\_by key.…

---

## [String alignments](https://forum.ansible.com/t/string-alignments/31866)

<div class="topic-metadata">

**Author:** [@Gopal\_Chatla](https://forum.ansible.com/u/Gopal_Chatla)\
**Replies:** 6\
**Last updated:** [December 27, 2019, 10:03am UTC](https://forum.ansible.com/t/string-alignments/31866 "2019-12-27T10:03:01Z")

</div>

Hi Team, I am redirecting debug messages output to a ‘’ Txt" file using jinja2 templating alignment( by replacing extra strings ). Basically I want to send that file contents to email but output is not looking decent. I…

---

## [condition in SOURCE VARIABLES](https://forum.ansible.com/t/condition-in-source-variables/31872)

<div class="topic-metadata">

**Author:** [@JewBoy](https://forum.ansible.com/u/JewBoy)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 3:14pm UTC](https://forum.ansible.com/t/condition-in-source-variables/31872 "2019-12-26T15:14:19Z")

</div>

is that possible? I want to do something like this: vpc\_destination\_variable: “{{ ip\_address if ec2\_platform == ‘windows’ else private\_ip\_address }}” what I want is, that if I have a windows ec2, that connection will …

---

## [Ansible Password Encryption](https://forum.ansible.com/t/ansible-password-encryption/31871)

<div class="topic-metadata">

**Author:** [@Parveen\_Datt](https://forum.ansible.com/u/Parveen_Datt)\
**Replies:** 1\
**Last updated:** [December 25, 2019, 9:43pm UTC](https://forum.ansible.com/t/ansible-password-encryption/31871 "2019-12-25T21:43:02Z")

</div>

Team, please help How to encrypt password in Ansible apart from Ansible vault ? Is there any way to encrypt password and set encrypted password as variable and use it in playbook ? If yes, then how playbook will decry…

---

## [To Stop Multiple Azure VMs](https://forum.ansible.com/t/to-stop-multiple-azure-vms/31870)

<div class="topic-metadata">

**Author:** [@Ashadeep\_Parida](https://forum.ansible.com/u/Ashadeep_Parida)\
**Replies:** 3\
**Last updated:** [December 25, 2019, 9:36pm UTC](https://forum.ansible.com/t/to-stop-multiple-azure-vms/31870 "2019-12-25T21:36:30Z")

</div>

Hi All, I’m new to this group and much more interested to learn ansible. So this time I need your help. I’m trying to stop or shut down all the azure VMs by using ansible but it’s failed all the time. Kindly check the s…

---

## [Ansible - Display message color](https://forum.ansible.com/t/ansible-display-message-color/31868)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [December 24, 2019, 4:44pm UTC](https://forum.ansible.com/t/ansible-display-message-color/31868 "2019-12-24T16:44:16Z")

</div>

Hey !!! I want to know if possible display message with module debug: msg=“my first message an color red” I don’t know if there is argument color: red or other argument for specify only one task message is an color … C…

---

## [MSP Files](https://forum.ansible.com/t/msp-files/31855)

<div class="topic-metadata">

**Author:** [@anuj\_aggarwal](https://forum.ansible.com/u/anuj_aggarwal)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 12:05am UTC](https://forum.ansible.com/t/msp-files/31855 "2019-12-24T00:05:48Z")

</div>

How can I install .msp files from ansible modules without using win\_shell.

---

## [home directory for Ansible in windows machine using cygwin](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864)

<div class="topic-metadata">

**Author:** [@aarathy\_shenoy](https://forum.ansible.com/u/aarathy_shenoy)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 12:04am UTC](https://forum.ansible.com/t/home-directory-for-ansible-in-windows-machine-using-cygwin/31864 "2019-12-24T00:04:14Z")

</div>

I am new to ansible. I have installed Ansible in a windows 10 machine with the help of cwygwin.Ansible is running now. Is the home directory of Ansible getting set while the installation happens? Can anyone help me in…

---

## [Variable in hostvars](https://forum.ansible.com/t/variable-in-hostvars/31867)

<div class="topic-metadata">

**Author:** [@Herman\_Pool](https://forum.ansible.com/u/Herman_Pool)\
**Replies:** 2\
**Last updated:** [December 23, 2019, 5:54pm UTC](https://forum.ansible.com/t/variable-in-hostvars/31867 "2019-12-23T17:54:22Z")

</div>

Hi all, I am new to ansible. Why is my playbook not working? And how can I solve it? My playbook:

---

## [Ansible tower free license are not delivered yet](https://forum.ansible.com/t/ansible-tower-free-license-are-not-delivered-yet/31865)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 1:03pm UTC](https://forum.ansible.com/t/ansible-tower-free-license-are-not-delivered-yet/31865 "2019-12-23T13:03:28Z")

</div>

Hi Team, I had setup the Ansible tower and in the page to request for license, there was option to request for free trial license for less than 50 nodes. Where I have given my details completed the request. Its being on…

---

## [Is it possible to upgrade libraries in awx?](https://forum.ansible.com/t/is-it-possible-to-upgrade-libraries-in-awx/31849)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 7:08am UTC](https://forum.ansible.com/t/is-it-possible-to-upgrade-libraries-in-awx/31849 "2019-12-23T07:08:23Z")

</div>

Hi, I want to upgrade the following libraries in awx containers (possibly during build process). Could anyone please suggest a way to achieve this. Also, since awx supports only Python3, can anyone please suggest why we…

---

## [Want to send notification if no hosts match](https://forum.ansible.com/t/want-to-send-notification-if-no-hosts-match/31858)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 2\
**Last updated:** [December 23, 2019, 6:17am UTC](https://forum.ansible.com/t/want-to-send-notification-if-no-hosts-match/31858 "2019-12-23T06:17:22Z")

</div>

Hi, I have a use case where I am automating switch patching where engineers can select a switch name and playbook name from a web portal. I would to like to handle an exception if engineers select a wrong switch/playbo…

---

## [Ansible Linux Server - Unreachable](https://forum.ansible.com/t/ansible-linux-server-unreachable/31862)

<div class="topic-metadata">

**Author:** [@Parveen\_Datt](https://forum.ansible.com/u/Parveen_Datt)\
**Replies:** 3\
**Last updated:** [December 22, 2019, 7:56pm UTC](https://forum.ansible.com/t/ansible-linux-server-unreachable/31862 "2019-12-22T19:56:52Z")

</div>

Team, Can someone please help in solution for below requirement. I tried a lot but did not get through yet We want ansible playbook to test network reachability of a server followed by Power reset using IPMITOOL if Se…

[Previous page](https://forum.ansible.com/latest.md?page=411)

[Next page](https://forum.ansible.com/latest.md?page=413)
