# Ansible Project

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

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

**Page:** 63

---

## [role take wrong collection fortigate](https://forum.ansible.com/t/role-take-wrong-collection-fortigate/35842)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 8:24am UTC](https://forum.ansible.com/t/role-take-wrong-collection-fortigate/35842 "2021-10-11T08:24:48Z")

</div>

I have to use a fortigate collection. if I run all in a playbook — - hosts: fortigates collections: - fortinet.fortios connection: httpapi vars: vdom: “root” ansible\_httpapi\_use\_ssl: yes ansible\_httpapi\_validate\_cert…

---

## [Identifier for host managed by ansible](https://forum.ansible.com/t/identifier-for-host-managed-by-ansible/35834)

<div class="topic-metadata">

**Author:** [@Simon\_Gao](https://forum.ansible.com/u/Simon_Gao)\
**Replies:** 1\
**Last updated:** [October 10, 2021, 12:19pm UTC](https://forum.ansible.com/t/identifier-for-host-managed-by-ansible/35834 "2021-10-10T12:19:37Z")

</div>

Hi, Is there known or common way to add an identifier on the hosts managed by ansible? Like indentifying os distribution in /etc/redhat-release or /etc/os-release etc, we would like to add some identifying mark on the …

---

## [sending partial hostvars content to hosts](https://forum.ansible.com/t/sending-partial-hostvars-content-to-hosts/35838)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 8:36pm UTC](https://forum.ansible.com/t/sending-partial-hostvars-content-to-hosts/35838 "2021-10-08T20:36:14Z")

</div>

Hi Team, we are using Ansible playbooks to build traffic tools and have around 500 hosts. We are heavily relying on templates to generate nftable rules for each hosts which basically contains ip rules (source, target, …

---

## [Bash Module - sourcing files in module\_utils](https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836)

<div class="topic-metadata">

**Author:** [@Jason\_Masipiquena](https://forum.ansible.com/u/Jason_Masipiquena)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 5:47pm UTC](https://forum.ansible.com/t/bash-module-sourcing-files-in-module-utils/35836 "2021-10-08T17:47:46Z")

</div>

I have a bash module in plugins/modules # my\_module.sh function do\_something1() { ... } source ../module\_utils/my\_other\_source.sh do\_something1 do\_something2 source file in plugins/module\_utils # my\_other\_source.sh…

---

## [Ansible IDE with syntax help](https://forum.ansible.com/t/ansible-ide-with-syntax-help/35829)

<div class="topic-metadata">

**Author:** [@simon\_clarke](https://forum.ansible.com/u/simon_clarke)\
**Replies:** 7\
**Last updated:** [October 8, 2021, 10:56am UTC](https://forum.ansible.com/t/ansible-ide-with-syntax-help/35829 "2021-10-08T10:56:18Z")

</div>

Hi, I wondered if someone could advise me what the best IDE to use for Ansible is? I want to be able to use a plugin for syntax/indentation help I am a begineer so appologies if this is a basic question and appreciate…

---

## [Exclude Server From Task](https://forum.ansible.com/t/exclude-server-from-task/35827)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 6:06am UTC](https://forum.ansible.com/t/exclude-server-from-task/35827 "2021-10-08T06:06:58Z")

</div>

Hi Team , I am running connection check on specific port on servers which i have comma seperated in extra var “Nodes” it is running fine but we have all server in inventory so server trying to check connection on itsel…

---

## [Unable to used the PBRUN command in Ansible](https://forum.ansible.com/t/unable-to-used-the-pbrun-command-in-ansible/35791)

<div class="topic-metadata">

**Author:** [@Shtrudhan\_Kumar](https://forum.ansible.com/u/Shtrudhan_Kumar)\
**Replies:** 6\
**Last updated:** [October 8, 2021, 6:02am UTC](https://forum.ansible.com/t/unable-to-used-the-pbrun-command-in-ansible/35791 "2021-10-08T06:02:40Z")

</div>

Hi Team, i am new in Ansible. i have installed the Ansible core and my environment used pbrun bash to give the privallage access to the server and want to use the same in Ansible playbook. Could you guide me how to used…

---

## [Removing DNS records using community.general.ipa\_dnsrecord](https://forum.ansible.com/t/removing-dns-records-using-community-general-ipa-dnsrecord/35802)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 5:45am UTC](https://forum.ansible.com/t/removing-dns-records-using-community-general-ipa-dnsrecord/35802 "2021-10-08T05:45:44Z")

</div>

Does anyone have any experience or knowledge of the community.general.ipa\_dnsrecord module? I’m trying to use it to remove DNS records, but when the play runs, all I get are green “ok” for each host, indicating that the …

---

## [Help figuring linter fail with conflicting action statements: hosts, tasks](https://forum.ansible.com/t/help-figuring-linter-fail-with-conflicting-action-statements-hosts-tasks/35835)

<div class="topic-metadata">

**Author:** [@Anders\_Goncalves\_da](https://forum.ansible.com/u/Anders_Goncalves_da)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 11:09pm UTC](https://forum.ansible.com/t/help-figuring-linter-fail-with-conflicting-action-statements-hosts-tasks/35835 "2021-10-07T23:09:15Z")

</div>

Hello. I haven’t been able to find a satisfactory solution to the problem I am having. The linter throws the following error: \[parser-error\] conflicting action statements: hosts, tasks I am running ansible-lint 5.2.0 u…

---

## [Random ssh error when fork above 2 even 1 - Unreachable hosts](https://forum.ansible.com/t/random-ssh-error-when-fork-above-2-even-1-unreachable-hosts/35832)

<div class="topic-metadata">

**Author:** [@Anil\_Dursun](https://forum.ansible.com/u/Anil_Dursun)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 6:31pm UTC](https://forum.ansible.com/t/random-ssh-error-when-fork-above-2-even-1-unreachable-hosts/35832 "2021-10-07T18:31:38Z")

</div>

Hello, I’m having random ssh fails with default fork=5. I realized it could be solved with fork=1 (not even 2 to be sure). I’m running playbooks that create dirs, copy a shell script (can take some time to complete) …

---

## [Trying to gather facts to write to local file on ansible server](https://forum.ansible.com/t/trying-to-gather-facts-to-write-to-local-file-on-ansible-server/35803)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 4\
**Last updated:** [October 7, 2021, 4:28pm UTC](https://forum.ansible.com/t/trying-to-gather-facts-to-write-to-local-file-on-ansible-server/35803 "2021-10-07T16:28:23Z")

</div>

Hi all! So this has worked at one point but is no longer. I’m trying to gather information on each of my rhel clients and write that information to one file on my answer server. Here is my playbook:

---

## [Cannot source /etc/lsb-release](https://forum.ansible.com/t/cannot-source-etc-lsb-release/35787)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 19\
**Last updated:** [October 7, 2021, 11:18am UTC](https://forum.ansible.com/t/cannot-source-etc-lsb-release/35787 "2021-10-07T11:18:02Z")

</div>

Hi, I’m banging my head trying to make this simple statement work: name: Get Ubuntu version definitions ansible.builtin.shell: source /etc/lsb-release But whatever I do I get this: TASK \[Get Ubuntu version definiti…

---

## [Combining several facts into one array](https://forum.ansible.com/t/combining-several-facts-into-one-array/35823)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 6\
**Last updated:** [October 6, 2021, 6:19pm UTC](https://forum.ansible.com/t/combining-several-facts-into-one-array/35823 "2021-10-06T18:19:03Z")

</div>

I’m querying our FreeIPA server for user information. What I need is there UID, GID, and Home directory. I can get those individually, but how can I set a fact that combines all of these items? Here’s the 3 separate fact…

---

## [Looking for an option to exclude particular playbook not to created as job\_template by tower-cli](https://forum.ansible.com/t/looking-for-an-option-to-exclude-particular-playbook-not-to-created-as-job-template-by-tower-cli/35828)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 2:46pm UTC](https://forum.ansible.com/t/looking-for-an-option-to-exclude-particular-playbook-not-to-created-as-job-template-by-tower-cli/35828 "2021-10-06T14:46:24Z")

</div>

Command # tower-cli job\_template create --name “projectname” --inventory “invfile” --ask-variables-on-launch true --playbook “reldir/name.ext” in these tower-cli command options, I want to exclude one specific name play…

---

## [ansible-test : ansible vault](https://forum.ansible.com/t/ansible-test-ansible-vault/35825)

<div class="topic-metadata">

**Author:** [@David\_Milaveau](https://forum.ansible.com/u/David_Milaveau)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 7:58am UTC](https://forum.ansible.com/t/ansible-test-ansible-vault/35825 "2021-10-06T07:58:43Z")

</div>

Hello, i use ansible-test to test my collection, it’s works but i have a question. I have some secrets in my scenarios, i use environment variables to use secret. I want to store my secrets in my vars file and use ansi…

---

## [Excluding items from debug output](https://forum.ansible.com/t/excluding-items-from-debug-output/35822)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 4:41am UTC](https://forum.ansible.com/t/excluding-items-from-debug-output/35822 "2021-10-06T04:41:18Z")

</div>

I have a fact that I’m printing out currently for debug purposes. It’s a list of user home folders. I’m trying to exclude certain folders, but not matter what I try, the folders I want to exclude are displayed. Here’s wh…

---

## [SQL query module error](https://forum.ansible.com/t/sql-query-module-error/35821)

<div class="topic-metadata">

**Author:** [@Raj](https://forum.ansible.com/u/Raj)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 2:44pm UTC](https://forum.ansible.com/t/sql-query-module-error/35821 "2021-10-05T14:44:03Z")

</div>

Hi All, While running sql query module it is good for 90 percentage server. I am getting 10 percent of servers below errors. I tried but I couldn’t find solution. Thanks in advance fatal: host\_abc: FAILED! =\> {“changed…

---

## [Iterate loop first then retries after iterate](https://forum.ansible.com/t/iterate-loop-first-then-retries-after-iterate/35820)

<div class="topic-metadata">

**Author:** [@Tiger\_Kaovilai](https://forum.ansible.com/u/Tiger_Kaovilai)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 2:35pm UTC](https://forum.ansible.com/t/iterate-loop-first-then-retries-after-iterate/35820 "2021-10-05T14:35:57Z")

</div>

Is there a way in a playbook to iterate through loop first and retry each that failed later? This would reduce amount of retires and delays needed when items in the loop do not need to be executed sequentially. name: …

---

## [Ansible performing poorly on scale setups](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814)

<div class="topic-metadata">

**Author:** [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 8:41am UTC](https://forum.ansible.com/t/ansible-performing-poorly-on-scale-setups/35814 "2021-10-05T08:41:35Z")

</div>

Hi, we are using Ansible playbooks to build traffic tools and have around 500 hosts. For e.g: We build a stream file to map the interfaces of all the hosts and then trigger traffic on respective hosts participating. T…

---

## [Module count for 2.9.0, 2.10.0, 2.11.0, 3.0.0, 4.0.0?](https://forum.ansible.com/t/module-count-for-2-9-0-2-10-0-2-11-0-3-0-0-4-0-0/35813)

<div class="topic-metadata">

**Author:** [@Pat\_Kelly](https://forum.ansible.com/u/Pat_Kelly)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 7:20pm UTC](https://forum.ansible.com/t/module-count-for-2-9-0-2-10-0-2-11-0-3-0-0-4-0-0/35813 "2021-10-04T19:20:45Z")

</div>

Where can I find a reasonable estimate of the number of modules (formerly together but now split into base/core and community) by initial release? (I realize the number keeps changing with ongoing updates.) I’m trying to…

---

## [WIN\_DNS\_Record](https://forum.ansible.com/t/win-dns-record/35738)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 1:56pm UTC](https://forum.ansible.com/t/win-dns-record/35738 "2021-10-04T13:56:41Z")

</div>

Alrighty So I’m behind the curve and am updating all of my collections and testing out playbooks here and there, and I noticed along the way that from between community.windows 1.1.0 to 1.6.0 that there has been a major…

---

## [Documentation in custom collection](https://forum.ansible.com/t/documentation-in-custom-collection/35792)

<div class="topic-metadata">

**Author:** [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Replies:** 5\
**Last updated:** [October 2, 2021, 5:10am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792 "2021-10-02T05:10:19Z")

</div>

Hi, I have created a new network module collection using resource module builder which has “docs” as one of the directories, when referenced cisco ios collection, can see some network module related “.rst” files that we…

---

## [when condition is not working](https://forum.ansible.com/t/when-condition-is-not-working/35810)

<div class="topic-metadata">

**Author:** [@subbamma\_natla](https://forum.ansible.com/u/subbamma_natla)\
**Replies:** 7\
**Last updated:** [October 1, 2021, 2:11pm UTC](https://forum.ansible.com/t/when-condition-is-not-working/35810 "2021-10-01T14:11:52Z")

</div>

can somebody explaine me why service sis not starting on mhost1: \[root@mhost1 ~\]# ps -ef | grep -v grep | grep httpd \[root@mhost1 ~\]#

---

## [expect module](https://forum.ansible.com/t/expect-module/35808)

<div class="topic-metadata">

**Author:** [@Hanumantha\_Reddy\_Bas](https://forum.ansible.com/u/Hanumantha_Reddy_Bas)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 2:13am UTC](https://forum.ansible.com/t/expect-module/35808 "2021-10-01T02:13:17Z")

</div>

Hello All, trying to understand expect functionality using below piece of code… I know I can do using becom\_user, but I would like to check expect module… since there is requirement where I need to use expect module for…

---

## [How to connect ansible on Linux to Windows server using Windows Management Instrumentation (WMI)](https://forum.ansible.com/t/how-to-connect-ansible-on-linux-to-windows-server-using-windows-management-instrumentation-wmi/35751)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 4\
**Last updated:** [September 30, 2021, 9:48pm UTC](https://forum.ansible.com/t/how-to-connect-ansible-on-linux-to-windows-server-using-windows-management-instrumentation-wmi/35751 "2021-09-30T21:48:15Z")

</div>

I have a shared Windows drive where a few files are kept. I have ansible running on Linux which need to connect to the Windows server and download those files. As per the organization policy WINRM is not allowed and th…

---

## [How to backup Cisco devices ?](https://forum.ansible.com/t/how-to-backup-cisco-devices/35784)

<div class="topic-metadata">

**Author:** [@Ibrahim\_Salah](https://forum.ansible.com/u/Ibrahim_Salah)\
**Replies:** 4\
**Last updated:** [September 30, 2021, 3:42pm UTC](https://forum.ansible.com/t/how-to-backup-cisco-devices/35784 "2021-09-30T15:42:34Z")

</div>

Hello, I really want to know if there is an easy way or documentation to backup Cisco routers or Vyos routers ? using Ansible machine ? Best Regards ,

---

## [Create Networks & Containers in infoblox with ansible](https://forum.ansible.com/t/create-networks-containers-in-infoblox-with-ansible/35805)

<div class="topic-metadata">

**Author:** [@Christophe\_Mace](https://forum.ansible.com/u/Christophe_Mace)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 11:31am UTC](https://forum.ansible.com/t/create-networks-containers-in-infoblox-with-ansible/35805 "2021-09-30T11:31:29Z")

</div>

Hello, I’m a newbie withe ansible. I created the following playbook: PlaybookCreateInfobloxNetworks.yml hosts: nios\_provider connection: local vars\_files: ./group\_vars/AuthentificationInfoblox.yml ./group\_vars/A…

---

## [package\_facts module](https://forum.ansible.com/t/package-facts-module/35798)

<div class="topic-metadata">

**Author:** [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Replies:** 6\
**Last updated:** [September 29, 2021, 10:35pm UTC](https://forum.ansible.com/t/package-facts-module/35798 "2021-09-29T22:35:30Z")

</div>

When using the package\_facts module, I would like to get a listing of the package name and the version. What I have so far is the below. name: Collect Packages installation status package\_facts: manager: “auto” reg…

---

## [kerberos: Bad HTTP response returned from server. Code 500](https://forum.ansible.com/t/kerberos-bad-http-response-returned-from-server-code-500/35800)

<div class="topic-metadata">

**Author:** [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Replies:** 0\
**Last updated:** [September 29, 2021, 1:24pm UTC](https://forum.ansible.com/t/kerberos-bad-http-response-returned-from-server-code-500/35800 "2021-09-29T13:24:35Z")

</div>

Good evening All I am facing a small issue, could you please let me out this works if i allow unencrypted is true : Set-Item -Path WSMan:\\localhost\\Service\\AllowUnencrypted -Value true Error: fatal: \[win-client-01.adc…

---

## [CSV to XML file converter playbook](https://forum.ansible.com/t/csv-to-xml-file-converter-playbook/35799)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 0\
**Last updated:** [September 29, 2021, 10:02am UTC](https://forum.ansible.com/t/csv-to-xml-file-converter-playbook/35799 "2021-09-29T10:02:17Z")

</div>

Hi all, Can we create a playbook for csv to xml converter. If anyone has any sample playbook that will be great help. Thanks & Regards, Akshay Jadhav

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

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