# Archives

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

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

**Page:** 185

---

## [Error Lookup Private Key in Post Request](https://forum.ansible.com/t/error-lookup-private-key-in-post-request/33455)

<div class="topic-metadata">

**Author:** [@Marcos\_Roberto\_de\_Ab](https://forum.ansible.com/u/Marcos_Roberto_de_Ab)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 4:04pm UTC](https://forum.ansible.com/t/error-lookup-private-key-in-post-request/33455 "2020-07-21T16:04:57Z")

</div>

I have an error in the post with the uri module. I need to create a credential for my Vagrant VM on Jenkins via api. In my tests, I realized that the error is in passing the value of the private key, in this line: pri…

---

## [Reduce duplicate/repeated steps in playbook](https://forum.ansible.com/t/reduce-duplicate-repeated-steps-in-playbook/33433)

<div class="topic-metadata">

**Author:** [@Pawan\_Kumar1](https://forum.ansible.com/u/Pawan_Kumar1)\
**Replies:** 4\
**Last updated:** [July 21, 2020, 3:17pm UTC](https://forum.ansible.com/t/reduce-duplicate-repeated-steps-in-playbook/33433 "2020-07-21T15:17:06Z")

</div>

Hi ,Team Require your help to reduce repeated steps , in the following playbook ,3 roles are common ,but 2 roles( permission.yml & reload\_base\_service.yml) variable value is different hosts: masters gather\_facts: yes …

---

## [win\_nssm error (windows 7): Parameter "Application" is only valid for services managed by NSSM!](https://forum.ansible.com/t/win-nssm-error-windows-7-parameter-application-is-only-valid-for-services-managed-by-nssm/33453)

<div class="topic-metadata">

**Author:** [@Deni\_Bertovic](https://forum.ansible.com/u/Deni_Bertovic)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 2:31pm UTC](https://forum.ansible.com/t/win-nssm-error-windows-7-parameter-application-is-only-valid-for-services-managed-by-nssm/33453 "2020-07-21T14:31:48Z")

</div>

Hey there, I hope that someone can shed some light on this since I’m not really a windows admin. I have the following task: name: Create service via nssm win\_nssm: name: ‘{{ filebeat\_service\_name }}’ application: …

---

## [How to create function call in ansible](https://forum.ansible.com/t/how-to-create-function-call-in-ansible/33450)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 1:26pm UTC](https://forum.ansible.com/t/how-to-create-function-call-in-ansible/33450 "2020-07-21T13:26:58Z")

</div>

Hi Team I want to execute ls -l command twice. ls -l # check if user in group sudo adduser user\_name new\_group # If not in group add user to group ls -l # Check if user added to group Is there a way I can write a she…

---

## [Help on uri module](https://forum.ansible.com/t/help-on-uri-module/33442)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 9\
**Last updated:** [July 21, 2020, 12:50pm UTC](https://forum.ansible.com/t/help-on-uri-module/33442 "2020-07-21T12:50:38Z")

</div>

Hello All, I would like to fetch some data using uri module, but little concern is that uri module should wait for 30 second to complete to load the page (page has same dynamic data which required 30 second to load (asp…

---

## [Issue in Playbook](https://forum.ansible.com/t/issue-in-playbook/33449)

<div class="topic-metadata">

**Author:** [@Siddhartha\_Gaurav](https://forum.ansible.com/u/Siddhartha_Gaurav)\
**Replies:** 1\
**Last updated:** [July 21, 2020, 9:13am UTC](https://forum.ansible.com/t/issue-in-playbook/33449 "2020-07-21T09:13:41Z")

</div>

Hi All, Could you please help me to sort out one issue in my playbook. Below is the requested query: I want some users input for my playbook…but I want to prompt the user when those parameters are not available in my .…

---

## [AWX & Cisco Tetration - Credentials & Inventory setup help](https://forum.ansible.com/t/awx-cisco-tetration-credentials-inventory-setup-help/33448)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 9:02am UTC](https://forum.ansible.com/t/awx-cisco-tetration-credentials-inventory-setup-help/33448 "2020-07-21T09:02:36Z")

</div>

All, I am looking into using Ansible to automate requirements in Cisco Tetration. There are modules available to use which are note available in general Ansible releases (yet). I have managed to get the modules & tasks …

---

## [New Ansible release 2.9.11](https://forum.ansible.com/t/new-ansible-release-2-9-11/33445)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 1:58am UTC](https://forum.ansible.com/t/new-ansible-release-2-9-11/33445 "2020-07-21T01:58:31Z")

</div>

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

---

## [New Ansible release 2.9.11](https://forum.ansible.com/t/new-ansible-release-2-9-11/33444)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 1:58am UTC](https://forum.ansible.com/t/new-ansible-release-2-9-11/33444 "2020-07-21T01:58:00Z")

</div>

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

---

## [How to capture unreachable host and authentication failure host](https://forum.ansible.com/t/how-to-capture-unreachable-host-and-authentication-failure-host/33440)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 6:22pm UTC](https://forum.ansible.com/t/how-to-capture-unreachable-host-and-authentication-failure-host/33440 "2020-07-20T18:22:22Z")

</div>

Hi Team, We are running a task against 1000 network devices, We get a few hosts failed and ansible skips those hosts in the next task. We are generating a report in the end , We need to have those unreachable hosts and…

---

## [Ansible AWX on Amazon Linux 2?](https://forum.ansible.com/t/ansible-awx-on-amazon-linux-2/33438)

<div class="topic-metadata">

**Author:** [@Daniel2](https://forum.ansible.com/u/Daniel2)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 5:32pm UTC](https://forum.ansible.com/t/ansible-awx-on-amazon-linux-2/33438 "2020-07-20T17:32:38Z")

</div>

I tried this question before with different Subject line last week with no success. This time I will try with a more direct subject line. I have a task to evaluate Ansible AWX to replace CHEF community edition. I spun u…

---

## [Need some assistance with Jina templates](https://forum.ansible.com/t/need-some-assistance-with-jina-templates/33439)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 5:13pm UTC](https://forum.ansible.com/t/need-some-assistance-with-jina-templates/33439 "2020-07-20T17:13:26Z")

</div>

https://stackoverflow.com/questions/63000499/unable-to-deploy-cloud-formation-via-ansible-as-jinja-templates Thanks and Regards Ameya

---

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

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

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