# Latest

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

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

**Page:** 380

---

## [How to check if a word is present in list](https://forum.ansible.com/t/how-to-check-if-a-word-is-present-in-list/32846)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 5:54am UTC](https://forum.ansible.com/t/how-to-check-if-a-word-is-present-in-list/32846 "2020-05-05T05:54:40Z")

</div>

My output from script execution is agent: { “stdout\_lines”: \[ The network is reachable. …Connected using winrm, executin COMPLETED at 4/5, The file is saved at D:\\ \] } I want to extract ‘COMPLETED’ from this list. I…

---

## [Ansible-Vault filter, module extensions](https://forum.ansible.com/t/ansible-vault-filter-module-extensions/32841)

<div class="topic-metadata">

**Author:** [@j1f0x](https://forum.ansible.com/u/j1f0x)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 2:21am UTC](https://forum.ansible.com/t/ansible-vault-filter-module-extensions/32841 "2020-05-05T02:21:20Z")

</div>

I’d like to have a possibilty to generate vault file from within ansible playbooks. The particular problem is to fetch sensitive data for remote host and store this data encrypted on the local host. on pypy ansible-vau…

---

## [Failed to send key...to virtual machine due to None](https://forum.ansible.com/t/failed-to-send-key-to-virtual-machine-due-to-none/32848)

<div class="topic-metadata">

**Author:** [@Landon\_Tom](https://forum.ansible.com/u/Landon_Tom)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 12:45am UTC](https://forum.ansible.com/t/failed-to-send-key-to-virtual-machine-due-to-none/32848 "2020-05-05T00:45:59Z")

</div>

Hi, I just started using Ansible and I’m having trouble sending key strokes to a VM to select options for an OS install. However, I get a “Failed to send key … to virtual machine due to None” when trying to send keys. I…

---

## [what is set\_when\_task\_skipped=false replacment in ansible 2.9?](https://forum.ansible.com/t/what-is-set-when-task-skipped-false-replacment-in-ansible-2-9/32844)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 9:18pm UTC](https://forum.ansible.com/t/what-is-set-when-task-skipped-false-replacment-in-ansible-2-9/32844 "2020-05-04T21:18:56Z")

</div>

i have old code which use set\_when\_task\_skipped=false in register now it is not supported any more I’m getting on : \` name: Find location register: login\_app set\_when\_task\_skipped=false when: result.stat.exists ==…

---

## [Ansible, RVM, Gem module - (RVM changes cd command to work but ansible gem module doesn't use shell to send commands) How does it work? Any complications?](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843)

<div class="topic-metadata">

**Author:** [@Dave2](https://forum.ansible.com/u/Dave2)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 5:33pm UTC](https://forum.ansible.com/t/ansible-rvm-gem-module-rvm-changes-cd-command-to-work-but-ansible-gem-module-doesnt-use-shell-to-send-commands-how-does-it-work-any-complications/32843 "2020-05-04T17:33:05Z")

</div>

How Ansible gem module works with RVM? I feel like it’s causing hidden errors behind and I’m not able to figure out why certain things don’t work right. Maybe this is the issue? I set up env\_vars with "environment: " w…

---

## [Need help in formatting register variable](https://forum.ansible.com/t/need-help-in-formatting-register-variable/32840)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 5:29pm UTC](https://forum.ansible.com/t/need-help-in-formatting-register-variable/32840 "2020-05-04T17:29:28Z")

</div>

I have used the below play to display the files and folders with some pattern - name: Display backup files shell: "du -h {{partition}} --time | sort -rh | grep -o -P '(.\*bk|.\*bkup|.\*bak|.\*backup|.\*logs' | sort -rh | …

---

## [ERROR! 'win\_package' is not a valid attribute for a Play (Ansible controller version is 2.9)](https://forum.ansible.com/t/error-win-package-is-not-a-valid-attribute-for-a-play-ansible-controller-version-is-2-9/32842)

<div class="topic-metadata">

**Author:** [@Amit\_Kumar](https://forum.ansible.com/u/Amit_Kumar)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 3:51pm UTC](https://forum.ansible.com/t/error-win-package-is-not-a-valid-attribute-for-a-play-ansible-controller-version-is-2-9/32842 "2020-05-04T15:51:57Z")

</div>

Hi , As i have created two simple playbook to remove file from window system and create the file on window system. But getting error while i execute the both playbook. (Ansible controller version is 2.9) remove\_file.…

---

## [ansible fact list](https://forum.ansible.com/t/ansible-fact-list/32836)

<div class="topic-metadata">

**Author:** [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 1:48pm UTC](https://forum.ansible.com/t/ansible-fact-list/32836 "2020-05-04T13:48:30Z")

</div>

Hi guys, I would like to check the facts list in ansible, it should be located in /etc/ansible/facts.d directory. But ansible directory under /etc is not exist. Is there different location that facts are located? Thank…

---

## [\_ec2\_instance\_facts.py botocore.exceptions.NoCredentialsError: Unable to locate credentials](https://forum.ansible.com/t/ec2-instance-facts-py-botocore-exceptions-nocredentialserror-unable-to-locate-credentials/32834)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 10:29am UTC](https://forum.ansible.com/t/ec2-instance-facts-py-botocore-exceptions-nocredentialserror-unable-to-locate-credentials/32834 "2020-05-04T10:29:33Z")

</div>

hello all im upgrading python from 2.7 to python 3.7 and now I’m getting error when using aws API on module : module: ec2\_instance\_facts - name: Get facts local\_action: module: ec2\_instance\_facts instance\_id…

---

## [MODULE FAILURE - TypeError: Value of unknown type: \<class 'requests.models.Response'\>, \<Response \[204\]\>](https://forum.ansible.com/t/module-failure-typeerror-value-of-unknown-type-class-requests-models-response-response-204/32826)

<div class="topic-metadata">

**Author:** [@Parasuram\_A\_Havoji](https://forum.ansible.com/u/Parasuram_A_Havoji)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 8:16am UTC](https://forum.ansible.com/t/module-failure-typeerror-value-of-unknown-type-class-requests-models-response-response-204/32826 "2020-05-04T08:16:55Z")

</div>

Hello, I am seeing module failure while using hashivault\_write module. Ansible - Python - OpenSSH version on Ansible Node ; root@35f3dfdc476f:playbooks # ansible --version ansible 2.9.2 config file = /root/galorndon-…

---

## [lxd connection: become/become\_user ignored](https://forum.ansible.com/t/lxd-connection-become-become-user-ignored/32839)

<div class="topic-metadata">

**Author:** [@Gaetan\_QUENTIN](https://forum.ansible.com/u/Gaetan_QUENTIN)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 7:26am UTC](https://forum.ansible.com/t/lxd-connection-become-become-user-ignored/32839 "2020-05-04T07:26:57Z")

</div>

Problem using lxd connection to provision lxd containers: become directive is ignored ISSUE TYPE Bug Report COMPONENT NAME command with become directive ANSIBLE VERSION ansible 2.9.7 config file = /home/myhome/.ansi…

---

## [ansible.vars.hostvars.HostVarsVars object' has no attribute 'sudo'](https://forum.ansible.com/t/ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-sudo/32829)

<div class="topic-metadata">

**Author:** [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 3:01am UTC](https://forum.ansible.com/t/ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-sudo/32829 "2020-05-04T03:01:44Z")

</div>

Hi, Could someone help me on subjected issue? I have an playbook which works well when running from command line but the same report an issue running from ansible tower. FAILED! =\> {“msg”: “The task includes an option …

---

## [Problem running Varibles in loop](https://forum.ansible.com/t/problem-running-varibles-in-loop/32838)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 12:36pm UTC](https://forum.ansible.com/t/problem-running-varibles-in-loop/32838 "2020-05-03T12:36:06Z")

</div>

Hi , I’m trying to create folders in loop under HDFS file system - From some reason, I can not run it in loop The playbook needs to run 2 commands hadoop fs -mkdir folder1 hadoop fs -mkdir folder2 Try #1 - - hosts:…

---

## [file src and state=absent together](https://forum.ansible.com/t/file-src-and-state-absent-together/32835)

<div class="topic-metadata">

**Author:** [@Marc\_Haber](https://forum.ansible.com/u/Marc_Haber)\
**Replies:** 2\
**Last updated:** [May 3, 2020, 9:21am UTC](https://forum.ansible.com/t/file-src-and-state-absent-together/32835 "2020-05-03T09:21:37Z")

</div>

Hi, I like constructs like the following: - name: MPM prefork file: src: "../../apache2/mods-available/{{ configfile }}" dest: "/etc/apache2{{ instance\_dashsuffix }}/mods-enabled/{{ configfile }}" sta…

---

## [MODULE FAILURE\\nSee stdout/stderr for the exact error on ansible version 2.9. python is 3.6](https://forum.ansible.com/t/module-failure-nsee-stdout-stderr-for-the-exact-error-on-ansible-version-2-9-python-is-3-6/32833)

<div class="topic-metadata">

**Author:** [@alok\_ranjan](https://forum.ansible.com/u/alok_ranjan)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 2:43pm UTC](https://forum.ansible.com/t/module-failure-nsee-stdout-stderr-for-the-exact-error-on-ansible-version-2-9-python-is-3-6/32833 "2020-05-02T14:43:39Z")

</div>

Hi, I am trying to develop my own custom ansible module . my env machine is centos and python version is 3.6. ansible version is 2.9.6 here is the playbook

---

## [Running roles for every host mentioned in inventory file](https://forum.ansible.com/t/running-roles-for-every-host-mentioned-in-inventory-file/32824)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 3\
**Last updated:** [May 2, 2020, 1:36pm UTC](https://forum.ansible.com/t/running-roles-for-every-host-mentioned-in-inventory-file/32824 "2020-05-02T13:36:27Z")

</div>

HI , I have my inventory file like below , where I am using the variables primaryNode, secondaryNode in the roles so that particular role will run on the host specified infront of ansible\_host values. Now, how can i pa…

---

## [charset parameter mssql\_db module](https://forum.ansible.com/t/charset-parameter-mssql-db-module/32813)

<div class="topic-metadata">

**Author:** [@Rafael\_Oliveira](https://forum.ansible.com/u/Rafael_Oliveira)\
**Replies:** 5\
**Last updated:** [May 2, 2020, 8:51am UTC](https://forum.ansible.com/t/charset-parameter-mssql-db-module/32813 "2020-05-02T08:51:53Z")

</div>

Hello everyone, If possible, how can I set the charset parameter to mssql\_db module? In python I can do something like that: conn = pymssql.connect(server, user, password, db\_name, charset=‘WINDOWS-1252’) KR, Rafael …

---

## [why does ansible code with put method is failing](https://forum.ansible.com/t/why-does-ansible-code-with-put-method-is-failing/32832)

<div class="topic-metadata">

**Author:** [@Raj\_M1](https://forum.ansible.com/u/Raj_M1)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 2:55am UTC](https://forum.ansible.com/t/why-does-ansible-code-with-put-method-is-failing/32832 "2020-05-02T02:55:36Z")

</div>

Hi list, I am using this ansible code using http method PUT, I have tried changing body to body: ‘{ “NewPassword” : “{{ Password }}” }’ but none of that is helping. I am getting error: “msg”: “Status code was 400 and no…

---

## [Ansible running script with wrong user](https://forum.ansible.com/t/ansible-running-script-with-wrong-user/32831)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 2:00am UTC](https://forum.ansible.com/t/ansible-running-script-with-wrong-user/32831 "2020-05-02T02:00:40Z")

</div>

become: yes + become\_method: sudo forces teh nginx\_user to use root to execute the tasks. Considering you are restarting a service, this seems correct.

---

## [New Ansible package name dual install hazard?](https://forum.ansible.com/t/new-ansible-package-name-dual-install-hazard/32830)

<div class="topic-metadata">

**Author:** [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 6:55pm UTC](https://forum.ansible.com/t/new-ansible-package-name-dual-install-hazard/32830 "2020-05-01T18:55:08Z")

</div>

The package name for Ansible changes with the current development version. It seems like pip lets me install Ansible 2.9 and 2.10 at the same time… bash-4.4# pip3 show ansible Name: ansible Version: 2.9.7 Summary: R…

---

## [variables in group\_vars and host\_vars do not load when using inventory directory](https://forum.ansible.com/t/variables-in-group-vars-and-host-vars-do-not-load-when-using-inventory-directory/28639)

<div class="topic-metadata">

**Author:** [@myprogramingnotes](https://forum.ansible.com/u/myprogramingnotes)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 2:27pm UTC](https://forum.ansible.com/t/variables-in-group-vars-and-host-vars-do-not-load-when-using-inventory-directory/28639 "2020-05-01T14:27:18Z")

</div>

A playbook I ran, returned this failure: TASK \[create-admin-user : Create the non-root user account\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: \[415.791.30.131\]: FAILED! =\> {"msg": "The task includes an option with an undefined variab…

---

## [How to get callback\_whitelist = profile\_tasks working with ansible-test](https://forum.ansible.com/t/how-to-get-callback-whitelist-profile-tasks-working-with-ansible-test/32828)

<div class="topic-metadata">

**Author:** [@Michael\_Ross](https://forum.ansible.com/u/Michael_Ross)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 10:22pm UTC](https://forum.ansible.com/t/how-to-get-callback-whitelist-profile-tasks-working-with-ansible-test/32828 "2020-04-30T22:22:39Z")

</div>

Hi, I currently work on developing Ansible modules for Oracle and I’ve been trying to log timing information when we run our module tests with ansible-test. This callback plugin looks like the right solution (https://d…

---

## [AWX-HA-Cluster with Redis](https://forum.ansible.com/t/awx-ha-cluster-with-redis/32825)

<div class="topic-metadata">

**Author:** [@Mehdi\_Hayani](https://forum.ansible.com/u/Mehdi_Hayani)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 6:34pm UTC](https://forum.ansible.com/t/awx-ha-cluster-with-redis/32825 "2020-04-30T18:34:57Z")

</div>

Hello, Any documentations please on building AWX HA Cluster with Redis ? Can’t see it no where :confused: I know it’s new (Redis has replaced RabbitMQ) but in case you have any tips or recommendations especially for th…

---

## [YAML inventory with group name "DEV" causes error](https://forum.ansible.com/t/yaml-inventory-with-group-name-dev-causes-error/32827)

<div class="topic-metadata">

**Author:** [@Tdev\_Feeds](https://forum.ansible.com/u/Tdev_Feeds)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 5:23pm UTC](https://forum.ansible.com/t/yaml-inventory-with-group-name-dev-causes-error/32827 "2020-04-30T17:23:48Z")

</div>

I’m converting our existing INI inventory to YAML. The reason is that I cannot seem to get variables like “{{ myvar }}” working within an INI inventory and have found no documentation that says INI format supports variab…

---

## [Job Event data not cleaned up by Management Job?](https://forum.ansible.com/t/job-event-data-not-cleaned-up-by-management-job/32815)

<div class="topic-metadata">

**Author:** [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 2:41pm UTC](https://forum.ansible.com/t/job-event-data-not-cleaned-up-by-management-job/32815 "2020-04-30T14:41:48Z")

</div>

Hi, we have a few small jobs that run very frequently (every 5-6 minutes) with about 10 tasks per run. We noticed that the main\_jobevents table is filling up very quickly (13gb in around three weeks of use) and the even…

---

## [How to integrate awx  with RedHat IDM(IPA)](https://forum.ansible.com/t/how-to-integrate-awx-with-redhat-idm-ipa/32797)

<div class="topic-metadata">

**Author:** [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Replies:** 5\
**Last updated:** [April 30, 2020, 12:58pm UTC](https://forum.ansible.com/t/how-to-integrate-awx-with-redhat-idm-ipa/32797 "2020-04-30T12:58:42Z")

</div>

Hi! Could some one share the details of how to integrate awx with RedHat IDM(IPA) for authentication. I read through the doc in the ansibler tower web page but it is not working as expected. Thanks & Regards, Selvam E…

---

## [Ansible Get vSphere Virtual Machines](https://forum.ansible.com/t/ansible-get-vsphere-virtual-machines/32634)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 5\
**Last updated:** [April 30, 2020, 10:56am UTC](https://forum.ansible.com/t/ansible-get-vsphere-virtual-machines/32634 "2020-04-30T10:56:18Z")

</div>

Hi All, Trying to Output only the Virtual Machine Name: but having issues with the Json output \`

---

## [\--alias on docker\_network](https://forum.ansible.com/t/alias-on-docker-network/32820)

<div class="topic-metadata">

**Author:** [@Javi\_Legido](https://forum.ansible.com/u/Javi_Legido)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 7:26am UTC](https://forum.ansible.com/t/alias-on-docker-network/32820 "2020-04-30T07:26:27Z")

</div>

Good morning. Is ‘–alias’ docker network parameter supported by docker\_network ansible module? Use case: I would like to “ansibilize” below native docker command: \` docker network connect --alias erp.example.com --al…

---

## [Need Ansible connection vars for Citric Netscalar Device](https://forum.ansible.com/t/need-ansible-connection-vars-for-citric-netscalar-device/32822)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 6:49am UTC](https://forum.ansible.com/t/need-ansible-connection-vars-for-citric-netscalar-device/32822 "2020-04-30T06:49:16Z")

</div>

Hello Team, I am trying to run some commands through cli\_command but through local action it is not connected when I put connection method as network\_cli I need ansible\_network\_os type but I did not find anywhere.Can yo…

---

## [Need ansible connection vars to citrix netscalar device](https://forum.ansible.com/t/need-ansible-connection-vars-to-citrix-netscalar-device/32821)

<div class="topic-metadata">

**Author:** [@Venu\_Devannagari](https://forum.ansible.com/u/Venu_Devannagari)\
**Replies:** 0\
**Last updated:** [April 30, 2020, 6:48am UTC](https://forum.ansible.com/t/need-ansible-connection-vars-to-citrix-netscalar-device/32821 "2020-04-30T06:48:37Z")

</div>

Hello Team, I am trying to run some commands through cli\_command but through local action it is not connected when I put connection method as network\_cli I need ansible\_network\_os type but I did not find anywhere.Can yo…

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

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