# Ansible Project

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

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

**Page:** 172

---

## [Incorrect Sudo Password - For Ansible Remote Host Jobs](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058)

<div class="topic-metadata">

**Author:** [@Kalyan\_Alamuru](https://forum.ansible.com/u/Kalyan_Alamuru)\
**Replies:** 2\
**Last updated:** [August 16, 2019, 9:29am UTC](https://forum.ansible.com/t/incorrect-sudo-password-for-ansible-remote-host-jobs/31058 "2019-08-16T09:29:31Z")

</div>

I’m running Job through Job Template which have three tasks i.e. Gather Facts on One Local Host(Where Tower is running and Job is Initiated from) and two other remote hosts, For which connectivity is working as I’ve test…

---

## [Erroneous playbook failure](https://forum.ansible.com/t/erroneous-playbook-failure/31021)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [August 16, 2019, 5:59am UTC](https://forum.ansible.com/t/erroneous-playbook-failure/31021 "2019-08-16T05:59:05Z")

</div>

We have a playbook that runs every night that will do a “yum update” on all of our servers, then performs an “aide --update” to keep AIDE up to date. Whenever a difference is found, Ansible flags it as a fatal error. The…

---

## [how to use Ansible meta module to halt playbook execution upon task Failure.](https://forum.ansible.com/t/how-to-use-ansible-meta-module-to-halt-playbook-execution-upon-task-failure/31034)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 5:51am UTC](https://forum.ansible.com/t/how-to-use-ansible-meta-module-to-halt-playbook-execution-upon-task-failure/31034 "2019-08-16T05:51:59Z")

</div>

I wish to search for a string (“AC245”) in all files with extension \*.db under /home/examples directory. If the string is found I wish to abort the play immediately marking the playbook as FAILED. Apart from aborting t…

---

## [New Ansible releases 2.8.4, 2.7.13, and 2.6.19](https://forum.ansible.com/t/new-ansible-releases-2-8-4-2-7-13-and-2-6-19/31055)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 3:12am UTC](https://forum.ansible.com/t/new-ansible-releases-2-8-4-2-7-13-and-2-6-19/31055 "2019-08-16T03:12:20Z")

</div>

Hi all- we're happy to announce that the general releases of Ansible 2.8.4, 2.7.13, and 2.6.19 are now available! How do you get it?

---

## [Difficulty differencing list with integers vs list with strings.](https://forum.ansible.com/t/difficulty-differencing-list-with-integers-vs-list-with-strings/31053)

<div class="topic-metadata">

**Author:** [@Auralan](https://forum.ansible.com/u/Auralan)\
**Replies:** 4\
**Last updated:** [August 16, 2019, 2:07am UTC](https://forum.ansible.com/t/difficulty-differencing-list-with-integers-vs-list-with-strings/31053 "2019-08-16T02:07:52Z")

</div>

Hi everyone, I’ve been struggling to get the difference between 2 lists in Ansible. List 1 contains numbers as integers. List 2 contains numbers as strings. These obviously cannot be filtered with difference(). Does …

---

## [Using the magic variable groups](https://forum.ansible.com/t/using-the-magic-variable-groups/31009)

<div class="topic-metadata">

**Author:** [@Harrymosco](https://forum.ansible.com/u/Harrymosco)\
**Replies:** 4\
**Last updated:** [August 16, 2019, 12:20am UTC](https://forum.ansible.com/t/using-the-magic-variable-groups/31009 "2019-08-16T00:20:50Z")

</div>

Can I use a variable to insert inventory group when using groups; e.g. groups\[‘$groupname’\]?

---

## [ansible find.py seems to fail on NFS drives with certain mount options](https://forum.ansible.com/t/ansible-find-py-seems-to-fail-on-nfs-drives-with-certain-mount-options/31040)

<div class="topic-metadata">

**Author:** [@Larry\_Kyrala](https://forum.ansible.com/u/Larry_Kyrala)\
**Replies:** 5\
**Last updated:** [August 15, 2019, 8:15pm UTC](https://forum.ansible.com/t/ansible-find-py-seems-to-fail-on-nfs-drives-with-certain-mount-options/31040 "2019-08-15T20:15:31Z")

</div>

Hi, I opened an issue some time ago which was dismissed as a user issue and was directed here instead: I’ve discovered more information since reporting that issue. Similar issues have also been observed on Mac as well…

---

## [Loop until k8s (lookup/query) module returns a valid value](https://forum.ansible.com/t/loop-until-k8s-lookup-query-module-returns-a-valid-value/31050)

<div class="topic-metadata">

**Author:** [@Thms\_Hmm](https://forum.ansible.com/u/Thms_Hmm)\
**Replies:** 0\
**Last updated:** [August 15, 2019, 3:21pm UTC](https://forum.ansible.com/t/loop-until-k8s-lookup-query-module-returns-a-valid-value/31050 "2019-08-15T15:21:27Z")

</div>

Ansible Version: 2.8.1 Hi, I’m trying to get the status of a Kubernetes StatefulSet and wait till it has a specific value. The task looks like this: \` set\_fact: myVar: “{{ query(‘k8s’, host=‘myhost.local’, … kind=…

---

## [Json output](https://forum.ansible.com/t/json-output/31049)

<div class="topic-metadata">

**Author:** [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Replies:** 0\
**Last updated:** [August 15, 2019, 3:19pm UTC](https://forum.ansible.com/t/json-output/31049 "2019-08-15T15:19:49Z")

</div>

Hi Folks, I need your help here, how can i get all hostnames (marked) to print. when i try msg: “{{results.json.actions\[0\].system.hostname}}” and msg: “{{results.json.actions\[1\].system.hostname}}” it prints me the two h…

---

## [How to use Ansible with clients that have dynamic (DHCP) IPs?](https://forum.ansible.com/t/how-to-use-ansible-with-clients-that-have-dynamic-dhcp-ips/30885)

<div class="topic-metadata">

**Author:** [@Matt\_Fahrner](https://forum.ansible.com/u/Matt_Fahrner)\
**Replies:** 8\
**Last updated:** [August 15, 2019, 2:52pm UTC](https://forum.ansible.com/t/how-to-use-ansible-with-clients-that-have-dynamic-dhcp-ips/30885 "2019-08-15T14:52:48Z")

</div>

Since Ansible is clientless, if say you were trying to manage Windows or Mac laptops that didn’t have fixed IPs (eg: DHCP clients), how do you solve this scenario? Do you use Dynamic DNS (DDNS)? Have others solved this…

---

## [Ansible 2.8.1: Multiline debug not working with debug output filter](https://forum.ansible.com/t/ansible-2-8-1-multiline-debug-not-working-with-debug-output-filter/31048)

<div class="topic-metadata">

**Author:** [@Andrew\_Hodgson](https://forum.ansible.com/u/Andrew_Hodgson)\
**Replies:** 0\
**Last updated:** [August 15, 2019, 2:35pm UTC](https://forum.ansible.com/t/ansible-2-8-1-multiline-debug-not-working-with-debug-output-filter/31048 "2019-08-15T14:35:29Z")

</div>

Hi all, I am using Ansible 2.8.1 and want to create a multiline debug output at the end of a play run: https://docs.ansible.com/ansible/latest/modules/debug\_module.html Suggests this is possible, I am trying the follo…

---

## [Ansible creating a host on zabbix with playbook](https://forum.ansible.com/t/ansible-creating-a-host-on-zabbix-with-playbook/31046)

<div class="topic-metadata">

**Author:** [@Ari\_Prince](https://forum.ansible.com/u/Ari_Prince)\
**Replies:** 0\
**Last updated:** [August 15, 2019, 12:35pm UTC](https://forum.ansible.com/t/ansible-creating-a-host-on-zabbix-with-playbook/31046 "2019-08-15T12:35:49Z")

</div>

Hi guys, am testing the zabbix official playbook from ansible site. I've changed all the values with mine, but when run it I get "Failed to connect to Zabbix server: urllib2. URLError - Not Found" Any ideas how fix thi…

---

## [not able to change OU  of a computer  using win\_domain\_computer](https://forum.ansible.com/t/not-able-to-change-ou-of-a-computer-using-win-domain-computer/31044)

<div class="topic-metadata">

**Author:** [@vineesh\_ap](https://forum.ansible.com/u/vineesh_ap)\
**Replies:** 0\
**Last updated:** [August 15, 2019, 4:32am UTC](https://forum.ansible.com/t/not-able-to-change-ou-of-a-computer-using-win-domain-computer/31044 "2019-08-15T04:32:48Z")

</div>

I am trying to change OU for a computer using ansible. I am delegating this task to a server which has all the Powershell modules installed. while I run playbook getting below error. could anyone help to resolve this er…

---

## [best way to test for a condition and report it](https://forum.ansible.com/t/best-way-to-test-for-a-condition-and-report-it/31031)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 1\
**Last updated:** [August 15, 2019, 2:34am UTC](https://forum.ansible.com/t/best-way-to-test-for-a-condition-and-report-it/31031 "2019-08-15T02:34:47Z")

</div>

Hi, I have an ansible module that adds and removes servers from the load balancer. If I do: ansible localhost -m modulename -a ‘servername=foo inbalancer=present’ it adds the module to the load balancer and reports cha…

---

## ["censored": "the output has been hidden due to the fact that 'no\_log: true' was specified for this result](https://forum.ansible.com/t/censored-the-output-has-been-hidden-due-to-the-fact-that-no-log-true-was-specified-for-this-result/26975)

<div class="topic-metadata">

**Author:** [@Camilo\_Vieira](https://forum.ansible.com/u/Camilo_Vieira)\
**Replies:** 3\
**Last updated:** [August 15, 2019, 2:21am UTC](https://forum.ansible.com/t/censored-the-output-has-been-hidden-due-to-the-fact-that-no-log-true-was-specified-for-this-result/26975 "2019-08-15T02:21:39Z")

</div>

Hi, This is my environment: lsb\_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial python --version Python 2.7.12 python3 --version Pyt…

---

## [Need direction oh how to either Loop Variables or use Lists for Variables within Roles](https://forum.ansible.com/t/need-direction-oh-how-to-either-loop-variables-or-use-lists-for-variables-within-roles/31043)

<div class="topic-metadata">

**Author:** [@CaptainBrewing](https://forum.ansible.com/u/CaptainBrewing)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 9:51pm UTC](https://forum.ansible.com/t/need-direction-oh-how-to-either-loop-variables-or-use-lists-for-variables-within-roles/31043 "2019-08-14T21:51:33Z")

</div>

I have a role that configures a JSON file on a server. The JSON file needs know the following variables which are DIFFERENT for each server. This file is the later used to for a script that installs software \[root@ip-17…

---

## [Evaluate group\_vars directories and files recursively](https://forum.ansible.com/t/evaluate-group-vars-directories-and-files-recursively/30169)

<div class="topic-metadata">

**Author:** [@Uffi\_Schnuffi1](https://forum.ansible.com/u/Uffi_Schnuffi1)\
**Replies:** 6\
**Last updated:** [August 14, 2019, 7:17pm UTC](https://forum.ansible.com/t/evaluate-group-vars-directories-and-files-recursively/30169 "2019-08-14T19:17:16Z")

</div>

Hey, I remember that I once initially did this and naturally assumed it would work. I now again am at the point where I find this could be immensely useful. Let’s take the following inventory: \[all\] abc-group1-1.envA…

---

## [ansible 2.5 with\_items -\> loop conversion](https://forum.ansible.com/t/ansible-2-5-with-items-loop-conversion/31035)

<div class="topic-metadata">

**Author:** [@Jason3](https://forum.ansible.com/u/Jason3)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 1:09pm UTC](https://forum.ansible.com/t/ansible-2-5-with-items-loop-conversion/31035 "2019-08-14T13:09:10Z")

</div>

So I’ve been looking at the porting guide for 2.5 (i’m going from 2.4 to 2.7). I have this task that outputs a list of version numbers as strings and registers the output. I then loop through the registered variable usi…

---

## [\[AWX\] datetime.datetime (....)  is not JSON serializable](https://forum.ansible.com/t/awx-datetime-datetime-is-not-json-serializable/31039)

<div class="topic-metadata">

**Author:** [@Marcelo\_Dalla](https://forum.ansible.com/u/Marcelo_Dalla)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 12:21pm UTC](https://forum.ansible.com/t/awx-datetime-datetime-is-not-json-serializable/31039 "2019-08-14T12:21:54Z")

</div>

Hello. I´m trying to run an AWX template with reboot command in playbook but it´s not working. Playbook:

---

## [if win\_chocolatey can install Visual studio community?](https://forum.ansible.com/t/if-win-chocolatey-can-install-visual-studio-community/31038)

<div class="topic-metadata">

**Author:** [@user23](https://forum.ansible.com/u/user23)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 6:01am UTC](https://forum.ansible.com/t/if-win-chocolatey-can-install-visual-studio-community/31038 "2019-08-14T06:01:50Z")

</div>

when I’m installing vs community it always had errors ERROR: Running \["C:\\Users\\Administrator\\AppData\\Local\\Temp\\chocolatey\\visualstudio2017community\\15.9.11.0\\vs\_community.exe" --quiet --norestart --wait\] was not succ…

---

## [I have setup an ansible user that can login with a ssh-key  and sudo su - with no password but this appears not to work.](https://forum.ansible.com/t/i-have-setup-an-ansible-user-that-can-login-with-a-ssh-key-and-sudo-su-with-no-password-but-this-appears-not-to-work/31036)

<div class="topic-metadata">

**Author:** [@Steven\_Mething](https://forum.ansible.com/u/Steven_Mething)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 12:18am UTC](https://forum.ansible.com/t/i-have-setup-an-ansible-user-that-can-login-with-a-ssh-key-and-sudo-su-with-no-password-but-this-appears-not-to-work/31036 "2019-08-14T00:18:12Z")

</div>

How do I fault find such an issue? \[svc\_build@vuwunicorhsat01 ~\]$ ansible-playbook site.yml PLAY \[build\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Visit metrics to scenario guide](https://forum.ansible.com/t/visit-metrics-to-scenario-guide/30852)

<div class="topic-metadata">

**Author:** [@Gaurav\_Jain](https://forum.ansible.com/u/Gaurav_Jain)\
**Replies:** 2\
**Last updated:** [August 13, 2019, 9:02pm UTC](https://forum.ansible.com/t/visit-metrics-to-scenario-guide/30852 "2019-08-13T21:02:21Z")

</div>

Hello, I am from Oracle Cloud and we have recently published a scenario guide for our cloud. https://docs.ansible.com/ansible/latest/scenario\_guides/guide\_oracle.html can we track user metrics such as visits to this pa…

---

## [how to stuff running services into a host variable?](https://forum.ansible.com/t/how-to-stuff-running-services-into-a-host-variable/31024)

<div class="topic-metadata">

**Author:** [@Amos](https://forum.ansible.com/u/Amos)\
**Replies:** 6\
**Last updated:** [August 13, 2019, 7:28pm UTC](https://forum.ansible.com/t/how-to-stuff-running-services-into-a-host-variable/31024 "2019-08-13T19:28:38Z")

</div>

I can’t seem to get this syntax correct, and at least one reference I found produced more errors. I’d like to create a list of all running processes. name: populate running services into a list set\_fact: services\_run…

---

## [Why doesn't debug get me the output of these commands](https://forum.ansible.com/t/why-doesnt-debug-get-me-the-output-of-these-commands/31026)

<div class="topic-metadata">

**Author:** [@Pro\_Va](https://forum.ansible.com/u/Pro_Va)\
**Replies:** 5\
**Last updated:** [August 13, 2019, 5:29pm UTC](https://forum.ansible.com/t/why-doesnt-debug-get-me-the-output-of-these-commands/31026 "2019-08-13T17:29:28Z")

</div>

Hello All , I am trying to run a playbook that gets me the status of Postfix instances running on an email relay server. my playbook looks like this :

---

## [Issue parsing array from Ansible to Shell Script](https://forum.ansible.com/t/issue-parsing-array-from-ansible-to-shell-script/31000)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 4\
**Last updated:** [August 13, 2019, 10:53am UTC](https://forum.ansible.com/t/issue-parsing-array-from-ansible-to-shell-script/31000 "2019-08-13T10:53:47Z")

</div>

My requirement is pretty straight forward. I wish to pass & read a set of string as array from ansible which is constructed by iterating over using with\_items as show below. name: set\_fact set\_fact: fpath: set\_fac…

---

## [\[WARNING\]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: result.stdout.find("{{rhel\_version}}") != -1](https://forum.ansible.com/t/warning-conditional-statements-should-not-include-jinja2-templating-delimiters-such-as-or-found-result-stdout-find-rhel-version-1/31028)

<div class="topic-metadata">

**Author:** [@Nishant\_Srivastava](https://forum.ansible.com/u/Nishant_Srivastava)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 10:14am UTC](https://forum.ansible.com/t/warning-conditional-statements-should-not-include-jinja2-templating-delimiters-such-as-or-found-result-stdout-find-rhel-version-1/31028 "2019-08-13T10:14:28Z")

</div>

SUMMARY We are using the conditional check in our Ansible code where we are waiting for change to take effect before comparing in next block. Code reference below: - name: Set RHEL version to "{{rhel\_version}}" shell:…

---

## [aws\_s3 Module error File or Folder doesn't exist.. - Unable to download the S3 Module.](https://forum.ansible.com/t/aws-s3-module-error-file-or-folder-doesnt-exist-unable-to-download-the-s3-module/31029)

<div class="topic-metadata">

**Author:** [@Kalyan\_Alamuru](https://forum.ansible.com/u/Kalyan_Alamuru)\
**Replies:** 0\
**Last updated:** [August 13, 2019, 8:51am UTC](https://forum.ansible.com/t/aws-s3-module-error-file-or-folder-doesnt-exist-unable-to-download-the-s3-module/31029 "2019-08-13T08:51:52Z")

</div>

Hi. I’m using aws\_s3(upgraded recently early we were using s3 as we are on ansible 2.3), I’m getting error : raise self.\_exception\\nIOError: \[Errno 2\] No such file or directory: '/var/lib/awx/builds/consumer\_application…

---

## [Ansible with network equipment (Comware 5 switch)](https://forum.ansible.com/t/ansible-with-network-equipment-comware-5-switch/31005)

<div class="topic-metadata">

**Author:** [@Ugo\_Bellavance](https://forum.ansible.com/u/Ugo_Bellavance)\
**Replies:** 6\
**Last updated:** [August 13, 2019, 3:46am UTC](https://forum.ansible.com/t/ansible-with-network-equipment-comware-5-switch/31005 "2019-08-13T03:46:03Z")

</div>

Hi, I’m new to Ansible. I wanted to manage my network devices with Ansible so I did this: Found this documentation: http://patg.net/ansible,comware,switches/2014/10/16/ansible-comware/ Created an account on my swi…

---

## [Ansible and Azure](https://forum.ansible.com/t/ansible-and-azure/31006)

<div class="topic-metadata">

**Author:** [@Steve\_Townsend](https://forum.ansible.com/u/Steve_Townsend)\
**Replies:** 5\
**Last updated:** [August 12, 2019, 11:33pm UTC](https://forum.ansible.com/t/ansible-and-azure/31006 "2019-08-12T23:33:43Z")

</div>

Hi All, Thank you for taking a look at my post. I’m trying to figure out if there is a better way to have Ansible authenticate with Azure when running playbooks. Right now, I’ve got a service principle set in my .azure…

---

## [Run ansible as 2 totally speerate users on the same "master" server](https://forum.ansible.com/t/run-ansible-as-2-totally-speerate-users-on-the-same-master-server/31025)

<div class="topic-metadata">

**Author:** [@Steven\_Mething](https://forum.ansible.com/u/Steven_Mething)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 11:20pm UTC](https://forum.ansible.com/t/run-ansible-as-2-totally-speerate-users-on-the-same-master-server/31025 "2019-08-12T23:20:49Z")

</div>

Hi, I am a newbie trying to migrate from salt to ansible. I am trying to learn how to manage/use ansible but struggling. Salt has a “seperation model” I like and understand but ansible I cant figure out, I guess I am co…

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

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