# Ansible Project

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

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

**Page:** 198

---

## [Ansible unable to except any other body format except raw and jason in the uri module and upload a zip or a jar via POST method](https://forum.ansible.com/t/ansible-unable-to-except-any-other-body-format-except-raw-and-jason-in-the-uri-module-and-upload-a-zip-or-a-jar-via-post-method/27582)

<div class="topic-metadata">

**Author:** [@Apu\_Mondal](https://forum.ansible.com/u/Apu_Mondal)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 5:56pm UTC](https://forum.ansible.com/t/ansible-unable-to-except-any-other-body-format-except-raw-and-jason-in-the-uri-module-and-upload-a-zip-or-a-jar-via-post-method/27582 "2019-04-03T17:56:43Z")

</div>

Zip file not getting POST to the server with the uri module in Ansible. These are the codes I am trying to execute name: Transfering the Proxies uri: headers: Authorization: ‘{{API\_USER\_PASS\_BASE64\_ENCRYPT}}’ Cont…

---

## [What is the parameter attribute to use VM storage Policy](https://forum.ansible.com/t/what-is-the-parameter-attribute-to-use-vm-storage-policy/30023)

<div class="topic-metadata">

**Author:** [@himanshu\_gupta](https://forum.ansible.com/u/himanshu_gupta)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 2:41pm UTC](https://forum.ansible.com/t/what-is-the-parameter-attribute-to-use-vm-storage-policy/30023 "2019-04-03T14:41:14Z")

</div>

Hi Team, We are using Ansible to build the VM on Vmware ESXi host and recently we configured the VASA to use the VVOLS. We have created some VM Storgare Policies and we now want to pass these VM storage policy while cre…

---

## [How to avoid backslash and quote from variable](https://forum.ansible.com/t/how-to-avoid-backslash-and-quote-from-variable/30035)

<div class="topic-metadata">

**Author:** [@Bikram](https://forum.ansible.com/u/Bikram)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 1:07pm UTC](https://forum.ansible.com/t/how-to-avoid-backslash-and-quote-from-variable/30035 "2019-04-03T13:07:37Z")

</div>

Hello, I am running an audit against some interfaces on Cisco switches: Here is the task: ios\_command: provider: “{{ cli }}” commands: show run interface “{{ item }}” | i no cdp timeout: 15 register: no\_cdp with…

---

## [Ansible how to get output as variable without brackets and u](https://forum.ansible.com/t/ansible-how-to-get-output-as-variable-without-brackets-and-u/30047)

<div class="topic-metadata">

**Author:** [@wanexa77](https://forum.ansible.com/u/wanexa77)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 9:53am UTC](https://forum.ansible.com/t/ansible-how-to-get-output-as-variable-without-brackets-and-u/30047 "2019-04-03T09:53:12Z")

</div>

I have the result of a query from ansible and I tried to use the result as a variable My playbook is like this - name: Query oracle\_sql: username: "{{ user }}" password: "{{ password }}" service\_name: "{{…

---

## [vault not decrypting in loops](https://forum.ansible.com/t/vault-not-decrypting-in-loops/30042)

<div class="topic-metadata">

**Author:** [@P\_Varsha](https://forum.ansible.com/u/P_Varsha)\
**Replies:** 0\
**Last updated:** [April 3, 2019, 6:21am UTC](https://forum.ansible.com/t/vault-not-decrypting-in-loops/30042 "2019-04-03T06:21:58Z")

</div>

hello, try once instead of two quotation use one. thanks

---

## [Check Number Of Wheel Group Members](https://forum.ansible.com/t/check-number-of-wheel-group-members/30039)

<div class="topic-metadata">

**Author:** [@Jon\_Adcock](https://forum.ansible.com/u/Jon_Adcock)\
**Replies:** 5\
**Last updated:** [April 2, 2019, 6:52pm UTC](https://forum.ansible.com/t/check-number-of-wheel-group-members/30039 "2019-04-02T18:52:44Z")

</div>

I’m trying to add a task to my security playbook to ensure that there are no members in the default Linux wheel group. This has turned out to be more difficult than I thought it would be. Can someone out there help get …

---

## [Edit playbook to work with Packer Ansible Provisioner](https://forum.ansible.com/t/edit-playbook-to-work-with-packer-ansible-provisioner/30041)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 6:19pm UTC](https://forum.ansible.com/t/edit-playbook-to-work-with-packer-ansible-provisioner/30041 "2019-04-02T18:19:20Z")

</div>

Hello, I’m trying to call a playbook from Packer for the first time. I’m using the Packer Ansible provisioner. The documentation says that Packer will “dynamically create an inventory file to use with the playbook” If t…

---

## [IOS Command ARP Issue](https://forum.ansible.com/t/ios-command-arp-issue/30040)

<div class="topic-metadata">

**Author:** [@Emir\_Hayric](https://forum.ansible.com/u/Emir_Hayric)\
**Replies:** 0\
**Last updated:** [April 2, 2019, 5:19pm UTC](https://forum.ansible.com/t/ios-command-arp-issue/30040 "2019-04-02T17:19:16Z")

</div>

I am trying to develop a Playbook which will reference an external variables file that contains numerous MAC addresses that I want to interrogate a network core device for. If I use a very simple playbook just showing t…

---

## [loop with dynamic item.x](https://forum.ansible.com/t/loop-with-dynamic-item-x/30034)

<div class="topic-metadata">

**Author:** [@Guillaume\_D](https://forum.ansible.com/u/Guillaume_D)\
**Replies:** 3\
**Last updated:** [April 1, 2019, 6:46pm UTC](https://forum.ansible.com/t/loop-with-dynamic-item-x/30034 "2019-04-01T18:46:21Z")

</div>

Hello, I’m blocking on this all the weekend. I’m trying to build dynamically a variable with “item” for browsing in a list. \` debug: msg: "{{ item.dev }} " loop: “{{ nginx }}” \` This is working well. But I need…

---

## [Unable to install local package with win\_chocolatey](https://forum.ansible.com/t/unable-to-install-local-package-with-win-chocolatey/30027)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 2\
**Last updated:** [March 31, 2019, 7:36pm UTC](https://forum.ansible.com/t/unable-to-install-local-package-with-win-chocolatey/30027 "2019-03-31T19:36:17Z")

</div>

Hello, I am able to manually install this package from the command line on the windows host like this: choco install C:\\updater\\GoogleChrome-AllUsers.26.0.1410.64.nupkg But I’m not able to do it using the win\_chocolat…

---

## [List of invalid character(s)](https://forum.ansible.com/t/list-of-invalid-character-s/30029)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 9:58pm UTC](https://forum.ansible.com/t/list-of-invalid-character-s/30029 "2019-03-29T21:58:58Z")

</div>

Is the list of invalid character(s) documented somewhere? I did have dashes in my group names and I replaced them with underscores but now ansible is complaining the period is invalid! Makes use FQDN for group names a …

---

## [conditional variables depending on time](https://forum.ansible.com/t/conditional-variables-depending-on-time/30014)

<div class="topic-metadata">

**Author:** [@olyx11](https://forum.ansible.com/u/olyx11)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 9:25pm UTC](https://forum.ansible.com/t/conditional-variables-depending-on-time/30014 "2019-03-29T21:25:55Z")

</div>

I am trying to output what shift an event has happened depending on the time of day, but keep running into errors or getting nothing back.

---

## [playbook, inventory, and group\_names](https://forum.ansible.com/t/playbook-inventory-and-group-names/30026)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 6:16pm UTC](https://forum.ansible.com/t/playbook-inventory-and-group-names/30026 "2019-03-29T18:16:24Z")

</div>

So let's say I have an inventory like this: \[cars\] honda volvo saab \[motos\] aprilla moto-guzzi and in my playbook I am referring to motorcycles only - hosts: motos From what I understand, group\_names returns t…

---

## [Convert yaml to Json jinja2](https://forum.ansible.com/t/convert-yaml-to-json-jinja2/30024)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 4:51pm UTC](https://forum.ansible.com/t/convert-yaml-to-json-jinja2/30024 "2019-03-29T16:51:53Z")

</div>

I was able to convert a list of yaml to Json format. The below is my yaml. Listofstrings: - s1 - S2 Etc {% for in in listofstrings %} { Stringslist : \[ { String : " { i } " }, \] {% end %} So how do I remove th…

---

## [Ansible show simple variable](https://forum.ansible.com/t/ansible-show-simple-variable/30021)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 2:09pm UTC](https://forum.ansible.com/t/ansible-show-simple-variable/30021 "2019-03-29T14:09:52Z")

</div>

Hi all, I have this variable “my\_variable” with content “machainedecaractere” Why when i show this variable with module : debug: msg: “{{ my\_variable }}” I show on wondows : ok: \[localhost\] =\> { “my\_variable”: { …

---

## [Ansible tower export variable](https://forum.ansible.com/t/ansible-tower-export-variable/30022)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 1:08pm UTC](https://forum.ansible.com/t/ansible-tower-export-variable/30022 "2019-03-29T13:08:42Z")

</div>

Hi, I need export variable the playbook for other playbook, this is possible? I deploy virtual machine in Azure and after deploy my application. Need deploy execute in 1 execution and not more deploys

---

## [Unable use expect module in ansible to respond multiple times to a question with different answers.](https://forum.ansible.com/t/unable-use-expect-module-in-ansible-to-respond-multiple-times-to-a-question-with-different-answers/30019)

<div class="topic-metadata">

**Author:** [@Barun\_kumar](https://forum.ansible.com/u/Barun_kumar)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 7:55am UTC](https://forum.ansible.com/t/unable-use-expect-module-in-ansible-to-respond-multiple-times-to-a-question-with-different-answers/30019 "2019-03-29T07:55:43Z")

</div>

Playbook - name: starting splunk forwarder service expect: command: /opt/atlassian/bitbucket/atlassian-bitbucket-6.1.2-x64.bin responses: ‘Install a new instance \[1, Enter\], Upgrade an existing instance \[2\]’: ‘1’ …

---

## [Print only output after assessmentTemplateArn](https://forum.ansible.com/t/print-only-output-after-assessmenttemplatearn/30005)

<div class="topic-metadata">

**Author:** [@tinkuchowdary32](https://forum.ansible.com/u/tinkuchowdary32)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 3:51am UTC](https://forum.ansible.com/t/print-only-output-after-assessmenttemplatearn/30005 "2019-03-29T03:51:16Z")

</div>

how can i get only the arn value but not complete output saved in to variable in the below example TASK \[debug\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible file not found error](https://forum.ansible.com/t/ansible-file-not-found-error/30010)

<div class="topic-metadata">

**Author:** [@sundar\_rajan](https://forum.ansible.com/u/sundar_rajan)\
**Replies:** 2\
**Last updated:** [March 28, 2019, 11:37pm UTC](https://forum.ansible.com/t/ansible-file-not-found-error/30010 "2019-03-28T23:37:35Z")

</div>

We are generating the yaml file at run time but main.yml but it looks for a file when it starts running and says that file not found on the Ansible controller error. How to avoid and tell to main.yml file to skip this e…

---

## [Proxy and k8s/k8s\_facts](https://forum.ansible.com/t/proxy-and-k8s-k8s-facts/30015)

<div class="topic-metadata">

**Author:** [@steven.barre](https://forum.ansible.com/u/steven.barre)\
**Replies:** 0\
**Last updated:** [March 28, 2019, 10:07pm UTC](https://forum.ansible.com/t/proxy-and-k8s-k8s-facts/30015 "2019-03-28T22:07:44Z")

</div>

Hello How can I use the k8s module over a proxy connection? Using the oc command line tool seems to pick up my local env vars for https\_proxy and just works. \`

---

## [Filtering and executing tasks based upon facts](https://forum.ansible.com/t/filtering-and-executing-tasks-based-upon-facts/30012)

<div class="topic-metadata">

**Author:** [@computerprosupport](https://forum.ansible.com/u/computerprosupport)\
**Replies:** 1\
**Last updated:** [March 28, 2019, 8:11pm UTC](https://forum.ansible.com/t/filtering-and-executing-tasks-based-upon-facts/30012 "2019-03-28T20:11:11Z")

</div>

I am trying to use conditionals to determine if I run a task, It seems that the when conditional does not work for some tasks. Is there a syntax error here or am i formatting my yaml incorrectly. Any and all examples of …

---

## [Exceptions when trying to use apache2\_mod\_proxy](https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/30011)

<div class="topic-metadata">

**Author:** [@Jeff\_Sondag](https://forum.ansible.com/u/Jeff_Sondag)\
**Replies:** 4\
**Last updated:** [March 28, 2019, 6:57pm UTC](https://forum.ansible.com/t/exceptions-when-trying-to-use-apache2-mod-proxy/30011 "2019-03-28T18:57:28Z")

</div>

I’m trying to manage an apache load balancer with apache2\_mod\_proxy, and am getting the following error. If someone could help that would be very much appreciated. I’ve submitted it as a bug with more information, here.…

---

## [Ansible can no longer connect via SSH](https://forum.ansible.com/t/ansible-can-no-longer-connect-via-ssh/30013)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 1\
**Last updated:** [March 28, 2019, 5:34pm UTC](https://forum.ansible.com/t/ansible-can-no-longer-connect-via-ssh/30013 "2019-03-28T17:34:06Z")

</div>

Hello, I have a pretty simple playbook that has been working fine for a while. It appears it can no longer connect via ssh to the device. Note, I can manually ssh to the device with no problems. I ran the playbook with …

---

## [ansible got stuck in remote password query?](https://forum.ansible.com/t/ansible-got-stuck-in-remote-password-query/29996)

<div class="topic-metadata">

**Author:** [@Harald\_Dunkel](https://forum.ansible.com/u/Harald_Dunkel)\
**Replies:** 10\
**Last updated:** [March 28, 2019, 3:28pm UTC](https://forum.ansible.com/t/ansible-got-stuck-in-remote-password-query/29996 "2019-03-28T15:28:57Z")

</div>

Hi folks, I am trying to use ansible to deploy openshift on 2 hosts (okd01a and okd01b, CentOS 7.6). Problem: Apparently some remote task gets stuck in a password query: root 7406 1 0 Mar26 ? 00:00:00 /usr/sbin/sshd -D …

---

## [Run script that requires 'sudo' on remote hosts.](https://forum.ansible.com/t/run-script-that-requires-sudo-on-remote-hosts/30002)

<div class="topic-metadata">

**Author:** [@R-JRI](https://forum.ansible.com/u/R-JRI)\
**Replies:** 6\
**Last updated:** [March 28, 2019, 3:23pm UTC](https://forum.ansible.com/t/run-script-that-requires-sudo-on-remote-hosts/30002 "2019-03-28T15:23:16Z")

</div>

Hi, all We have an application stop/start script that starts/stops application without root privilege and with ‘sudo’. If I am on the host, I login as the application user and then run the script to stop/start applicat…

---

## [Configuring Ansible to use Jump server and cisco ISE AAA authencation](https://forum.ansible.com/t/configuring-ansible-to-use-jump-server-and-cisco-ise-aaa-authencation/30009)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [March 28, 2019, 2:07pm UTC](https://forum.ansible.com/t/configuring-ansible-to-use-jump-server-and-cisco-ise-aaa-authencation/30009 "2019-03-28T14:07:25Z")

</div>

Hi Team, Please explain how ansible talks to network devices when enviromet using Jump server (for ssh network devices in secured way) and uisng Cisco ISE for authenication. thanks, Pushparaj

---

## [yum module gives "AttributeError: 'list' object has no attribute 'strip'" on list of items](https://forum.ansible.com/t/yum-module-gives-attributeerror-list-object-has-no-attribute-strip-on-list-of-items/29998)

<div class="topic-metadata">

**Author:** [@Robin\_Roevens](https://forum.ansible.com/u/Robin_Roevens)\
**Replies:** 3\
**Last updated:** [March 28, 2019, 12:07pm UTC](https://forum.ansible.com/t/yum-module-gives-attributeerror-list-object-has-no-attribute-strip-on-list-of-items/29998 "2019-03-28T12:07:19Z")

</div>

Hi all I’m currently trying to get rid of all deprecation warnings as we upgraded Ansible 2.3 to 2.7.9 (CentOS 7.4) And I have this code: name: Install required system packages yum: name: “{{ item }}” state: ‘pres…

---

## [Nmcli module static routes](https://forum.ansible.com/t/nmcli-module-static-routes/29980)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 3\
**Last updated:** [March 28, 2019, 10:32am UTC](https://forum.ansible.com/t/nmcli-module-static-routes/29980 "2019-03-28T10:32:51Z")

</div>

Hi, Dont see any documentation regarding adding static routes using nmcli modules. Is it feasible to add static routes, if yes please let me know and sample example would help.

---

## [repo error](https://forum.ansible.com/t/repo-error/30008)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 1\
**Last updated:** [March 28, 2019, 10:11am UTC](https://forum.ansible.com/t/repo-error/30008 "2019-03-28T10:11:47Z")

</div>

Hi guys I have this error when I execute my playbook. TASK \[Stage 1: install repository package - postgresql\_repo\_CentOS\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Iptables module fragment option](https://forum.ansible.com/t/iptables-module-fragment-option/30006)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 0\
**Last updated:** [March 27, 2019, 11:56pm UTC](https://forum.ansible.com/t/iptables-module-fragment-option/30006 "2019-03-27T23:56:11Z")

</div>

I’m trying to add an iptables rule that uses the fragment option, and I cannot work out how to get it working using Ansible’s iptables module. Here’s my task: name: drop fragmented packets iptables: jump: DROP chai…

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

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