# Archives

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

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

**Page:** 104

---

## [How to use variable in path](https://forum.ansible.com/t/how-to-use-variable-in-path/35856)

<div class="topic-metadata">

**Author:** [@Sanjay\_Chakraborty](https://forum.ansible.com/u/Sanjay_Chakraborty)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 5:21pm UTC](https://forum.ansible.com/t/how-to-use-variable-in-path/35856 "2021-10-12T17:21:03Z")

</div>

I need to disable ipv6 on the network interface config file. The interface name is not the same for all environments. How I can achieve that ? playbook :

---

## [lineinfile - how to hit them all?](https://forum.ansible.com/t/lineinfile-how-to-hit-them-all/35846)

<div class="topic-metadata">

**Author:** [@Neil\_Young](https://forum.ansible.com/u/Neil_Young)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 2:28pm UTC](https://forum.ansible.com/t/lineinfile-how-to-hit-them-all/35846 "2021-10-12T14:28:53Z")

</div>

My /etc/ssh/sshd\_config after initial installation contains these two lines for some reasons: #PasswordAuthentication yes PasswordAuthentication yes I’m trying to change BOTH to “no” with this statement: name: SSH -…

---

## [lvol module - depency problem parted/gparted](https://forum.ansible.com/t/lvol-module-depency-problem-parted-gparted/35848)

<div class="topic-metadata">

**Author:** [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Replies:** 4\
**Last updated:** [October 12, 2021, 1:14pm UTC](https://forum.ansible.com/t/lvol-module-depency-problem-parted-gparted/35848 "2021-10-12T13:14:12Z")

</div>

I have a task to resize a logical volume on a rhel8 target with the lvol module. I get prompted ‘Failed to find required executable parted’ trying to install it with dnf module tells me ‘parted does not exist’ t…

---

## [fetching hostvar for use elsewhere](https://forum.ansible.com/t/fetching-hostvar-for-use-elsewhere/35853)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 12:37pm UTC](https://forum.ansible.com/t/fetching-hostvar-for-use-elsewhere/35853 "2021-10-12T12:37:37Z")

</div>

Hi We’re using our ansible playbook/vars/etc also for other things/scripts/ Sometimes we need those scripts to fetch a hostvar. Currently i’m using some kludgy construct like: ANSIBLE\_STDOUT\_CALLBACK=json ansible -m …

---

## [Use Ansible variable in AWS Cloudformation template](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35851)

<div class="topic-metadata">

**Author:** [@Tony1](https://forum.ansible.com/u/Tony1)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 12:04pm UTC](https://forum.ansible.com/t/use-ansible-variable-in-aws-cloudformation-template/35851 "2021-10-12T12:04:18Z")

</div>

Hi, I am trying to use an ansible variable in my AWS cloudformation template, see below red where I am trying to use the variable from Ansible. Parameters: Environment: Description: ‘Environment definition.’ Type: ‘…

---

## [Proxmox inventory](https://forum.ansible.com/t/proxmox-inventory/35849)

<div class="topic-metadata">

**Author:** [@NOUHAILA\_KERMOUSS](https://forum.ansible.com/u/NOUHAILA_KERMOUSS)\
**Replies:** 0\
**Last updated:** [October 12, 2021, 10:57am UTC](https://forum.ansible.com/t/proxmox-inventory/35849 "2021-10-12T10:57:08Z")

</div>

Hi everyone, we created an inventory role for proxmox and it has been tested on AWX for the time being it’s working perfectly, but my question is i want to filter groups in order to get only the hosts that contains speci…

---

## [Announcing Ansible-Trace: understand task duration and playbook critical paths](https://forum.ansible.com/t/announcing-ansible-trace-understand-task-duration-and-playbook-critical-paths/35839)

<div class="topic-metadata">

**Author:** [@Mark\_Hansen](https://forum.ansible.com/u/Mark_Hansen)\
**Replies:** 1\
**Last updated:** [October 11, 2021, 12:21pm UTC](https://forum.ansible.com/t/announcing-ansible-trace-understand-task-duration-and-playbook-critical-paths/35839 "2021-10-11T12:21:47Z")

</div>

Hi there, I have some slow Ansible playbooks, and I was wondering where the time goes. So I made a Callback Plugin that outputs Chrome’s “Trace Event Format” for visualising the parallel execution and critical path in h…

---

## [\[AWX 19.3.0\] Smart inventory based on inventory variable](https://forum.ansible.com/t/awx-19-3-0-smart-inventory-based-on-inventory-variable/35844)

<div class="topic-metadata">

**Author:** [@Divided\_by\_Zer0](https://forum.ansible.com/u/Divided_by_Zer0)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 11:42am UTC](https://forum.ansible.com/t/awx-19-3-0-smart-inventory-based-on-inventory-variable/35844 "2021-10-11T11:42:57Z")

</div>

Hello everyone, I created a dynamic inventory for azure and connected it to my test AWX instance. It creates some variables per host which contain azure information. I want to make a smart inventory to grab only say, Ce…

---

## [Rolling upgrades based on dynamic-attribute](https://forum.ansible.com/t/rolling-upgrades-based-on-dynamic-attribute/35843)

<div class="topic-metadata">

**Author:** [@Radu\_Stoenescu](https://forum.ansible.com/u/Radu_Stoenescu)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 8:49am UTC](https://forum.ansible.com/t/rolling-upgrades-based-on-dynamic-attribute/35843 "2021-10-11T08:49:32Z")

</div>

I’m trying to manage a set of hosts that make up a dynamic inventory with Ansible. Based on the contents of a database that I can query from Ansible code - these hosts get assigned numbers is a sequence 0,1,2 … I would…

---

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

---

## [Remote Execution of Ansible Job](https://forum.ansible.com/t/remote-execution-of-ansible-job/35841)

<div class="topic-metadata">

**Author:** [@Mathias\_Homann](https://forum.ansible.com/u/Mathias_Homann)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 7:23am UTC](https://forum.ansible.com/t/remote-execution-of-ansible-job/35841 "2021-10-11T07:23:44Z")

</div>

use the REST api to execute a play - I've done something like that from a PHP script, described here: https://www.tuxonline.tech/index.php/2021/05/07/from-0-to-kubernetes-building-an-app-portal/ Cheers MH

---

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

---

## [Ldap settings become uneditable on 19.2.2 using Operator 0.12.0](https://forum.ansible.com/t/ldap-settings-become-uneditable-on-19-2-2-using-operator-0-12-0/35816)

<div class="topic-metadata">

**Author:** [@John\_Dough](https://forum.ansible.com/u/John_Dough)\
**Replies:** 2\
**Last updated:** [October 8, 2021, 7:20pm UTC](https://forum.ansible.com/t/ldap-settings-become-uneditable-on-19-2-2-using-operator-0-12-0/35816 "2021-10-08T19:20:49Z")

</div>

Using the awx.yaml file in GitHub - kurokobo/awx-on-k3s: An example implementation of AWX on single node K3s using AWX Operator, with easy-to-use simplified configuration with ownership of data and passwords. and followi…

---

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

---

## [Ansible/Jinja2/Juniper](https://forum.ansible.com/t/ansible-jinja2-juniper/35837)

<div class="topic-metadata">

**Author:** [@Saurav\_Gupta](https://forum.ansible.com/u/Saurav_Gupta)\
**Replies:** 0\
**Last updated:** [October 8, 2021, 4:51am UTC](https://forum.ansible.com/t/ansible-jinja2-juniper/35837 "2021-10-08T04:51:06Z")

</div>

Hi everyone, I am very new to Ansible and automation. i ma trying to run below playbook and getting related error.

---

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

---

## [AWX 14.1.0 Provisioning callback 504 Gateway Timeout](https://forum.ansible.com/t/awx-14-1-0-provisioning-callback-504-gateway-timeout/35494)

<div class="topic-metadata">

**Author:** [@Elston\_Cawley](https://forum.ansible.com/u/Elston_Cawley)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 8:38pm UTC](https://forum.ansible.com/t/awx-14-1-0-provisioning-callback-504-gateway-timeout/35494 "2021-10-07T20:38:12Z")

</div>

Hi Guys. I am wondering if someone can help with this issue. I have a provisioning call back job that when initiated from a client, calls in to my awx servers and which in turn launches a job against that system. During…

---

## [Isolated nodes / Runner and external variables](https://forum.ansible.com/t/isolated-nodes-runner-and-external-variables/35833)

<div class="topic-metadata">

**Author:** [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 7:26pm UTC](https://forum.ansible.com/t/isolated-nodes-runner-and-external-variables/35833 "2021-10-07T19:26:56Z")

</div>

We want to use isolated nodes/runners for customer sites. And have a generic github repo for the global management jobs as a project. This works ahead multiple inventories. But how can I access customer specific variable…

---

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

---

## [Upgrade AWX 19.0.0 to 19.1.0](https://forum.ansible.com/t/upgrade-awx-19-0-0-to-19-1-0/35136)

<div class="topic-metadata">

**Author:** [@Andrea\_Lenarduzzi](https://forum.ansible.com/u/Andrea_Lenarduzzi)\
**Replies:** 7\
**Last updated:** [October 7, 2021, 11:45am UTC](https://forum.ansible.com/t/upgrade-awx-19-0-0-to-19-1-0/35136 "2021-10-07T11:45:30Z")

</div>

Hi I’m running awx 19.0.0 on k3s,docker Ubuntu 20.04 How can I upgarde to awx 19.1.0? Thank you regards

---

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

---

## [AWX dynamic inventory from AWS source fail](https://forum.ansible.com/t/awx-dynamic-inventory-from-aws-source-fail/35831)

<div class="topic-metadata">

**Author:** [@Naveen\_Kumar](https://forum.ansible.com/u/Naveen_Kumar)\
**Replies:** 0\
**Last updated:** [October 7, 2021, 7:11am UTC](https://forum.ansible.com/t/awx-dynamic-inventory-from-aws-source-fail/35831 "2021-10-07T07:11:57Z")

</div>

I need to get private address as hostname in inventory but only get public ip. using – vpc\_destination\_variable: private\_ip\_address as a variable I have tried many ways but not able to get private ip for public subnet. …

---

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

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

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