# Ansible Project

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

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

**Page:** 154

---

## [Besoin d'aide pour Upgrade ansible](https://forum.ansible.com/t/besoin-daide-pour-upgrade-ansible/31813)

<div class="topic-metadata">

**Author:** [@Redhat](https://forum.ansible.com/u/Redhat)\
**Replies:** 3\
**Last updated:** [December 13, 2019, 8:55am UTC](https://forum.ansible.com/t/besoin-daide-pour-upgrade-ansible/31813 "2019-12-13T08:55:20Z")

</div>

Bonjour; Pouvez vous m’aider pour faire la mise à jour d’ansible de 2.7 vers 2.9 svp. je n’ai pas trouver la procédure détaillée pour le faire. Merci par avance

---

## [How do I assign different variable values for different group system](https://forum.ansible.com/t/how-do-i-assign-different-variable-values-for-different-group-system/31815)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 12:05am UTC](https://forum.ansible.com/t/how-do-i-assign-different-variable-values-for-different-group-system/31815 "2019-12-13T00:05:43Z")

</div>

Hello, I’m trying to create an Ansible role, networking, to automate /etc/resolv.conf file. I created this role like below: production networking.yml group\_vars/ agroup bgroup roles/ networking/ tasks/main.yml …

---

## [deploy WAR file in IBM Webshpere application server ND9 (AIX server 7.1)](https://forum.ansible.com/t/deploy-war-file-in-ibm-webshpere-application-server-nd9-aix-server-7-1/31810)

<div class="topic-metadata">

**Author:** [@racke](https://forum.ansible.com/u/racke)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 10:16am UTC](https://forum.ansible.com/t/deploy-war-file-in-ibm-webshpere-application-server-nd9-aix-server-7-1/31810 "2019-12-12T10:16:51Z")

</div>

We are unable to deploy WAR file in IBM Webshpere application server ND9 (AIX server 7.1) through ansible. tasks: name: copying the war file from the existing WAS deployment folder to backup shell: sh wsadmin.sh -use…

---

## [Need help using URI module for a curl command with json body](https://forum.ansible.com/t/need-help-using-uri-module-for-a-curl-command-with-json-body/31765)

<div class="topic-metadata">

**Author:** [@Robert\_Heppe](https://forum.ansible.com/u/Robert_Heppe)\
**Replies:** 6\
**Last updated:** [December 12, 2019, 1:24am UTC](https://forum.ansible.com/t/need-help-using-uri-module-for-a-curl-command-with-json-body/31765 "2019-12-12T01:24:56Z")

</div>

Hi all, I have a working curl command that I’ve been trying to get into an ansible playbook in a testing environment. I’ve found several posts on various forums for similar situations, but not the one I’m working with, …

---

## [Sending JSON through URI module](https://forum.ansible.com/t/sending-json-through-uri-module/31807)

<div class="topic-metadata">

**Author:** [@Junaid\_Farooq](https://forum.ansible.com/u/Junaid_Farooq)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 1:23am UTC](https://forum.ansible.com/t/sending-json-through-uri-module/31807 "2019-12-12T01:23:30Z")

</div>

I am doing this task \` name: Register evercam-media local commit hash local\_action: shell chdir={{local\_media\_dir}} git log --pretty=‘{“sha”:“%h”, “author\_name”:“%an”, “author\_name”:“%ae”, “unix\_timestamp”:“%at”,…

---

## [Lauching template job via api on custom host (ie. not on an inventory)](https://forum.ansible.com/t/lauching-template-job-via-api-on-custom-host-ie-not-on-an-inventory/31401)

<div class="topic-metadata">

**Author:** [@MrAquilinux](https://forum.ansible.com/u/MrAquilinux)\
**Replies:** 3\
**Last updated:** [December 11, 2019, 8:17pm UTC](https://forum.ansible.com/t/lauching-template-job-via-api-on-custom-host-ie-not-on-an-inventory/31401 "2019-12-11T20:17:22Z")

</div>

Hi all, i don’t know if this is really possibile or i can use tower/awx for this. Anyway, i’d like to setup a trigger on my monitoring system that, if the trigger is fired on a particular host, launches a template/job/p…

---

## [Optimization help](https://forum.ansible.com/t/optimization-help/31805)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 7\
**Last updated:** [December 11, 2019, 5:53pm UTC](https://forum.ansible.com/t/optimization-help/31805 "2019-12-11T17:53:04Z")

</div>

Hi Ansible Gurus, How can I optimize below code ? below is the sufficient code to understand the problem… name: Application item1Conf provisioning include\_tasks: resturlcall.yml with\_items: { name: ‘{{item1Conf}…

---

## [Export and Import certificates in Windows host](https://forum.ansible.com/t/export-and-import-certificates-in-windows-host/31804)

<div class="topic-metadata">

**Author:** [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 10:51am UTC](https://forum.ansible.com/t/export-and-import-certificates-in-windows-host/31804 "2019-12-11T10:51:01Z")

</div>

Hi All, I need to create a certificate using giving LB VIP. Can some please advise which module I can use for windows host. the reason I’m asking as then I need to import it using below command: D:\\Java\\JDK1.8\\bin\\k…

---

## [execute ssh-copy-id, if passwdless login not able](https://forum.ansible.com/t/execute-ssh-copy-id-if-passwdless-login-not-able/31802)

<div class="topic-metadata">

**Author:** [@Ganeshwari\_Sk](https://forum.ansible.com/u/Ganeshwari_Sk)\
**Replies:** 3\
**Last updated:** [December 11, 2019, 10:46am UTC](https://forum.ansible.com/t/execute-ssh-copy-id-if-passwdless-login-not-able/31802 "2019-12-11T10:46:51Z")

</div>

in Ansible playbook, I want to do two task, one to check passwdless ssh login is enabled or not, and in another task if passwdless login not abled for the remote host, then execute the ssh-copy-id command. I have writte…

---

## [Create custom plugin for running in ansible server](https://forum.ansible.com/t/create-custom-plugin-for-running-in-ansible-server/31803)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 10:45am UTC](https://forum.ansible.com/t/create-custom-plugin-for-running-in-ansible-server/31803 "2019-12-11T10:45:49Z")

</div>

Hey Dear, I would like to know if exists plugin, filter, module, then always running in ansible server, not necessary to specify delegate\_to or local\_action. If exists, which is and how work?

---

## [Could not find or access template file](https://forum.ansible.com/t/could-not-find-or-access-template-file/31632)

<div class="topic-metadata">

**Author:** [@morten\_hoffmann](https://forum.ansible.com/u/morten_hoffmann)\
**Replies:** 5\
**Last updated:** [December 11, 2019, 8:10am UTC](https://forum.ansible.com/t/could-not-find-or-access-template-file/31632 "2019-12-11T08:10:05Z")

</div>

hi I’m trying to setup a linux service on remote host I have my file in template folder . ├── group\_vars │ ├── artefacts\_conf.yml │ ├── jdk\_wl\_conf.yml │ ├── configuration\_conf.yml ├── hosts └── templates ├── n…

---

## [using assert in ansible](https://forum.ansible.com/t/using-assert-in-ansible/31801)

<div class="topic-metadata">

**Author:** [@evnflow](https://forum.ansible.com/u/evnflow)\
**Replies:** 2\
**Last updated:** [December 10, 2019, 7:57pm UTC](https://forum.ansible.com/t/using-assert-in-ansible/31801 "2019-12-10T19:57:57Z")

</div>

I have a playbook and I am using the following assertion assert: that: ( (disk\_usage|float)/mount.size\_total ) \< disk\_limit|float msg: “Disk usage {{ disk\_usage\_ratio\_s }} exceeds {{ disk\_limit\_ratio\_s }}” any\_errors…

---

## [ansible && vmware\_guest\_disk unit\_number required](https://forum.ansible.com/t/ansible-vmware-guest-disk-unit-number-required/31799)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 2\
**Last updated:** [December 10, 2019, 6:18pm UTC](https://forum.ansible.com/t/ansible-vmware-guest-disk-unit-number-required/31799 "2019-12-10T18:18:39Z")

</div>

Hi; I’m trying to automate the addition of disk devices to VM guests. After a bit of work and lots of lessons learned, I’ve gotten to this point: \` name: add disk space vmware\_guest\_disk: hostname: “{{s}}” usernam…

---

## [How can I get Ansible to only use Python 3.6?](https://forum.ansible.com/t/how-can-i-get-ansible-to-only-use-python-3-6/31792)

<div class="topic-metadata">

**Author:** [@Mark\_Bolden](https://forum.ansible.com/u/Mark_Bolden)\
**Replies:** 15\
**Last updated:** [December 10, 2019, 1:16pm UTC](https://forum.ansible.com/t/how-can-i-get-ansible-to-only-use-python-3-6/31792 "2019-12-10T13:16:44Z")

</div>

I am on Centos 7 and I was trying to install Pyrax and seeing these errors: ERROR: os-service-types 1.7.0 has requirement pbr!=2.1.0,\>=2.0.0, but you’ll have pbr 1.10.0 which is incompatible. ERROR: python-keystoneclie…

---

## [Cannot extract the proper ENV value for SUDO\_USER while invoking ansible script using python](https://forum.ansible.com/t/cannot-extract-the-proper-env-value-for-sudo-user-while-invoking-ansible-script-using-python/31796)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 12:45pm UTC](https://forum.ansible.com/t/cannot-extract-the-proper-env-value-for-sudo-user-while-invoking-ansible-script-using-python/31796 "2019-12-10T12:45:47Z")

</div>

Hi I have a Ansible playbook as below: test.env.yml

---

## [Using ignore\_errors : yes in loop](https://forum.ansible.com/t/using-ignore-errors-yes-in-loop/31794)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 8:08am UTC](https://forum.ansible.com/t/using-ignore-errors-yes-in-loop/31794 "2019-12-10T08:08:12Z")

</div>

Hi Dick and Ansible gurus, I want to continue to other items of loop even if any of the item is failed in loop(probably we did not define that item and because of that - item failed, in that case it should continue to r…

---

## [unable to delete file from sub folders](https://forum.ansible.com/t/unable-to-delete-file-from-sub-folders/31793)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 0\
**Last updated:** [December 10, 2019, 7:11am UTC](https://forum.ansible.com/t/unable-to-delete-file-from-sub-folders/31793 "2019-12-10T07:11:58Z")

</div>

Hi All, I am using the below code for deleting file from folders, i am able to delete file from parent folder but its skipping files in sub folders: Please check and help me getting this fixed. name: Ansible delete …

---

## [Issue trying to parse tag](https://forum.ansible.com/t/issue-trying-to-parse-tag/31782)

<div class="topic-metadata">

**Author:** [@Christian\_Del\_Pino1](https://forum.ansible.com/u/Christian_Del_Pino1)\
**Replies:** 4\
**Last updated:** [December 9, 2019, 10:25pm UTC](https://forum.ansible.com/t/issue-trying-to-parse-tag/31782 "2019-12-09T22:25:05Z")

</div>

Hi, I am currently trying to connect to a newly created ec2 instance via a tag that I created, but I am getting an error during the run: setting up inventory plugins host\_list declined parsing /Users/christiandelpino/…

---

## [Incorrect Sudo Password](https://forum.ansible.com/t/incorrect-sudo-password/31791)

<div class="topic-metadata">

**Author:** [@Carl\_S](https://forum.ansible.com/u/Carl_S)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 9:01pm UTC](https://forum.ansible.com/t/incorrect-sudo-password/31791 "2019-12-09T21:01:31Z")

</div>

This was previously working, but about a month ago, after an update, it stopped. This is for my home network. I have 3 Kubuntu computers, 1 working as a server, with Ansible installed, 2 client workstations. This is the…

---

## [Passing dynamic parameters to shell script in Ansible playbook](https://forum.ansible.com/t/passing-dynamic-parameters-to-shell-script-in-ansible-playbook/31787)

<div class="topic-metadata">

**Author:** [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Replies:** 5\
**Last updated:** [December 9, 2019, 4:15pm UTC](https://forum.ansible.com/t/passing-dynamic-parameters-to-shell-script-in-ansible-playbook/31787 "2019-12-09T16:15:05Z")

</div>

Hello All, I wanted to pass dynamic parameters to shell script in playbook. I am using script module to trigger, any pointers on this will be really helpful. Regards Amit

---

## [Need help for ansible Junos module](https://forum.ansible.com/t/need-help-for-ansible-junos-module/31786)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 1\
**Last updated:** [December 7, 2019, 1:32pm UTC](https://forum.ansible.com/t/need-help-for-ansible-junos-module/31786 "2019-12-07T13:32:29Z")

</div>

Need Help : Getting error while running ansible playbook for Junos rpc atal: \[vSRX-1\]: FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/bin/python”}, “changed”: false, “msg”: “Unsupported parameters …

---

## [Ansible AWX installation using docker compose](https://forum.ansible.com/t/ansible-awx-installation-using-docker-compose/31777)

<div class="topic-metadata">

**Author:** [@Rahul\_Rawat](https://forum.ansible.com/u/Rahul_Rawat)\
**Replies:** 2\
**Last updated:** [December 7, 2019, 12:18am UTC](https://forum.ansible.com/t/ansible-awx-installation-using-docker-compose/31777 "2019-12-07T00:18:32Z")

</div>

Hi I have install ansible AWX using docker compose. Now check process using docker ps command. How i can access application through outside centos 7 image. regards, Rahul

---

## [Finding a varialbe in Ansible Output, if a variable is present execute the next Role](https://forum.ansible.com/t/finding-a-varialbe-in-ansible-output-if-a-variable-is-present-execute-the-next-role/31785)

<div class="topic-metadata">

**Author:** [@Prudhvi1](https://forum.ansible.com/u/Prudhvi1)\
**Replies:** 0\
**Last updated:** [December 6, 2019, 11:29pm UTC](https://forum.ansible.com/t/finding-a-varialbe-in-ansible-output-if-a-variable-is-present-execute-the-next-role/31785 "2019-12-06T23:29:45Z")

</div>

name: Set Fact hosts: all connection: local tasks: set\_fact: junction\_detail\_ret\_obj=“{{ ret\_obj\[‘data’\]\[‘result’\].split(‘\\n’) }}” name: Output – Set fact hosts: all connection: local tasks: debug: var=j…

---

## [ERROR! no action detected in task](https://forum.ansible.com/t/error-no-action-detected-in-task/31779)

<div class="topic-metadata">

**Author:** [@S.Mahesh\_Kumar](https://forum.ansible.com/u/S.Mahesh_Kumar)\
**Replies:** 4\
**Last updated:** [December 6, 2019, 5:36pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779 "2019-12-06T17:36:55Z")

</div>

I am receiving error. can someone pls help me. code

---

## [Montior bgp session for juniper routers](https://forum.ansible.com/t/montior-bgp-session-for-juniper-routers/31778)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 2\
**Last updated:** [December 6, 2019, 10:41am UTC](https://forum.ansible.com/t/montior-bgp-session-for-juniper-routers/31778 "2019-12-06T10:41:33Z")

</div>

Hi I am looking for play book to monitor bgp sessions. 1.log rpc output in json format. 2run continously ansible playbook for 24\*7 aftet an interval for 15 minutes. Regards Hitesh

---

## [Variable in Ansible Role](https://forum.ansible.com/t/variable-in-ansible-role/31776)

<div class="topic-metadata">

**Author:** [@Rahul\_Rawat](https://forum.ansible.com/u/Rahul_Rawat)\
**Replies:** 2\
**Last updated:** [December 6, 2019, 8:02am UTC](https://forum.ansible.com/t/variable-in-ansible-role/31776 "2019-12-06T08:02:04Z")

</div>

Hi, I have to parse variable in static PowerShell script which will copy through win\_copy module on target machine. Means when file copy on target machine after running playbook it should have values of those variable. …

---

## [Using Jump hosts without port forwarding](https://forum.ansible.com/t/using-jump-hosts-without-port-forwarding/31775)

<div class="topic-metadata">

**Author:** [@Thomas\_St.Pierre](https://forum.ansible.com/u/Thomas_St.Pierre)\
**Replies:** 0\
**Last updated:** [December 5, 2019, 8:07pm UTC](https://forum.ansible.com/t/using-jump-hosts-without-port-forwarding/31775 "2019-12-05T20:07:00Z")

</div>

Hi! I’m trying to use Ansible to connect to some network devices at my work. Unfortunately for me I need to pass by a Linux jump box in order to connect to the device. Should be simple no? :slight\_smile: Unfortunately …

---

## [Loop over multiple tasks](https://forum.ansible.com/t/loop-over-multiple-tasks/31774)

<div class="topic-metadata">

**Author:** [@Jamie\_Addessi](https://forum.ansible.com/u/Jamie_Addessi)\
**Replies:** 1\
**Last updated:** [December 5, 2019, 6:21pm UTC](https://forum.ansible.com/t/loop-over-multiple-tasks/31774 "2019-12-05T18:21:47Z")

</div>

Hello, Is it possible in Ansible to loop over multiple tasks? Something like: \` loop: “{{ mylist }}” name: Task 1 do something with item step 1 name: Task 2 do something with item step 2 name: Task 3 do…

---

## [ERROR! the role 'network\_facts' was not found](https://forum.ansible.com/t/error-the-role-network-facts-was-not-found/31772)

<div class="topic-metadata">

**Author:** [@James\_Lawrence](https://forum.ansible.com/u/James_Lawrence)\
**Replies:** 1\
**Last updated:** [December 5, 2019, 6:00pm UTC](https://forum.ansible.com/t/error-the-role-network-facts-was-not-found/31772 "2019-12-05T18:00:04Z")

</div>

ansible version root@DESKTOP-NI19EMN:/etc/ansible# ansible --version ansible 2.9.1 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugi…

---

## [Gather List of VMs running on vmware esxi host](https://forum.ansible.com/t/gather-list-of-vms-running-on-vmware-esxi-host/31758)

<div class="topic-metadata">

**Author:** [@Ahamed\_Fazlul\_Wahab](https://forum.ansible.com/u/Ahamed_Fazlul_Wahab)\
**Replies:** 3\
**Last updated:** [December 5, 2019, 5:52pm UTC](https://forum.ansible.com/t/gather-list-of-vms-running-on-vmware-esxi-host/31758 "2019-12-05T17:52:21Z")

</div>

Hi All, I’m quite new to ansible, so apologies if I’m asking an obvious question. Is it possible for any ansible vmware module to fetch the list of VMs running on a particular vmware esxi host. Also we need to extract …

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

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