# Archives

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

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

**Page:** 205

---

## [ansible include\_role syntax problem](https://forum.ansible.com/t/ansible-include-role-syntax-problem/32861)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 10\
**Last updated:** [May 6, 2020, 11:42am UTC](https://forum.ansible.com/t/ansible-include-role-syntax-problem/32861 "2020-05-06T11:42:34Z")

</div>

I try to include\_rule but i keep getting errors on the wrong syntax this is my file structure : \` ├── roles │ └── utilities │ ├── defaults │ ├── files │ ├── handlers │ ├── meta │ ├── tasks │ │ └── d\_pack.yml │…

---

## [Target machines are unreachable](https://forum.ansible.com/t/target-machines-are-unreachable/32856)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 5:33am UTC](https://forum.ansible.com/t/target-machines-are-unreachable/32856 "2020-05-06T05:33:08Z")

</div>

my target machines are up. I don’t understand why I am running this error Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1 Pipelining is enabled. ESTABLISH WINRM CONNECTION FOR USE…

---

## [VAPT for AWX](https://forum.ansible.com/t/vapt-for-awx/32857)

<div class="topic-metadata">

**Author:** [@jesty\_sam](https://forum.ansible.com/u/jesty_sam)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 3:29am UTC](https://forum.ansible.com/t/vapt-for-awx/32857 "2020-05-06T03:29:25Z")

</div>

Hi Has anyone performed a VAPT (Vulnerability assessment and penetration testing) on AWX project. Also I have been trying to understand how AWX internal components function and couldn't find much information on them.can…

---

## [Simple - how to compare values from two or more hosts](https://forum.ansible.com/t/simple-how-to-compare-values-from-two-or-more-hosts/32855)

<div class="topic-metadata">

**Author:** [@John\_Fak](https://forum.ansible.com/u/John_Fak)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 9:38pm UTC](https://forum.ansible.com/t/simple-how-to-compare-values-from-two-or-more-hosts/32855 "2020-05-05T21:38:02Z")

</div>

Hi A few of us tried this and couldnt find a good/clean way to achieve. I want to call a shell script on say 10 hosts. It might return a single value - lets say version number of 10.2. I need a way to check all 10 hos…

---

## [Conditional Delegation to a host for synchronize module](https://forum.ansible.com/t/conditional-delegation-to-a-host-for-synchronize-module/32739)

<div class="topic-metadata">

**Author:** [@Raj\_V](https://forum.ansible.com/u/Raj_V)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 7:52pm UTC](https://forum.ansible.com/t/conditional-delegation-to-a-host-for-synchronize-module/32739 "2020-05-05T19:52:27Z")

</div>

Hello, I am a newbie to Ansible and trying to figure out how to synchronize between 3 hosts based on condition. Below are details: There are 3 nodes and based on which node is primary (I was able to get a custom fact s…

---

## [Help with Conditions](https://forum.ansible.com/t/help-with-conditions/32851)

<div class="topic-metadata">

**Author:** [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 1:39pm UTC](https://forum.ansible.com/t/help-with-conditions/32851 "2020-05-05T13:39:49Z")

</div>

Hi All, Just wondering is their a better way of doing the Following? \` \`

---

## [Getting a message on folders created in a loop](https://forum.ansible.com/t/getting-a-message-on-folders-created-in-a-loop/32849)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 1:29pm UTC](https://forum.ansible.com/t/getting-a-message-on-folders-created-in-a-loop/32849 "2020-05-05T13:29:57Z")

</div>

I’m running a playbook that should create 2 folders in a loop. If the folder is not existing, I wish to get a message that folders was created In my scenario, folder 1 already exists and only folder 2 was created. But t…

---

## [Getting : error while evaluating conditional (my\_result.stat.exists): 'bool object' has no attribute 'stat' while expcting to be dictionary](https://forum.ansible.com/t/getting-error-while-evaluating-conditional-my-result-stat-exists-bool-object-has-no-attribute-stat-while-expcting-to-be-dictionary/32850)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 10:42am UTC](https://forum.ansible.com/t/getting-error-while-evaluating-conditional-my-result-stat-exists-bool-object-has-no-attribute-stat-while-expcting-to-be-dictionary/32850 "2020-05-05T10:42:07Z")

</div>

i have this ansible simple playbook : where “/home/ec2-user/test1.txt” exists on disk \`

---

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

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

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