# Ansible Project

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

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

**Page:** 26

---

## [Pacemarker config](https://forum.ansible.com/t/pacemarker-config/13218)

<div class="topic-metadata">

**Author:** [@Eloy\_Coto\_Pereiro1](https://forum.ansible.com/u/Eloy_Coto_Pereiro1)\
**Replies:** 5\
**Last updated:** [March 3, 2023, 10:29am UTC](https://forum.ansible.com/t/pacemarker-config/13218 "2023-03-03T10:29:53Z")

</div>

Hi I want to setup pacemaker to setup my HA. I want to use ansible for all setup, but I don’t know how to use the resources of the live console. Pacemaker shell example: http://clusterlabs.org/wiki/Debian\_Lenny\_HowTo#…

---

## [PACEMAKER STOP](https://forum.ansible.com/t/pacemaker-stop/37721)

<div class="topic-metadata">

**Author:** [@Vijay\_atluri](https://forum.ansible.com/u/Vijay_atluri)\
**Replies:** 0\
**Last updated:** [March 3, 2023, 10:28am UTC](https://forum.ansible.com/t/pacemaker-stop/37721 "2023-03-03T10:28:04Z")

</div>

HI All Anyone have stopped pacemaker inactive node and do patch after that active mode has to move resources to another node and do the patching Regards VijayATluri

---

## [ansible variables for each os](https://forum.ansible.com/t/ansible-variables-for-each-os/37718)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 3\
**Last updated:** [March 2, 2023, 7:34pm UTC](https://forum.ansible.com/t/ansible-variables-for-each-os/37718 "2023-03-02T19:34:09Z")

</div>

In our playbooks, we used to load one OS-specific vars file for all our roles. Now we’d like to move the variables into each role. A method I had to do this before does not seem to be working. For our auditd role, in the…

---

## [please help on this](https://forum.ansible.com/t/please-help-on-this/37719)

<div class="topic-metadata">

**Author:** [@Himasree\_chinthala](https://forum.ansible.com/u/Himasree_chinthala)\
**Replies:** 1\
**Last updated:** [March 2, 2023, 5:34pm UTC](https://forum.ansible.com/t/please-help-on-this/37719 "2023-03-02T17:34:10Z")

</div>

---

## [How can I pass variables to command module's argv parameter in Ansible?](https://forum.ansible.com/t/how-can-i-pass-variables-to-command-modules-argv-parameter-in-ansible/37638)

<div class="topic-metadata">

**Author:** [@tariver\_16](https://forum.ansible.com/u/tariver_16)\
**Replies:** 4\
**Last updated:** [March 2, 2023, 4:22pm UTC](https://forum.ansible.com/t/how-can-i-pass-variables-to-command-modules-argv-parameter-in-ansible/37638 "2023-03-02T16:22:45Z")

</div>

Greeting! Asked it on stackoverflow, but didn’t get an answer, so I’m trying my luck here. A bit condensed version: I’m trying to write a role that creates a Redis cluster. At some point I must execute redis-cli binar…

---

## [Trying to use local\_backup](https://forum.ansible.com/t/trying-to-use-local-backup/37651)

<div class="topic-metadata">

**Author:** [@Alain](https://forum.ansible.com/u/Alain)\
**Replies:** 6\
**Last updated:** [March 1, 2023, 9:58pm UTC](https://forum.ansible.com/t/trying-to-use-local-backup/37651 "2023-03-01T21:58:40Z")

</div>

Found the following: https://github.com/bcoca/local\_backup and trying to use it and I’m still quite new at this and probably doing something very obvious wrong. First tried to use ansible-galaxy install and that failed …

---

## [Which method use 'wait\_for' to check open ports?](https://forum.ansible.com/t/which-method-use-wait-for-to-check-open-ports/37712)

<div class="topic-metadata">

**Author:** [@Leandro\_Montesoro](https://forum.ansible.com/u/Leandro_Montesoro)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 7:04pm UTC](https://forum.ansible.com/t/which-method-use-wait-for-to-check-open-ports/37712 "2023-03-01T19:04:58Z")

</div>

Hi ! i’m making a playbook like this: name: Check all port numbers are accessible from current host wait\_for: host: “{{ item\[0\] }}” port: “{{ item\[1\] }}” state: started delay: 0 timeout: 3 delegate\_to: localhos…

---

## [Unable to Connect to Remote Host but Connecting to Local Server](https://forum.ansible.com/t/unable-to-connect-to-remote-host-but-connecting-to-local-server/37711)

<div class="topic-metadata">

**Author:** [@Poseidon\_Olympian](https://forum.ansible.com/u/Poseidon_Olympian)\
**Replies:** 0\
**Last updated:** [March 1, 2023, 5:22pm UTC](https://forum.ansible.com/t/unable-to-connect-to-remote-host-but-connecting-to-local-server/37711 "2023-03-01T17:22:19Z")

</div>

Hello… Looking for help and support on my issue in connecting to remote host. Basically, I can able to ssh to remote host but when trying to run an ansible ad-hoc to test my connection, it couldn’t connect to the remot…

---

## [Template module doesn't work with any kind of loop](https://forum.ansible.com/t/template-module-doesnt-work-with-any-kind-of-loop/37705)

<div class="topic-metadata">

**Author:** [@Darkhan](https://forum.ansible.com/u/Darkhan)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 1:52pm UTC](https://forum.ansible.com/t/template-module-doesnt-work-with-any-kind-of-loop/37705 "2023-03-01T13:52:14Z")

</div>

Hello, I’m having a textbook task (taken straight out from the documentation examples) using template and with\_filetree: name: axis pipeline template: src: “{{ item.src }}” dest: “{{ logstash\_home }}/{{ item.path |…

---

## [Ansible 7.3.0 has been Released!](https://forum.ansible.com/t/ansible-7-3-0-has-been-released/37704)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 10:49am UTC](https://forum.ansible.com/t/ansible-7-3-0-has-been-released/37704 "2023-03-01T10:49:43Z")

</div>

Hello everyone, We're happy to announce that the Ansible 7.3.0 package has been released! Ansible 7.3.0 will include ansible-core 2.14 as well as a curated set of Ansible collections to provide a vast number of module…

---

## [split  with multiple columns in debug](https://forum.ansible.com/t/split-with-multiple-columns-in-debug/37701)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 10\
**Last updated:** [March 1, 2023, 6:38am UTC](https://forum.ansible.com/t/split-with-multiple-columns-in-debug/37701 "2023-03-01T06:38:11Z")

</div>

Hi, When I try to split the output of uptime to capture the "load average from the below line $ uptime 18:37:01 up 5 days, 4:37, 2 users, load average: 0.02, 0.05, 0.00 using the below playbook

---

## [New releases: ansible-core 2.14.3, ansible-core 2.13.8](https://forum.ansible.com/t/new-releases-ansible-core-2-14-3-ansible-core-2-13-8/37703)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 2:27pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-14-3-ansible-core-2-13-8/37703 "2023-02-28T14:27:05Z")

</div>

Hi all- we’re happy to announce the general release of: ansible-core 2.14.3 ansible-core 2.13.8 How to get it

---

## [Append 2 lines in visudo /etc/sudoers](https://forum.ansible.com/t/append-2-lines-in-visudo-etc-sudoers/37702)

<div class="topic-metadata">

**Author:** [@Hamim\_Ismail](https://forum.ansible.com/u/Hamim_Ismail)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 11:32pm UTC](https://forum.ansible.com/t/append-2-lines-in-visudo-etc-sudoers/37702 "2023-02-27T23:32:14Z")

</div>

Append 2 lines in /etc/sudoers Hi I have 2 lines starting with User\_Alias How do i make sure both lines get appended at the moment only the last line is being appended using this playbook tasks: name: add someuse…

---

## [updating grub via Ansible without presenting a dialog box](https://forum.ansible.com/t/updating-grub-via-ansible-without-presenting-a-dialog-box/37691)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 5\
**Last updated:** [February 27, 2023, 6:08pm UTC](https://forum.ansible.com/t/updating-grub-via-ansible-without-presenting-a-dialog-box/37691 "2023-02-27T18:08:24Z")

</div>

We are updating packages via Ansible, and when grub needs to be run after the update, it fails on Debian 11. When I run the update command manually, grub displays a dialog box asking the user to select the grub install d…

---

## [Access items in a sub-array](https://forum.ansible.com/t/access-items-in-a-sub-array/37693)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 17\
**Last updated:** [February 27, 2023, 3:26pm UTC](https://forum.ansible.com/t/access-items-in-a-sub-array/37693 "2023-02-27T15:26:53Z")

</div>

I am using the ovirt\_snapshot\_info module to obtain information about our VM snapshots. I register the output and it contains an array of values, 1 for each VM, then within that output, there’s an array of values called …

---

## [need help with if condition in jinja template](https://forum.ansible.com/t/need-help-with-if-condition-in-jinja-template/37698)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 6\
**Last updated:** [February 27, 2023, 11:50am UTC](https://forum.ansible.com/t/need-help-with-if-condition-in-jinja-template/37698 "2023-02-27T11:50:46Z")

</div>

I am trying to create a report of failed servers output. Here is my playbook

---

## [I get "failed to combine variables, expected dicts but got a 'AnsibleUnsafeText' and a 'dict' when I use folded or literal style](https://forum.ansible.com/t/i-get-failed-to-combine-variables-expected-dicts-but-got-a-ansibleunsafetext-and-a-dict-when-i-use-folded-or-literal-style/37687)

<div class="topic-metadata">

**Author:** [@Norbert\_Klamann](https://forum.ansible.com/u/Norbert_Klamann)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 12:56pm UTC](https://forum.ansible.com/t/i-get-failed-to-combine-variables-expected-dicts-but-got-a-ansibleunsafetext-and-a-dict-when-i-use-folded-or-literal-style/37687 "2023-02-22T12:56:42Z")

</div>

I want to copy some data from obne dictioneary to teh other and use a task like this, which works fine: - name: Create dg\_helper for usage information about data\_groups ansible.builtin.set\_fact: dg\_helper: "{{ dg\_helpe…

---

## [Ansible and hardcoded OpenSSH options](https://forum.ansible.com/t/ansible-and-hardcoded-openssh-options/37685)

<div class="topic-metadata">

**Author:** [@Dennis\_Collins](https://forum.ansible.com/u/Dennis_Collins)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 11:31pm UTC](https://forum.ansible.com/t/ansible-and-hardcoded-openssh-options/37685 "2023-02-21T23:31:01Z")

</div>

Hi, We’re using a proprietary SSH (ie. not OpenSSH…sigh…not my choice) and have run into an issue where there seems to be hardcoded OpenSSH options in Ansible? The SSH we’re using has differing naming for some of the S…

---

## [I want to show  the group variables, looping over all groups](https://forum.ansible.com/t/i-want-to-show-the-group-variables-looping-over-all-groups/37633)

<div class="topic-metadata">

**Author:** [@Norbert\_Klamann](https://forum.ansible.com/u/Norbert_Klamann)\
**Replies:** 8\
**Last updated:** [February 21, 2023, 4:27pm UTC](https://forum.ansible.com/t/i-want-to-show-the-group-variables-looping-over-all-groups/37633 "2023-02-21T16:27:02Z")

</div>

Hello all, i use Ansible to document and manage a small network of computers and other devices. So I bulit an inventory with several groups and hosts and defined a bunch of variables on each level to describe what i wan…

---

## [config management play for weblogic KIE server](https://forum.ansible.com/t/config-management-play-for-weblogic-kie-server/37673)

<div class="topic-metadata">

**Author:** [@Sohail\_Jaffer](https://forum.ansible.com/u/Sohail_Jaffer)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 4:29am UTC](https://forum.ansible.com/t/config-management-play-for-weblogic-kie-server/37673 "2023-02-21T04:29:28Z")

</div>

Hello, I am new to this group and ansible as well. I would like to skill up and be able to perform config management tasks using Ansible playbooks. The current problem I am working on is to be able to validate KIE serve…

---

## [need help in passing external variables using vars\_prompt](https://forum.ansible.com/t/need-help-in-passing-external-variables-using-vars-prompt/37679)

<div class="topic-metadata">

**Author:** [@Kenady\_Inampudi](https://forum.ansible.com/u/Kenady_Inampudi)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 8:23pm UTC](https://forum.ansible.com/t/need-help-in-passing-external-variables-using-vars-prompt/37679 "2023-02-20T20:23:11Z")

</div>

need help in passing external variables using vars\_prompt working example i have a list of servers in a vars\_file lparlist.yml i need to use vars\_prompt so i can provide the server name without editing the playbook eve…

---

## [problem quoting string](https://forum.ansible.com/t/problem-quoting-string/37677)

<div class="topic-metadata">

**Author:** [@Gregory\_Edigarov](https://forum.ansible.com/u/Gregory_Edigarov)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 4:56pm UTC](https://forum.ansible.com/t/problem-quoting-string/37677 "2023-02-20T16:56:59Z")

</div>

Hello, having something like this in my playbook vars: somevar: command: run: | “somecommand ‘somestring’ | awk ‘{print $2}’” tasks: name: output var to file copy: content: “{{ somevar | to\_nice\_yaml(sort\_key…

---

## [ansible-core autoupdate when installing awx version 21.5.0](https://forum.ansible.com/t/ansible-core-autoupdate-when-installing-awx-version-21-5-0/37675)

<div class="topic-metadata">

**Author:** [@jeromearellano](https://forum.ansible.com/u/jeromearellano)\
**Replies:** 0\
**Last updated:** [February 20, 2023, 12:03pm UTC](https://forum.ansible.com/t/ansible-core-autoupdate-when-installing-awx-version-21-5-0/37675 "2023-02-20T12:03:39Z")

</div>

Hello, i’m new to this group. I installed awx version 21.5.0 on RHEL release 8.6 using awx release 0.28.0 and awx-operator release 0.28.0. why the ansible-core is already updated to 2.14.2? Is it bound to the python ve…

---

## [Get the number of the disk offline](https://forum.ansible.com/t/get-the-number-of-the-disk-offline/37671)

<div class="topic-metadata">

**Author:** [@bilkam](https://forum.ansible.com/u/bilkam)\
**Replies:** 3\
**Last updated:** [February 18, 2023, 2:37pm UTC](https://forum.ansible.com/t/get-the-number-of-the-disk-offline/37671 "2023-02-18T14:37:16Z")

</div>

Hello, I need to get the number for the disk offline. My playbook is look like the below but I stuck with the json query and I need you help Thanks tasks: name: Get disk facts win\_disk\_facts: delegate\_to: “{{inv…

---

## [append to a list with variables of hosts that failed](https://forum.ansible.com/t/append-to-a-list-with-variables-of-hosts-that-failed/37672)

<div class="topic-metadata">

**Author:** [@Jay\_Kumar](https://forum.ansible.com/u/Jay_Kumar)\
**Replies:** 0\
**Last updated:** [February 18, 2023, 4:08am UTC](https://forum.ansible.com/t/append-to-a-list-with-variables-of-hosts-that-failed/37672 "2023-02-18T04:08:14Z")

</div>

Hello, I tried to initialize a list and attach it to local host. I want to add to the list across plays so that the hostname of each host that failed is added to list but it seems that this does not work new list = old …

---

## [modifying am IAM policy](https://forum.ansible.com/t/modifying-am-iam-policy/37644)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 21\
**Last updated:** [February 17, 2023, 5:34pm UTC](https://forum.ansible.com/t/modifying-am-iam-policy/37644 "2023-02-17T17:34:03Z")

</div>

I am trying to add or modify an iam policy with below. it ran but did not modify anything any idea?

---

## [invalid syntax on datastore check](https://forum.ansible.com/t/invalid-syntax-on-datastore-check/37665)

<div class="topic-metadata">

**Author:** [@bilkam](https://forum.ansible.com/u/bilkam)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 5:24am UTC](https://forum.ansible.com/t/invalid-syntax-on-datastore-check/37665 "2023-02-17T05:24:01Z")

</div>

I’m trying to create a playbook to verifie a space on the datastore before create a VM and I need the creation to faild if datastore usage \> 80 % My playbook is like the below and I am stuck on The conditional check inv…

---

## [Ansible playbook is unable to post a ndjson file using curl command](https://forum.ansible.com/t/ansible-playbook-is-unable-to-post-a-ndjson-file-using-curl-command/37667)

<div class="topic-metadata">

**Author:** [@Neelam\_Zanvar](https://forum.ansible.com/u/Neelam_Zanvar)\
**Replies:** 0\
**Last updated:** [February 17, 2023, 4:39am UTC](https://forum.ansible.com/t/ansible-playbook-is-unable-to-post-a-ndjson-file-using-curl-command/37667 "2023-02-17T04:39:53Z")

</div>

Hi, I have written a playbook which runs a bash script. The script imports a ndjson kibana dashboard that i had previously exported and saved. Here is the command curl -X POST “Reverse\_PROXY\_IP/kibana/api/saved\_objects…

---

## [How to use ec2 modules user\_data field?](https://forum.ansible.com/t/how-to-use-ec2-modules-user-data-field/15969)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 15\
**Last updated:** [February 15, 2023, 10:34pm UTC](https://forum.ansible.com/t/how-to-use-ec2-modules-user-data-field/15969 "2023-02-15T22:34:24Z")

</div>

(a) can you please show the line from your playbook where you are using the user data variable? (b) with the above, how are you determining the way it fails? I.e. what does failure look like?

---

## [local pugin in ansible EE](https://forum.ansible.com/t/local-pugin-in-ansible-ee/37662)

<div class="topic-metadata">

**Author:** [@OM\_Nachiketa](https://forum.ansible.com/u/OM_Nachiketa)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 5:54am UTC](https://forum.ansible.com/t/local-pugin-in-ansible-ee/37662 "2023-02-15T05:54:08Z")

</div>

Hi, I am trying to build an ansible execution environment image with ansible-builder and want to add a local inventory plugin that I have developed. But getting these errors. B / 2.87kB done #7 CANCELED

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

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