# Ansible Project

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

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

**Page:** 114

---

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

---

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

---

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

---

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

---

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

---

## [New to Ansible - install Infrastructure](https://forum.ansible.com/t/new-to-ansible-install-infrastructure/33410)

<div class="topic-metadata">

**Author:** [@Daniel2](https://forum.ansible.com/u/Daniel2)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 10:12pm UTC](https://forum.ansible.com/t/new-to-ansible-install-infrastructure/33410 "2020-07-15T22:12:37Z")

</div>

I am new to Ansible, my company is doing a POC to move away from our current tool. I have an eval license for Ansible Tower, however, I am also going to run dual POC’s one with Tower and one with AWX. We will have the …

---

## [Ansible Registry workaround for CVE-2020-1350](https://forum.ansible.com/t/ansible-registry-workaround-for-cve-2020-1350/33408)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 0\
**Last updated:** [July 15, 2020, 7:16pm UTC](https://forum.ansible.com/t/ansible-registry-workaround-for-cve-2020-1350/33408 "2020-07-15T19:16:11Z")

</div>

If needed. This worked for me. DESCRIPTION Registry workaround for CVE-2020-1350 name: Registry workaround for CVE-2020-1350 hosts: dns\_servers gather\_facts: yes tasks: name: Apply Reg workaround win\_regedit: pa…

---

## [ansible - rhel8](https://forum.ansible.com/t/ansible-rhel8/33406)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 6:54pm UTC](https://forum.ansible.com/t/ansible-rhel8/33406 "2020-07-15T18:54:58Z")

</div>

Hey all, having an interesting issue with my latest rhel8 installation. Trying to install an rpm from a URL. Here’s my playbook:

---

## [How to retrieve arguments to ansible-playbook from ansible?](https://forum.ansible.com/t/how-to-retrieve-arguments-to-ansible-playbook-from-ansible/33404)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 4:15pm UTC](https://forum.ansible.com/t/how-to-retrieve-arguments-to-ansible-playbook-from-ansible/33404 "2020-07-15T16:15:07Z")

</div>

Hi As part of our deployment we are saving a file /etc/deployment\_status.json onto remote nodes: vars: deployment\_status: version: "{{ our\_version }}" date: "{{ ansible\_date\_time.iso8601 }}" …

---

## [how to determine group's id?](https://forum.ansible.com/t/how-to-determine-groups-id/33397)

<div class="topic-metadata">

**Author:** [@Laci](https://forum.ansible.com/u/Laci)\
**Replies:** 6\
**Last updated:** [July 15, 2020, 3:42pm UTC](https://forum.ansible.com/t/how-to-determine-groups-id/33397 "2020-07-15T15:42:03Z")

</div>

Do you guys have a good idea what is the best way to determine a group’s id them reuse that in a variable? For ex: % getent group monitor monitor:x:990:polkitd I need 990, then I have to add a line to /etc/fstab incl…

---

## [Ansible with Z Open Automation Utilities on z/OS](https://forum.ansible.com/t/ansible-with-z-open-automation-utilities-on-z-os/33392)

<div class="topic-metadata">

**Author:** [@Wladyslaw\_Borysow](https://forum.ansible.com/u/Wladyslaw_Borysow)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 10:58am UTC](https://forum.ansible.com/t/ansible-with-z-open-automation-utilities-on-z-os/33392 "2020-07-15T10:58:05Z")

</div>

Hello, I am testing Ansible 2.9.9 with z/OS as managed node. I also installed ZOA, but it seems ZOA commands from Ansible fail. “Normal” shell commands work well. Some output from my playbooks: this works fine:

---

## [python unable to install open\_excel module for ansible](https://forum.ansible.com/t/python-unable-to-install-open-excel-module-for-ansible/33401)

<div class="topic-metadata">

**Author:** [@stack\_flow](https://forum.ansible.com/u/stack_flow)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 10:04am UTC](https://forum.ansible.com/t/python-unable-to-install-open-excel-module-for-ansible/33401 "2020-07-15T10:04:52Z")

</div>

Hello, I need open\_excel module for ansible so that it can read multiple sheets in excel. I am getting following errors. how to fix it? I am using macbook os catalina. ljames@mac ~ % pip3 install open\_excel Collecting…

---

## [Need to add A record and PRT recored in Cisco switches](https://forum.ansible.com/t/need-to-add-a-record-and-prt-recored-in-cisco-switches/33386)

<div class="topic-metadata">

**Author:** [@Balayuvaraj\_Magudapa](https://forum.ansible.com/u/Balayuvaraj_Magudapa)\
**Replies:** 2\
**Last updated:** [July 15, 2020, 10:04am UTC](https://forum.ansible.com/t/need-to-add-a-record-and-prt-recored-in-cisco-switches/33386 "2020-07-15T10:04:49Z")

</div>

Hey, In my environment i need to add a record and prt record in cisco switches for 800 devices. Some share the docs for this project component Name : network module , cisco Thanks Balayuvaraj

---

## ['win\_partition' is unable to resize the hdd](https://forum.ansible.com/t/win-partition-is-unable-to-resize-the-hdd/33403)

<div class="topic-metadata">

**Author:** [@Udayendu\_kar](https://forum.ansible.com/u/Udayendu_kar)\
**Replies:** 3\
**Last updated:** [July 15, 2020, 9:42am UTC](https://forum.ansible.com/t/win-partition-is-unable-to-resize-the-hdd/33403 "2020-07-15T09:42:31Z")

</div>

Disk resize code: - name: Extend the C drive to the max space win\_partition: partition\_size: -1 partition\_number: 0 disk\_number: 0 Error message: TASK \[Extend the C drive to the max space\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [ansible check and diff mode not working](https://forum.ansible.com/t/ansible-check-and-diff-mode-not-working/33395)

<div class="topic-metadata">

**Author:** [@Shyam\_Sunder1](https://forum.ansible.com/u/Shyam_Sunder1)\
**Replies:** 4\
**Last updated:** [July 15, 2020, 8:40am UTC](https://forum.ansible.com/t/ansible-check-and-diff-mode-not-working/33395 "2020-07-15T08:40:46Z")

</div>

Hi, I was going thru this post (https://blog.networktocode.com/post/generating-diff-with-ansible/) where its mentioned that we can use check and diff mode together. I am trying to use that for gold config audit (audit p…

---

## [New Ansible releases 2.8.13](https://forum.ansible.com/t/new-ansible-releases-2-8-13/33400)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [July 14, 2020, 11:23pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-8-13/33400 "2020-07-14T23:23:22Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.8.13 are now available! How do you get it?

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

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