# Archives

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

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

**Page:** 266

---

## [How can i create smart inventory based on specific host variable?](https://forum.ansible.com/t/how-can-i-create-smart-inventory-based-on-specific-host-variable/31061)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 1:47pm UTC](https://forum.ansible.com/t/how-can-i-create-smart-inventory-based-on-specific-host-variable/31061 "2019-08-16T13:47:48Z")

</div>

I am trying to create a smart inventory based on one specific host variable called as name. I am trying to use the following using API but for some reason this doesn’t work: \` { “name”: “SMI\_CCA\_DIR\_WindowsServers\_10\_…

---

## [SSH to Oracle SBC](https://forum.ansible.com/t/ssh-to-oracle-sbc/31022)

<div class="topic-metadata">

**Author:** [@suriravi2002](https://forum.ansible.com/u/suriravi2002)\
**Replies:** 4\
**Last updated:** [August 16, 2019, 1:10pm UTC](https://forum.ansible.com/t/ssh-to-oracle-sbc/31022 "2019-08-16T13:10:08Z")

</div>

Hi All, I am a beginner to Ansible . I tried to connect to Oracle SBC using below command ash is failing .But it is successful to normal Linux remote hosts. Ansible 10.x.x.x -i inventory -u admin -m ping -k -vvv Outpu…

---

## [is it possible to create a schedule for a job template via a playbook/workflow?](https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 12:43pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032 "2019-08-16T12:43:42Z")

</div>

I currently have a job template/workflow that does the following create VM snapshot (vmware ESXi) patches a OS and all that stuff end Then 1 day later (thats the policy), the VM snapshot is removed by another job temp…

---

## [error when running a windows command using 'raw'](https://forum.ansible.com/t/error-when-running-a-windows-command-using-raw/31051)

<div class="topic-metadata">

**Author:** [@Chris\_Jackson](https://forum.ansible.com/u/Chris_Jackson)\
**Replies:** 8\
**Last updated:** [August 16, 2019, 11:42am UTC](https://forum.ansible.com/t/error-when-running-a-windows-command-using-raw/31051 "2019-08-16T11:42:31Z")

</div>

Hi all, Tearing my hair out trying to resolve this. I am getting the following:- “reason”: “failed at splitting arguments, either an unbalanced jinja2 block or quotes: C:\\‘Program Files’\\IBM\\SQLLIB\\BIN\\db2licm -a\\n{{ t…

---

## [Confused newbie - ERROR! the field 'hosts' is required but was not set](https://forum.ansible.com/t/confused-newbie-error-the-field-hosts-is-required-but-was-not-set/31054)

<div class="topic-metadata">

**Author:** [@GM1](https://forum.ansible.com/u/GM1)\
**Replies:** 3\
**Last updated:** [August 16, 2019, 11:33am UTC](https://forum.ansible.com/t/confused-newbie-error-the-field-hosts-is-required-but-was-not-set/31054 "2019-08-16T11:33:44Z")

</div>

Hi there - first I will post my response from when I run my playbook: ansible-playbook -vv glen.yml ansible-playbook 2.5.2 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/home/gmillard/.ans…

---

## [potential bug in eric\_eccli module,](https://forum.ansible.com/t/potential-bug-in-eric-eccli-module/31045)

<div class="topic-metadata">

**Author:** [@Lucas\_Moller](https://forum.ansible.com/u/Lucas_Moller)\
**Replies:** 7\
**Last updated:** [August 16, 2019, 11:16am UTC](https://forum.ansible.com/t/potential-bug-in-eric-eccli-module/31045 "2019-08-16T11:16:15Z")

</div>

Hi all, I am currently developing and checking out the eric\_eccli module which has been merged to the devel build not long ago. I am using the newest Ansible devel build I got now a failure of a task with, as it seems…

---

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

---

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

<div class="topic-metadata">

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

</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…

---

## [read multiarray with find module](https://forum.ansible.com/t/read-multiarray-with-find-module/31041)

<div class="topic-metadata">

**Author:** [@Enzo](https://forum.ansible.com/u/Enzo)\
**Replies:** 0\
**Last updated:** [August 14, 2019, 7:33pm UTC](https://forum.ansible.com/t/read-multiarray-with-find-module/31041 "2019-08-14T19:33:09Z")

</div>

Hello all, I’ve the follow case, have some directories that receive though list, by example: Directories: /path/to/dir1 /path/to/dir2 /path/to/dir3 My objective is use find module to get the files with .sh extension…

---

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

---

## [AWX Survey - Enforce Naming conventions on survey answers](https://forum.ansible.com/t/awx-survey-enforce-naming-conventions-on-survey-answers/31033)

<div class="topic-metadata">

**Author:** [@Jeremy\_Hobbs](https://forum.ansible.com/u/Jeremy_Hobbs)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 11:40am UTC](https://forum.ansible.com/t/awx-survey-enforce-naming-conventions-on-survey-answers/31033 "2019-08-14T11:40:38Z")

</div>

I have a playbook that creates a service on a load balancer. The users are allowed to run it and are prompted with a survey to respond with the variables that the playbook uses to build the service. I want to force the …

---

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

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

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