# Latest

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

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

**Page:** 360

---

## [The following modules failed to execute: setup](https://forum.ansible.com/t/the-following-modules-failed-to-execute-setup/33437)

<div class="topic-metadata">

**Author:** [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 4:18pm UTC](https://forum.ansible.com/t/the-following-modules-failed-to-execute-setup/33437 "2020-07-20T16:18:18Z")

</div>

Hi Team, did anyone face this issue, it was working fine but today i am getting below error not sure what happened: fatal: \[localhost\]: FAILED! =\> { “ansible\_facts”: {}, “changed”: false, “failed\_modules”: { “setup…

---

## [Formatting registered output](https://forum.ansible.com/t/formatting-registered-output/33390)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 3:28pm UTC](https://forum.ansible.com/t/formatting-registered-output/33390 "2020-07-20T15:28:39Z")

</div>

All, hope someone can assist here as i seem to be going in circles & not getting anywhere fast. I am trying to map ACI VRFs to their associated parent tenant. The modules I am using with some basic Jinja2 filters allo…

---

## [hostname as a variable in 'groups' magic variable](https://forum.ansible.com/t/hostname-as-a-variable-in-groups-magic-variable/33434)

<div class="topic-metadata">

**Author:** [@David\_A](https://forum.ansible.com/u/David_A)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 10:26am UTC](https://forum.ansible.com/t/hostname-as-a-variable-in-groups-magic-variable/33434 "2020-07-20T10:26:45Z")

</div>

I’m trying to set a fact on the localhost (the ansible control node) about a remote hosts ip using magic variables. After searching online someone suggested to do the following name: set my\_fact\_var fact set\_fact: m…

---

## [Question regarding aws\_sts\_assumerole](https://forum.ansible.com/t/question-regarding-aws-sts-assumerole/33411)

<div class="topic-metadata">

**Author:** [@Des\_Sindatry](https://forum.ansible.com/u/Des_Sindatry)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 2:07am UTC](https://forum.ansible.com/t/question-regarding-aws-sts-assumerole/33411 "2020-07-20T02:07:22Z")

</div>

Hello, I am using ansible to launch ec2 instances . As part of that using ADFS SAML integration. Playbook

---

## [ImportError: No module named requests](https://forum.ansible.com/t/importerror-no-module-named-requests/33428)

<div class="topic-metadata">

**Author:** [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Replies:** 8\
**Last updated:** [July 19, 2020, 8:52pm UTC](https://forum.ansible.com/t/importerror-no-module-named-requests/33428 "2020-07-19T20:52:32Z")

</div>

Hi team, can someone please help me on this TASK \[vcenter : Gather all registered virtual machines\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Querying the inventory/hostvars from a plugin](https://forum.ansible.com/t/querying-the-inventory-hostvars-from-a-plugin/33432)

<div class="topic-metadata">

**Author:** [@Quentin\_Stafford-Fra](https://forum.ansible.com/u/Quentin_Stafford-Fra)\
**Replies:** 0\
**Last updated:** [July 19, 2020, 6:29pm UTC](https://forum.ansible.com/t/querying-the-inventory-hostvars-from-a-plugin/33432 "2020-07-19T18:29:46Z")

</div>

Hello All - I’m writing a local plugin where I’d like to be able to pass in the name of an Ansible host group and find out particular details about the relevant hosts - basically, I need to access groups and hostvars fr…

---

## [Bad coding practices in playbooks](https://forum.ansible.com/t/bad-coding-practices-in-playbooks/33431)

<div class="topic-metadata">

**Author:** [@Lucas\_Augusto\_Mota\_d](https://forum.ansible.com/u/Lucas_Augusto_Mota_d)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 5:28pm UTC](https://forum.ansible.com/t/bad-coding-practices-in-playbooks/33431 "2020-07-19T17:28:43Z")

</div>

Hello everyone! Recently, I’ve found an academic research about bad coding practices in infrastructure as code scripts which can lead to security issues. I found it interesting, but I notice that the practices the res…

---

## [\[VMWARE\]\[TAG\] Using vm tags to filter an vCenter inventory](https://forum.ansible.com/t/vmware-tag-using-vm-tags-to-filter-an-vcenter-inventory/33418)

<div class="topic-metadata">

**Author:** [@Vincent\_Burgun](https://forum.ansible.com/u/Vincent_Burgun)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 8:54am UTC](https://forum.ansible.com/t/vmware-tag-using-vm-tags-to-filter-an-vcenter-inventory/33418 "2020-07-19T08:54:43Z")

</div>

Hello, I’m sorry to ask this question again, as I’ve observed that the use of VM-related tags in vCenter has already been addressed several times. But I still don’t know if it’s possible with AWX to filter an inventory …

---

## [Ansible modules to pull info from checkpoint firewall](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564)

<div class="topic-metadata">

**Author:** [@Kethan\_R](https://forum.ansible.com/u/Kethan_R)\
**Replies:** 6\
**Last updated:** [July 19, 2020, 3:43am UTC](https://forum.ansible.com/t/ansible-modules-to-pull-info-from-checkpoint-firewall/30564 "2020-07-19T03:43:32Z")

</div>

Need some sample ansible playbooks to pull info from checkpoint firewall servers…

---

## [Help on snow\_find\_record module](https://forum.ansible.com/t/help-on-snow-find-record-module/33430)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 7:11pm UTC](https://forum.ansible.com/t/help-on-snow-find-record-module/33430 "2020-07-18T19:11:01Z")

</div>

Hello Team, I am trying to search records with order\_by “+created\_on” filter but output is not as excepted :frowning: snow\_record\_find: username: abc password: \*\* instance: abc table: service\_request order\_by: ‘+c…

---

## [Create a file with static line and addtional lines based on configuration](https://forum.ansible.com/t/create-a-file-with-static-line-and-addtional-lines-based-on-configuration/33429)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 1\
**Last updated:** [July 18, 2020, 6:07pm UTC](https://forum.ansible.com/t/create-a-file-with-static-line-and-addtional-lines-based-on-configuration/33429 "2020-07-18T18:07:58Z")

</div>

Hi, I’m trying to run the following tasks using LineInFile, but I’m facing few issues Tasks : In case the file exists it should be deleted and recreated First-line should be static Next lines based on confi…

---

## [lineinfile using insertafter](https://forum.ansible.com/t/lineinfile-using-insertafter/33426)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 3\
**Last updated:** [July 18, 2020, 5:48pm UTC](https://forum.ansible.com/t/lineinfile-using-insertafter/33426 "2020-07-18T17:48:29Z")

</div>

Hey all, Trying to insert a line to multiple instances in the same file. I tried insertafter but that only put in one spot. Here’s the code: name: add proxy to zabbix.repo if needed lineinfile: path: /etc/yum.repos…

---

## [ansible read\_csv help](https://forum.ansible.com/t/ansible-read-csv-help/33422)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 2:57am UTC](https://forum.ansible.com/t/ansible-read-csv-help/33422 "2020-07-18T02:57:48Z")

</div>

Hello, below is my csv and yml file: CVS: tenant,tenant\_description tn01,tn01 tn02,tn02 tn03,tn03 YML:

---

## [oracle java 8 in ubuntu](https://forum.ansible.com/t/oracle-java-8-in-ubuntu/33427)

<div class="topic-metadata">

**Author:** [@Rajeeb\_sahoo](https://forum.ansible.com/u/Rajeeb_sahoo)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 10:01pm UTC](https://forum.ansible.com/t/oracle-java-8-in-ubuntu/33427 "2020-07-17T22:01:54Z")

</div>

Hi I want to install oracle java 8 .deb version in ubuntu both(JDK and JRE) I don’t have a syntax error. Ansible ran complete fine. but in remote sever java did not install.

---

## [Playbook against multiple hosts in diffrent AD domains](https://forum.ansible.com/t/playbook-against-multiple-hosts-in-diffrent-ad-domains/33425)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 6:06pm UTC](https://forum.ansible.com/t/playbook-against-multiple-hosts-in-diffrent-ad-domains/33425 "2020-07-17T18:06:07Z")

</div>

Hey all, I have been using a playbook to update host groups. Once I’m done running it against one group of hosts, I change the hosts: entry and run it against the next set of hosts. All of my vars are saved in /etc/ansib…

---

## [environment proxy variable not working](https://forum.ansible.com/t/environment-proxy-variable-not-working/33424)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [July 17, 2020, 5:54pm UTC](https://forum.ansible.com/t/environment-proxy-variable-not-working/33424 "2020-07-17T17:54:39Z")

</div>

Hey all, I’m having an issue trying to get ansible to use my environment variable to pull through a proxy server. Running: ansible 2.9.10 Here’s my variable declarations:

---

## [Trying to install Feature update to Windows 10, version 1909 with Ansible](https://forum.ansible.com/t/trying-to-install-feature-update-to-windows-10-version-1909-with-ansible/33334)

<div class="topic-metadata">

**Author:** [@Alan\_Woods](https://forum.ansible.com/u/Alan_Woods)\
**Replies:** 9\
**Last updated:** [July 17, 2020, 2:23pm UTC](https://forum.ansible.com/t/trying-to-install-feature-update-to-windows-10-version-1909-with-ansible/33334 "2020-07-17T14:23:04Z")

</div>

Hello I am trying to install windows 10 feature updates or upgrades. The playbook I am using seems to download it but it will not install it. I still need to go into windows updates and hit retry then it installs. This i…

---

## [pywinrm, winrm, ansible - no go](https://forum.ansible.com/t/pywinrm-winrm-ansible-no-go/33351)

<div class="topic-metadata">

**Author:** [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Replies:** 8\
**Last updated:** [July 17, 2020, 12:15pm UTC](https://forum.ansible.com/t/pywinrm-winrm-ansible-no-go/33351 "2020-07-17T12:15:28Z")

</div>

I have a Redhat Linux server RH7.8 It is running AWX no problem and Ansible no problem as far as LINUX servers are concerned. I am trying to communicate to a w2k16 server via winrm from my linux server. The linux box …

---

## [Would like to update root passwords using user module, but have a different passwords for each VM and read those from a csv file](https://forum.ansible.com/t/would-like-to-update-root-passwords-using-user-module-but-have-a-different-passwords-for-each-vm-and-read-those-from-a-csv-file/33421)

<div class="topic-metadata">

**Author:** [@Tibor\_I](https://forum.ansible.com/u/Tibor_I)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 11:13pm UTC](https://forum.ansible.com/t/would-like-to-update-root-passwords-using-user-module-but-have-a-different-passwords-for-each-vm-and-read-those-from-a-csv-file/33421 "2020-07-16T23:13:10Z")

</div>

Hi Ansible gurus, I have a csv file with a list of hostnames and passwords eg: host1,password1 host2,password2 I can successfully read from that file using the read\_csv module. Now I’d like to use the “user” module…

---

## [Need to force inventory cache usage past timeout](https://forum.ansible.com/t/need-to-force-inventory-cache-usage-past-timeout/33398)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 2\
**Last updated:** [July 16, 2020, 10:52pm UTC](https://forum.ansible.com/t/need-to-force-inventory-cache-usage-past-timeout/33398 "2020-07-16T22:52:27Z")

</div>

I’m working on converting the old cobbler inventory script to an inventory plugin. See https://github.com/ansible-collections/community.general/pull/627 The behavior that I last had with my last version of the inventory…

---

## [Need a way to append to a line in a file using items](https://forum.ansible.com/t/need-a-way-to-append-to-a-line-in-a-file-using-items/33416)

<div class="topic-metadata">

**Author:** [@Michael\_Starling](https://forum.ansible.com/u/Michael_Starling)\
**Replies:** 1\
**Last updated:** [July 16, 2020, 9:00pm UTC](https://forum.ansible.com/t/need-a-way-to-append-to-a-line-in-a-file-using-items/33416 "2020-07-16T21:00:38Z")

</div>

Given a line in a file like this simple\_allow\_groups = access1,access2,access3 I want to be able to use a list of variables and append to that line. simple\_allow\_groups = access1,access2,access3,access4,access5,access6 …

---

## [Inventory Audit Log](https://forum.ansible.com/t/inventory-audit-log/33419)

<div class="topic-metadata">

**Author:** [@Abhishek\_R](https://forum.ansible.com/u/Abhishek_R)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 8:52pm UTC](https://forum.ansible.com/t/inventory-audit-log/33419 "2020-07-16T20:52:13Z")

</div>

Is there a way to track changes made to an AWX inventory, In order to maintain an audit trail of who-did-what with a critical inventory? There seems to be nothing on the UI or the REST api to track this. Any help is much…

---

## [Setting cloudformation time output as fact](https://forum.ansible.com/t/setting-cloudformation-time-output-as-fact/33417)

<div class="topic-metadata">

**Author:** [@takshika\_jambhule](https://forum.ansible.com/u/takshika_jambhule)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 6:14pm UTC](https://forum.ansible.com/t/setting-cloudformation-time-output-as-fact/33417 "2020-07-16T18:14:47Z")

</div>

I'm trying to set up Cloudformation time as fact as below - name: Set Cloud Formation launch time as fact set\_fact: elasped\_time: "{{ (ansible\_date\_time.iso8601\[:19\] | to\_datetime(date\_fmt) - ansible\_facts\['cloudf…

---

## [remove mysql](https://forum.ansible.com/t/remove-mysql/33405)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 7\
**Last updated:** [July 16, 2020, 3:51pm UTC](https://forum.ansible.com/t/remove-mysql/33405 "2020-07-16T15:51:05Z")

</div>

trying to remove mysql from a previous install

---

## [Windows update by ansible](https://forum.ansible.com/t/windows-update-by-ansible/33415)

<div class="topic-metadata">

**Author:** [@hit\_d3](https://forum.ansible.com/u/hit_d3)\
**Replies:** 1\
**Last updated:** [July 16, 2020, 1:02pm UTC](https://forum.ansible.com/t/windows-update-by-ansible/33415 "2020-07-16T13:02:46Z")

</div>

Hello I have one of goals to solve a problem by ansible. My organization have thousands of WIN10 PCs. However, we have NOT updated WIN10 PCs to recent update. We are asking people to do updating. However, we have alre…

---

## [Save output to text file](https://forum.ansible.com/t/save-output-to-text-file/33382)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 3\
**Last updated:** [July 16, 2020, 10:50am UTC](https://forum.ansible.com/t/save-output-to-text-file/33382 "2020-07-16T10:50:13Z")

</div>

Hello I have my playbook that will just execute df -h and ls -ll teh issue is that is not being able to save the output to a txt file

---

## [Unable to login in Ansible AWX](https://forum.ansible.com/t/unable-to-login-in-ansible-awx/27839)

<div class="topic-metadata">

**Author:** [@Prakash\_Sharma](https://forum.ansible.com/u/Prakash_Sharma)\
**Replies:** 1\
**Last updated:** [July 16, 2020, 8:28am UTC](https://forum.ansible.com/t/unable-to-login-in-ansible-awx/27839 "2020-07-16T08:28:37Z")

</div>

Hello , In our AWX test instance , lately I was playing around with changing port address where AWX \_WEB container instance starts. After that , I am not able to login in AWX web page. Also I noticed , earlier , I was…

---

## [Question regarding Jira module](https://forum.ansible.com/t/question-regarding-jira-module/33414)

<div class="topic-metadata">

**Author:** [@Karsten\_Klinger](https://forum.ansible.com/u/Karsten_Klinger)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 6:13am UTC](https://forum.ansible.com/t/question-regarding-jira-module/33414 "2020-07-16T06:13:04Z")

</div>

Hi folks, I have a customfield in Jira Project which is number type. If I enter the value for the customfield directly in the playbook without quotes, the whole thing works. But when I pass the value through a variable,…

---

## [Ansible-2.10.0 alpha3](https://forum.ansible.com/t/ansible-2-10-0-alpha3/33413)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 4:52am UTC](https://forum.ansible.com/t/ansible-2-10-0-alpha3/33413 "2020-07-16T04:52:26Z")

</div>

Hi all- For all those wanting to test the next version of Ansible, we're happy to announce that Ansible 2.10.0 alpha3 is now available on PyPI! Ansible 2.10.0a3 includes the ansible-base package (currently at version…

---

## [Question regarding aws\_sts\_assumerole](https://forum.ansible.com/t/question-regarding-aws-sts-assumerole/33412)

<div class="topic-metadata">

**Author:** [@Des\_Sindatry](https://forum.ansible.com/u/Des_Sindatry)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 2:47am UTC](https://forum.ansible.com/t/question-regarding-aws-sts-assumerole/33412 "2020-07-16T02:47:07Z")

</div>

Hello, I am using ansible to launch ec2 instances . As part of that using ADFS SAML integration. Playbook

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

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