# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=300

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

**Page:** 301

---

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

---

## [Error running AWX 4 on Minishift 3.11](https://forum.ansible.com/t/error-running-awx-4-on-minishift-3-11/30033)

<div class="topic-metadata">

**Author:** [@mlessard](https://forum.ansible.com/u/mlessard)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 6:07pm UTC](https://forum.ansible.com/t/error-running-awx-4-on-minishift-3-11/30033 "2019-04-01T18:07:14Z")

</div>

Hi, I did lunch the install playbook for AWX 4 on my Minishift 3.11, and i’m getting stuck at this task : TASK \[kubernetes : Wait for management pod to start\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* In Minisift, when i click on thew…

---

## [searching for non-virtual machines....](https://forum.ansible.com/t/searching-for-non-virtual-machines/30032)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 4:37pm UTC](https://forum.ansible.com/t/searching-for-non-virtual-machines/30032 "2019-04-01T16:37:20Z")

</div>

Hi, I'm trying to figure out how to use Tower Search ( https://docs.ansible.com/ansible-tower/3.4.0/html/userguide/search\_sort.html ) either ad-hoc or as a smart inventory to pick up all the non-virtual machines. Nav…

---

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

---

## [Is there way to access variables from inventory plugin?](https://forum.ansible.com/t/is-there-way-to-access-variables-from-inventory-plugin/30028)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 8:38pm UTC](https://forum.ansible.com/t/is-there-way-to-access-variables-from-inventory-plugin/30028 "2019-03-29T20:38:53Z")

</div>

W/o a definition of what you mean by access, the answer is 'yes'.

---

## [How to get started in contributing ?](https://forum.ansible.com/t/how-to-get-started-in-contributing/30020)

<div class="topic-metadata">

**Author:** [@Robin\_Portigliatti](https://forum.ansible.com/u/Robin_Portigliatti)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 6:42pm UTC](https://forum.ansible.com/t/how-to-get-started-in-contributing/30020 "2019-03-29T18:42:00Z")

</div>

Hello everyone, I would like to participate and contribute to AWX. Can someone find the time to help me understand the different development approaches you have used? Thanks in advance

---

## [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”: { …

---

## [AWX limit option - regex](https://forum.ansible.com/t/awx-limit-option-regex/30017)

<div class="topic-metadata">

**Author:** [@pio\_zylka](https://forum.ansible.com/u/pio_zylka)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 1:35pm UTC](https://forum.ansible.com/t/awx-limit-option-regex/30017 "2019-03-29T13:35:22Z")

</div>

How can i use option limit with regex in AWX ? Lets say I have hosts with IP in range 192.168.1.1-192.168.1.100 and i want to run template only for range of host let’s say 192.168.1.10-192.168.1.50 I tried like ad-hoc…

---

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

---

## [Installing HTTPS / SSL certificate on running awx\_web:8080](https://forum.ansible.com/t/installing-https-ssl-certificate-on-running-awx-web-8080/30018)

<div class="topic-metadata">

**Author:** [@TOB](https://forum.ansible.com/u/TOB)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 7:50am UTC](https://forum.ansible.com/t/installing-https-ssl-certificate-on-running-awx-web-8080/30018 "2019-03-29T07:50:42Z")

</div>

Hi, I got AWX installed on a docker running on port 8080. On the host there’s Apache2 installed listening on Port 80, A record on my domain is set but it’s going to the Apache2 for sure. How did you do it? ProxyReverse …

---

## [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\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [AWX 4](https://forum.ansible.com/t/awx-4/30007)

<div class="topic-metadata">

**Author:** [@shanemcd](https://forum.ansible.com/u/shanemcd)\
**Replies:** 0\
**Last updated:** [March 28, 2019, 1:33am UTC](https://forum.ansible.com/t/awx-4/30007 "2019-03-28T01:33:35Z")

</div>

Hi everyone, We’re bumping to AWX 4.0.0 today because we removed the “standalone Docker” installation path. Docker Compose is now required for native Docker-based installations. If you are migrating, stop all of your cu…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=299)

[Next page](https://forum.ansible.com/c/archives/31.md?page=301)
