# Latest

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

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

**Page:** 472

---

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

---

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

---

## [How to install Chocolatey offline?](https://forum.ansible.com/t/how-to-install-chocolatey-offline/30003)

<div class="topic-metadata">

**Author:** [@gigit1000](https://forum.ansible.com/u/gigit1000)\
**Replies:** 1\
**Last updated:** [March 27, 2019, 9:49pm UTC](https://forum.ansible.com/t/how-to-install-chocolatey-offline/30003 "2019-03-27T21:49:09Z")

</div>

Hello, I’m trying to make a task to install Chocolatey on Windows. I have a remote windows host with the Chocolatey installer package at: C:\\updater\\ chocolatey.0.10.13.nupkg I don’t think I can use “win\_chocolatey” be…

---

## [vmware\_guest : Could not find template in Content Library](https://forum.ansible.com/t/vmware-guest-could-not-find-template-in-content-library/30001)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 0\
**Last updated:** [March 27, 2019, 8:03pm UTC](https://forum.ansible.com/t/vmware-guest-could-not-find-template-in-content-library/30001 "2019-03-27T20:03:34Z")

</div>

Hi, please let me know if vmware\_guest can provision a VM from vCenter/vSphere Content Library in a future release, is there a PR, if yes please share. I am tracking below - https://github.com/ansible/ansible/issues/3…

---

## [Meraki API Integration with Ansible](https://forum.ansible.com/t/meraki-api-integration-with-ansible/29999)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 1\
**Last updated:** [March 27, 2019, 6:11pm UTC](https://forum.ansible.com/t/meraki-api-integration-with-ansible/29999 "2019-03-27T18:11:41Z")

</div>

Hi Everyone I would like to implement Meraki Networks using Ansible. Is there some supportive documents available? I wanted to know what we can in ansible with Meraki Automation. Br- Hitesh

---

## [ansible tail file](https://forum.ansible.com/t/ansible-tail-file/29997)

<div class="topic-metadata">

**Author:** [@jer8jer](https://forum.ansible.com/u/jer8jer)\
**Replies:** 4\
**Last updated:** [March 27, 2019, 5:28pm UTC](https://forum.ansible.com/t/ansible-tail-file/29997 "2019-03-27T17:28:48Z")

</div>

I want to start the nodes serially so I need to wait until I see “Confluence is ready to serve”. The search\_regex looks at the entire file so I added part of the date. This only works when the application has not been re…

---

## [Looking for easy way to filter out windows versions below Server 2016](https://forum.ansible.com/t/looking-for-easy-way-to-filter-out-windows-versions-below-server-2016/29965)

<div class="topic-metadata">

**Author:** [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Replies:** 3\
**Last updated:** [March 27, 2019, 3:25pm UTC](https://forum.ansible.com/t/looking-for-easy-way-to-filter-out-windows-versions-below-server-2016/29965 "2019-03-27T15:25:42Z")

</div>

Is there a easy way to filter out older windows versions below 2016 For windows 7, windows 2008 etc I do other command in my playbook then for server 2016 and 2019 and windows 10. I want to make one when statement inst…

---

## [awx 3 api  credeetntials post](https://forum.ansible.com/t/awx-3-api-credeetntials-post/29995)

<div class="topic-metadata">

**Author:** [@Ignazio\_Cassano](https://forum.ansible.com/u/Ignazio_Cassano)\
**Replies:** 6\
**Last updated:** [March 27, 2019, 3:03pm UTC](https://forum.ansible.com/t/awx-3-api-credeetntials-post/29995 "2019-03-27T15:03:17Z")

</div>

Hello, I am trying to post new ssh credentials with python but it returns the list ov credentials and not creates the new credential: def add\_ssh\_credentials(self, uri, token, name, description, organization, team, tipo…

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

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