# Ansible Project

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

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

**Page:** 152

---

## [Dell EMC Unity/Unisphere with Ansible](https://forum.ansible.com/t/dell-emc-unity-unisphere-with-ansible/31332)

<div class="topic-metadata">

**Author:** [@Tanisha\_Mishra](https://forum.ansible.com/u/Tanisha_Mishra)\
**Replies:** 2\
**Last updated:** [January 4, 2020, 8:43am UTC](https://forum.ansible.com/t/dell-emc-unity-unisphere-with-ansible/31332 "2020-01-04T08:43:10Z")

</div>

Using the python module https://github.com/jialehuo/ansible-dellemc-unity/blob/master/library/dellemc\_unity.py , below have designed the playbook but am facing Request body errors. PLAYBOOK:

---

## [Keeping steps depending on each other while compiling](https://forum.ansible.com/t/keeping-steps-depending-on-each-other-while-compiling/31896)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 1\
**Last updated:** [January 3, 2020, 9:35pm UTC](https://forum.ansible.com/t/keeping-steps-depending-on-each-other-while-compiling/31896 "2020-01-03T21:35:31Z")

</div>

Easy question of the day: so I have a package I want to build from source. To do so I need to run config feeding some custom parameters, which makes me think I cannot then use the make \[1\] module. So I thought on usin…

---

## [Error message as  "msg": "Status code was 401 and not \[202\]: HTTP Error 401: Unauthorized",](https://forum.ansible.com/t/error-message-as-msg-status-code-was-401-and-not-202-http-error-401-unauthorized/31895)

<div class="topic-metadata">

**Author:** [@Vijay\_Ravindran](https://forum.ansible.com/u/Vijay_Ravindran)\
**Replies:** 1\
**Last updated:** [January 3, 2020, 2:52pm UTC](https://forum.ansible.com/t/error-message-as-msg-status-code-was-401-and-not-202-http-error-401-unauthorized/31895 "2020-01-03T14:52:44Z")

</div>

Hello Team The below error msg keep on coming “msg”: “Status code was 401 and not \[202\]: HTTP Error 401: Unauthorized”, as i use URI for enabling a POST operation via REST API Really seeking your help please. Thanks

---

## [Unable to run playbook on multiple hosts due to \[Errno -3\] Temporary failure in name resolution"}](https://forum.ansible.com/t/unable-to-run-playbook-on-multiple-hosts-due-to-errno-3-temporary-failure-in-name-resolution/31894)

<div class="topic-metadata">

**Author:** [@Richard2](https://forum.ansible.com/u/Richard2)\
**Replies:** 1\
**Last updated:** [January 3, 2020, 10:23am UTC](https://forum.ansible.com/t/unable-to-run-playbook-on-multiple-hosts-due-to-errno-3-temporary-failure-in-name-resolution/31894 "2020-01-03T10:23:02Z")

</div>

I need help to run my playbook on multiple hosts I’m only able to run on a single host using IP address PLAY \[Pre and Post Cisco show Command\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Serial in playbook - missing variable](https://forum.ansible.com/t/serial-in-playbook-missing-variable/31893)

<div class="topic-metadata">

**Author:** [@Dawid\_D](https://forum.ansible.com/u/Dawid_D)\
**Replies:** 2\
**Last updated:** [January 3, 2020, 8:29am UTC](https://forum.ansible.com/t/serial-in-playbook-missing-variable/31893 "2020-01-03T08:29:43Z")

</div>

Hello Community, I have a question related with my ansible playbook. Let me describe an issue: I use hostvars in template like: {% for host in groups\[‘elasticsearch’\] %} {{ hostvars\[host\].ansible\_default\_ipv4.addres…

---

## [new tool: Visansible - Visualization of Ansibel-Facts](https://forum.ansible.com/t/new-tool-visansible-visualization-of-ansibel-facts/31832)

<div class="topic-metadata">

**Author:** [@Oliver\_Dippel](https://forum.ansible.com/u/Oliver_Dippel)\
**Replies:** 2\
**Last updated:** [January 2, 2020, 7:18pm UTC](https://forum.ansible.com/t/new-tool-visansible-visualization-of-ansibel-facts/31832 "2020-01-02T19:18:07Z")

</div>

Hi, hope you like it and it is useful: https://github.com/multigcs/visansible

---

## [azure\_rm\_loadbalancer:  How to add the virtual machines to backendpool](https://forum.ansible.com/t/azure-rm-loadbalancer-how-to-add-the-virtual-machines-to-backendpool/31875)

<div class="topic-metadata">

**Author:** [@Shaik\_nagulameera](https://forum.ansible.com/u/Shaik_nagulameera)\
**Replies:** 1\
**Last updated:** [January 2, 2020, 12:30pm UTC](https://forum.ansible.com/t/azure-rm-loadbalancer-how-to-add-the-virtual-machines-to-backendpool/31875 "2020-01-02T12:30:37Z")

</div>

Hi All, I am working on multi-tier application deployment on azure using Ansible. For this setup I need to create 2 virtual machines with 1 Loadbalancer. I have created virtual machines and Loadbalancer but failing to …

---

## [Need help on building ansible inventory file properly](https://forum.ansible.com/t/need-help-on-building-ansible-inventory-file-properly/31881)

<div class="topic-metadata">

**Author:** [@Yehuda\_Pinhas](https://forum.ansible.com/u/Yehuda_Pinhas)\
**Replies:** 18\
**Last updated:** [January 2, 2020, 8:07am UTC](https://forum.ansible.com/t/need-help-on-building-ansible-inventory-file-properly/31881 "2020-01-02T08:07:36Z")

</div>

Hi, I have been searching all over the internet and there isn’t any good documentation that explains how to build my inventory properly. The official documentation is bad and there aren’t any example on inet that I coul…

---

## [Ansible - How register some line in variable](https://forum.ansible.com/t/ansible-how-register-some-line-in-variable/31800)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 6\
**Last updated:** [December 31, 2019, 9:13pm UTC](https://forum.ansible.com/t/ansible-how-register-some-line-in-variable/31800 "2019-12-31T21:13:33Z")

</div>

Hey Community ansible !! :slight\_smile: I have some line texte with this content : my first line my second line my 3ème line my 4ème line I want register all this line with one variable ? i don’t know if possible o…

---

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

---

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

---

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

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

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