# Ansible Project

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

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

**Page:** 113

---

## [net\_put issue, please help :-)](https://forum.ansible.com/t/net-put-issue-please-help/33481)

<div class="topic-metadata">

**Author:** [@Alexander\_Dollny](https://forum.ansible.com/u/Alexander_Dollny)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 7:49am UTC](https://forum.ansible.com/t/net-put-issue-please-help/33481 "2020-07-24T07:49:02Z")

</div>

Hello all, I have a question about the net\_put Module. I use this to upload .ios images to my cisco devices. For that, I use my MacBook with this configuration ansible-playbook --version ansible-playbook 2.9.10 confi…

---

## [host file doesn't read variable for windows](https://forum.ansible.com/t/host-file-doesnt-read-variable-for-windows/33477)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 5:41am UTC](https://forum.ansible.com/t/host-file-doesnt-read-variable-for-windows/33477 "2020-07-24T05:41:50Z")

</div>

Hello, my host file for ansible is not reading additional variables. Following is my host file: \[ubuntu\] \[amazonlinux2\] \[database\] \[windows\] \[windows:vars\] ansible\_connection = winrm ansible\_ssh\_port = 5986 ansi…

---

## [Help on FortiGate 3000D Load balancer](https://forum.ansible.com/t/help-on-fortigate-3000d-load-balancer/33468)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 4:33am UTC](https://forum.ansible.com/t/help-on-fortigate-3000d-load-balancer/33468 "2020-07-24T04:33:02Z")

</div>

Hello Team, I want to execute stat system command on FortiGate 3000D Load balancer so could help me what connection method should i used./ how i can execute this command Thank in Advance Regards, GG

---

## [cp\_mgmt\_run\_script module](https://forum.ansible.com/t/cp-mgmt-run-script-module/33478)

<div class="topic-metadata">

**Author:** [@Simon\_Macpherson](https://forum.ansible.com/u/Simon_Macpherson)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 2:56am UTC](https://forum.ansible.com/t/cp-mgmt-run-script-module/33478 "2020-07-24T02:56:38Z")

</div>

Hello All, I have a playbook that is using the cp\_mgmt\_run\_script module. The following error is returned when the playbook is run. TASK \[run-script\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [setting up a new system with Ansible](https://forum.ansible.com/t/setting-up-a-new-system-with-ansible/33459)

<div class="topic-metadata">

**Author:** [@Ed\_Wong](https://forum.ansible.com/u/Ed_Wong)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 12:53am UTC](https://forum.ansible.com/t/setting-up-a-new-system-with-ansible/33459 "2020-07-24T00:53:23Z")

</div>

Hi, I’ve played with Ansible before but hadn’t really done much in terms of maintaining a whole infrastructure. I’m hoping to restart my foray into it in hopes to migrate off of the old way of standing up systems. I wis…

---

## [Can playbook tag input be placed in group\_var?](https://forum.ansible.com/t/can-playbook-tag-input-be-placed-in-group-var/33475)

<div class="topic-metadata">

**Author:** [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Replies:** 4\
**Last updated:** [July 23, 2020, 8:57pm UTC](https://forum.ansible.com/t/can-playbook-tag-input-be-placed-in-group-var/33475 "2020-07-23T20:57:47Z")

</div>

If I’m running a playbook that has tags, can I place the tag information be placed in the group\_vars? That way if I run a playbook against against an ansible group with children, the children could have different tags fo…

---

## [Playboox only runs the second time](https://forum.ansible.com/t/playboox-only-runs-the-second-time/33456)

<div class="topic-metadata">

**Author:** [@robert\_rottermann](https://forum.ansible.com/u/robert_rottermann)\
**Replies:** 1\
**Last updated:** [July 23, 2020, 6:05pm UTC](https://forum.ansible.com/t/playboox-only-runs-the-second-time/33456 "2020-07-23T18:05:18Z")

</div>

Hi friends in Ansible I have a playbook that sets up a PostgreSQL environment. One of the tasks sets up a db user. This task always fails the first time. The error is, that psycopg2 could not be loaded. If I run the …

---

## [How to verify col C is always double of Col D in ansible.](https://forum.ansible.com/t/how-to-verify-col-c-is-always-double-of-col-d-in-ansible/33452)

<div class="topic-metadata">

**Author:** [@Jenisha\_T](https://forum.ansible.com/u/Jenisha_T)\
**Replies:** 4\
**Last updated:** [July 23, 2020, 12:27pm UTC](https://forum.ansible.com/t/how-to-verify-col-c-is-always-double-of-col-d-in-ansible/33452 "2020-07-23T12:27:15Z")

</div>

Hi Team The output shown in image is stored in the register variable. How to verify the value in col C is double the value in col D and Col E value is always 2 and verify Col F is syncd

---

## [Need some help with netconf](https://forum.ansible.com/t/need-some-help-with-netconf/33467)

<div class="topic-metadata">

**Author:** [@David\_Kovacs](https://forum.ansible.com/u/David_Kovacs)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 8:29am UTC](https://forum.ansible.com/t/need-some-help-with-netconf/33467 "2020-07-23T08:29:46Z")

</div>

Hi all! I already asked this question on irc, but I’m pretty sure it’s just gonna get lost there without any real reply, so I’ll try here too. I’m trying to configure a node through netconf, passing xmls through ssh (w…

---

## [Ansible for Cisco switchport interface and 802.1x config](https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463)

<div class="topic-metadata">

**Author:** [@Waqas\_Gondal](https://forum.ansible.com/u/Waqas_Gondal)\
**Replies:** 1\
**Last updated:** [July 23, 2020, 6:22am UTC](https://forum.ansible.com/t/ansible-for-cisco-switchport-interface-and-802-1x-config/33463 "2020-07-23T06:22:23Z")

</div>

Hi I am working on putting Cisco ISE into enforcement mode on production Cisco switches for 802.1x wired authentication. Currently the access interfaces all have ‘authentication open’ which needs to be removed. I have…

---

## [Cisco smartport macros](https://forum.ansible.com/t/cisco-smartport-macros/33466)

<div class="topic-metadata">

**Author:** [@berti](https://forum.ansible.com/u/berti)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 6:20am UTC](https://forum.ansible.com/t/cisco-smartport-macros/33466 "2020-07-23T06:20:25Z")

</div>

Hi, I’ve tried to configure Cisco smartport macros via ansible mit ios\_config/cli\_config. Both failed with an timeout. It looks like this on the serial console: TN\_00sw03(config)#macro auto execute TEST1\_CISCO\_SWITCH…

---

## [sensible-cmdb Default Columns](https://forum.ansible.com/t/sensible-cmdb-default-columns/33464)

<div class="topic-metadata">

**Author:** [@Marlon\_Hester](https://forum.ansible.com/u/Marlon_Hester)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 6:46pm UTC](https://forum.ansible.com/t/sensible-cmdb-default-columns/33464 "2020-07-22T18:46:57Z")

</div>

Hello anyone and everyone, I’ve been using ansible-cmdb to generate an inventory webpage. I am trying to specify the “shown columns” that show by default. I am aware of the “-c” option however when I use it, it removes …

---

## [How to debug a community ansible module ?](https://forum.ansible.com/t/how-to-debug-a-community-ansible-module/33462)

<div class="topic-metadata">

**Author:** [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 1:57pm UTC](https://forum.ansible.com/t/how-to-debug-a-community-ansible-module/33462 "2020-07-22T13:57:23Z")

</div>

Hi, As the packages to be imported by a python file are prefixed as “ansible\_collections.”, how can we then locally debug an Ansible Module Example: https://github.com/ansible-collections/community.kubernetes/blob/main…

---

## [Need help for install java](https://forum.ansible.com/t/need-help-for-install-java/33457)

<div class="topic-metadata">

**Author:** [@Rajeeb\_sahoo](https://forum.ansible.com/u/Rajeeb_sahoo)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 1:38pm UTC](https://forum.ansible.com/t/need-help-for-install-java/33457 "2020-07-22T13:38:52Z")

</div>

Hello, I am new in Ansible. I need to install ORACLE JAVA 8 and that package is in .deb. (jdk1.8\_1.8.0231-1\_amd64.deb, jre1.8\_1.8.0211-1\_amd64.deb) can anyone help me out to write ansible code for install java with th…

---

## [working with file](https://forum.ansible.com/t/working-with-file/33451)

<div class="topic-metadata">

**Author:** [@nicolas\_stevenin](https://forum.ansible.com/u/nicolas_stevenin)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 12:56pm UTC](https://forum.ansible.com/t/working-with-file/33451 "2020-07-22T12:56:27Z")

</div>

Hi, I have a file like : \[1,2,3,4,5\] and I want to use loop for each number in this file on the playbook (I want to use the file, not write keys in the playbook). Could you help me please ? The playbook: (and i need t…

---

## [Retrieving a value from NetApp cluster, and assign it to a variable in Playbook](https://forum.ansible.com/t/retrieving-a-value-from-netapp-cluster-and-assign-it-to-a-variable-in-playbook/33461)

<div class="topic-metadata">

**Author:** [@vkky2k](https://forum.ansible.com/u/vkky2k)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 10:42am UTC](https://forum.ansible.com/t/retrieving-a-value-from-netapp-cluster-and-assign-it-to-a-variable-in-playbook/33461 "2020-07-22T10:42:48Z")

</div>

New to Ansible, and need your help. I wanted to use a playbook to retrieve a value about a volume upon the entered volume name. Then I assign the value to a variable in Ansible. Based on the value, conditionally determi…

---

## [Integrating Microsoft LAPS and ansible](https://forum.ansible.com/t/integrating-microsoft-laps-and-ansible/33359)

<div class="topic-metadata">

**Author:** [@harsh\_chawda](https://forum.ansible.com/u/harsh_chawda)\
**Replies:** 5\
**Last updated:** [July 22, 2020, 5:41am UTC](https://forum.ansible.com/t/integrating-microsoft-laps-and-ansible/33359 "2020-07-22T05:41:45Z")

</div>

Hello All, I am using ansible for patching windows machines in my domain. The process is working fine with patches being installed till date over Winrm and kerberos as authentication. But now they have decided to use L…

---

## [Ansible with JSON hosts file](https://forum.ansible.com/t/ansible-with-json-hosts-file/33458)

<div class="topic-metadata">

**Author:** [@Mahesh\_N](https://forum.ansible.com/u/Mahesh_N)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 10:02pm UTC](https://forum.ansible.com/t/ansible-with-json-hosts-file/33458 "2020-07-21T22:02:11Z")

</div>

Hi Team, I have the issue while running the Ansible playbook. There is no error with playbook, but the host.json will be in below format. the execution is happening only for one (Apple2), it is skipping (Apple1) even ru…

---

## [authenticity of host cant be established](https://forum.ansible.com/t/authenticity-of-host-cant-be-established/33435)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 18\
**Last updated:** [July 21, 2020, 9:26pm UTC](https://forum.ansible.com/t/authenticity-of-host-cant-be-established/33435 "2020-07-21T21:26:47Z")

</div>

I setup a few vagrant vms and I ccan ssh to them from vagrant ssh hostname but when i run ansible -m ping -i inventory app it keeps saying host key verification failed and prompts me and then when i accept it gives…

---

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

---

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

---

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

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

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