# Archives

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

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

**Page:** 11

---

## [how to append to a line keeping](https://forum.ansible.com/t/how-to-append-to-a-line-keeping/38562)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 11:18am UTC](https://forum.ansible.com/t/how-to-append-to-a-line-keeping/38562 "2023-11-08T11:18:19Z")

</div>

We want to only append string -javaagent:{{jmxexporter\_jar\_path}}={{zookeeper\_jmxexporter\_port}}:{{zookeeper\_jmxexporter\_config\_path}}"’ to a file override.conf if we have "Environment=“KAFKA\_JMX\_OPTS” in it else add …

---

## [Release announcement: Ansible Community Package 8.6.0](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-6-0/38574)

<div class="topic-metadata">

**Author:** [@cybette](https://forum.ansible.com/u/cybette)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 7:14pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-8-6-0/38574 "2023-11-07T19:14:17Z")

</div>

Hello everyone, We’re happy to announce the release of the Ansible 8.6.0 package! Ansible 8.6.0 includes ansible-core 2.15.6 as well as a curated set of Ansible collections that provide a vast number of modules and pl…

---

## [Enhancement idea - passing module args in loop](https://forum.ansible.com/t/enhancement-idea-passing-module-args-in-loop/38558)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 6:57pm UTC](https://forum.ansible.com/t/enhancement-idea-passing-module-args-in-loop/38558 "2023-11-07T18:57:29Z")

</div>

I find myself writing this over and over again: - template: src: "{{ item.src }}" dest: "{{ item.dest }}" owner: root group: radiusd mode: "0640" loop: - { src: clients.conf.j2, dest: /e…

---

## [dynamically set info in hosts file](https://forum.ansible.com/t/dynamically-set-info-in-hosts-file/38573)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 5:45pm UTC](https://forum.ansible.com/t/dynamically-set-info-in-hosts-file/38573 "2023-11-07T17:45:30Z")

</div>

I am trying to dynamically set my target host info, which I can only get to through a Bastion host. Here is what I am doing: name: Set up host lineinfile: path: “{{ inventory\_file }}” regexp: ‘^ansible\_ssh\_common\_ar…

---

## [Huawei "display interface" command in playbook](https://forum.ansible.com/t/huawei-display-interface-command-in-playbook/38572)

<div class="topic-metadata">

**Author:** [@Azadeh\_Amirhosseini](https://forum.ansible.com/u/Azadeh_Amirhosseini)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 8:30am UTC](https://forum.ansible.com/t/huawei-display-interface-command-in-playbook/38572 "2023-11-07T08:30:08Z")

</div>

Hi All, is there anybody here has the experience to execute “display interface” by a Huawei-ce (CloudEngine) device successfully? All “display” commands could be executed right except “display interface”. In the output…

---

## [New release: ansible-core 2.16.0 - All My Love](https://forum.ansible.com/t/new-release-ansible-core-2-16-0-all-my-love/38571)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 6:08pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-16-0-all-my-love/38571 "2023-11-06T18:08:42Z")

</div>

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

---

## [Issue escaping curly braces in template file](https://forum.ansible.com/t/issue-escaping-curly-braces-in-template-file/38569)

<div class="topic-metadata">

**Author:** [@matthew\_Higgs](https://forum.ansible.com/u/matthew_Higgs)\
**Replies:** 2\
**Last updated:** [November 6, 2023, 6:08pm UTC](https://forum.ansible.com/t/issue-escaping-curly-braces-in-template-file/38569 "2023-11-06T18:08:36Z")

</div>

Hey. I am having a bit of trouble trying to convert a jinja template because of the some issues escaping curly braces. Consider this simple jinja template that is currently returning an error: activationID: {{{ lookup(‘…

---

## [New release: ansible-core 2.15.6](https://forum.ansible.com/t/new-release-ansible-core-2-15-6/38570)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 5:59pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-15-6/38570 "2023-11-06T17:59:15Z")

</div>

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

---

## [How to make sure that values for all keys with same name are strings?](https://forum.ansible.com/t/how-to-make-sure-that-values-for-all-keys-with-same-name-are-strings/38566)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 11:20pm UTC](https://forum.ansible.com/t/how-to-make-sure-that-values-for-all-keys-with-same-name-are-strings/38566 "2023-11-03T23:20:42Z")

</div>

Hii, I have a structure like this:

---

## [fact disappears after regather](https://forum.ansible.com/t/fact-disappears-after-regather/38564)

<div class="topic-metadata">

**Author:** [@mdidomenico](https://forum.ansible.com/u/mdidomenico)\
**Replies:** 7\
**Last updated:** [November 3, 2023, 7:16pm UTC](https://forum.ansible.com/t/fact-disappears-after-regather/38564 "2023-11-03T19:16:47Z")

</div>

i have a local fact defined. when i first run ansible and it runs through the gather facts stage, the fact shows up just fine. i do some tasks and then regather the facts with setup - name: regather facts ansible…

---

## [AWX Microsoft Teams Webhook Notification Issue](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/38563)

<div class="topic-metadata">

**Author:** [@Alex5](https://forum.ansible.com/u/Alex5)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 11:55pm UTC](https://forum.ansible.com/t/awx-microsoft-teams-webhook-notification-issue/38563 "2023-11-02T23:55:57Z")

</div>

Hello, I’m experiencing an issue with sending notifications to a Microsoft Teams channel using a webhook connection. I received the following error: “Error sending webhook notification: 400.” Strangely, I can send messa…

---

## [Terraform support](https://forum.ansible.com/t/terraform-support/38565)

<div class="topic-metadata">

**Author:** [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 6:36pm UTC](https://forum.ansible.com/t/terraform-support/38565 "2023-11-02T18:36:46Z")

</div>

Hi folks,. I have terraform code to deploy VM on vsphere Environment can we do the deployment using ansible Terraform module,if can how will it work is it will work like as we deploy using terraform. If anyone use this…

---

## [blockinfile help](https://forum.ansible.com/t/blockinfile-help/38559)

<div class="topic-metadata">

**Author:** [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Replies:** 9\
**Last updated:** [November 1, 2023, 10:11pm UTC](https://forum.ansible.com/t/blockinfile-help/38559 "2023-11-01T22:11:33Z")

</div>

Hello, I am trying to update nginx file, I need to add 4 more lines before the ; I tried blockinfile, lineinfile, replace and sed but I am unable to get the required output ex: the below one is some part of my nginx fi…

---

## [get item from nested loop item](https://forum.ansible.com/t/get-item-from-nested-loop-item/38561)

<div class="topic-metadata">

**Author:** [@Vaishnave\_M](https://forum.ansible.com/u/Vaishnave_M)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 2:13pm UTC](https://forum.ansible.com/t/get-item-from-nested-loop-item/38561 "2023-11-01T14:13:28Z")

</div>

Hi, I have list of items in configuration files as variable hostenv: env: test Serverconf: Resource: mem: Interface: { name: eth0, address: 10.0.10.2} {eth1: …} Now, I would like to fetch and print the values fro…

---

## [Window Server Hardening CIS Benchmark](https://forum.ansible.com/t/window-server-hardening-cis-benchmark/38560)

<div class="topic-metadata">

**Author:** [@Shwe\_Linhtet](https://forum.ansible.com/u/Shwe_Linhtet)\
**Replies:** 0\
**Last updated:** [November 1, 2023, 6:30am UTC](https://forum.ansible.com/t/window-server-hardening-cis-benchmark/38560 "2023-11-01T06:30:21Z")

</div>

Hi community, I am seeking your advise on CIS hardening guide of window server 2012R2, 2016 or 2019 using ansible. I am relatively new in ansible knowledge and appreciate if you could share the code repo , sample codes …

---

## [how to set different backup directory than current while using backup=yes](https://forum.ansible.com/t/how-to-set-different-backup-directory-than-current-while-using-backup-yes/38553)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 8\
**Last updated:** [October 31, 2023, 4:00pm UTC](https://forum.ansible.com/t/how-to-set-different-backup-directory-than-current-while-using-backup-yes/38553 "2023-10-31T16:00:47Z")

</div>

how to set different backup directory than current while using backup=yes in ansible modules. It takes backup in current directory with .conf.date which actually valid for application .conf anything do we have any way …

---

## [using a variable from one task in the next](https://forum.ansible.com/t/using-a-variable-from-one-task-in-the-next/38455)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 8\
**Last updated:** [October 31, 2023, 3:02pm UTC](https://forum.ansible.com/t/using-a-variable-from-one-task-in-the-next/38455 "2023-10-31T15:02:24Z")

</div>

I have a 2 tasks in a playbook and from task1 I have a variable collected from the register output as below. name: Playbook to collect the actual hostname hosts: server1 become: yes tasks: name: collect the actu…

---

## [AWX Google Group is now readonly](https://forum.ansible.com/t/awx-google-group-is-now-readonly/38556)

<div class="topic-metadata">

**Author:** [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Replies:** 0\
**Last updated:** [October 31, 2023, 11:33am UTC](https://forum.ansible.com/t/awx-google-group-is-now-readonly/38556 "2023-10-31T11:33:52Z")

</div>

Hi folks, As previously announced, we’ve made this Google Group readonly. The wider Ansible Community is moving to The Ansible Community Forum As you may have heard, Ansible has a new forum\[1\] and we think that’s a be…

---

## [New release candidate: ansible-core 2.15.6rc1](https://forum.ansible.com/t/new-release-candidate-ansible-core-2-15-6rc1/38555)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 30, 2023, 8:10pm UTC](https://forum.ansible.com/t/new-release-candidate-ansible-core-2-15-6rc1/38555 "2023-10-30T20:10:19Z")

</div>

Hi all- we’re happy to announce the following release candidate: ansible-core 2.15.6rc1 How to get it

---

## [EDA and AWX](https://forum.ansible.com/t/eda-and-awx/38554)

<div class="topic-metadata">

**Author:** [@shrutebattlestargala](https://forum.ansible.com/u/shrutebattlestargala)\
**Replies:** 0\
**Last updated:** [October 30, 2023, 4:58pm UTC](https://forum.ansible.com/t/eda-and-awx/38554 "2023-10-30T16:58:43Z")

</div>

Hi AWX Team, I have been messing around with EDA for AAP (we run AWX) and so far finding a lot of value behind this product. Is there a similar google group we can post to for EDA specific questions? Thanks for your he…

---

## [ansible looking for templates in previous role](https://forum.ansible.com/t/ansible-looking-for-templates-in-previous-role/38548)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 9\
**Last updated:** [October 30, 2023, 4:33pm UTC](https://forum.ansible.com/t/ansible-looking-for-templates-in-previous-role/38548 "2023-10-30T16:33:47Z")

</div>

Good morning. I have two roles in a multi-role playbook, for yum, then chrony. The yum module works fine, but the chrony playbook fails on copying a template. The odd thing is, the error I get indicates ansible is lookin…

---

## [How to execute a script from AWX via EE on a remote server](https://forum.ansible.com/t/how-to-execute-a-script-from-awx-via-ee-on-a-remote-server/38552)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 12:39pm UTC](https://forum.ansible.com/t/how-to-execute-a-script-from-awx-via-ee-on-a-remote-server/38552 "2023-10-27T12:39:04Z")

</div>

All, Scenario/Current working solution I have created an Ansible playbook that makes a call to a python script on a specific host (script oly present on this host) This script works & does what it needs to on the spec…

---

## [Problem with awx cli](https://forum.ansible.com/t/problem-with-awx-cli/38501)

<div class="topic-metadata">

**Author:** [@dawid.grygrzc](https://forum.ansible.com/u/dawid.grygrzc)\
**Replies:** 7\
**Last updated:** [October 27, 2023, 9:01am UTC](https://forum.ansible.com/t/problem-with-awx-cli/38501 "2023-10-27T09:01:43Z")

</div>

Hi all, I have some problems with awxkit after some changes in the k8s configuration (SSL has been added). Previously it was working fine, but now it’s not. awx --conf.host https://my-domain.com --conf.username user–co…

---

## [apache removal](https://forum.ansible.com/t/apache-removal/38551)

<div class="topic-metadata">

**Author:** [@Thaddeus\_Fernandes](https://forum.ansible.com/u/Thaddeus_Fernandes)\
**Replies:** 3\
**Last updated:** [October 27, 2023, 5:56am UTC](https://forum.ansible.com/t/apache-removal/38551 "2023-10-27T05:56:23Z")

</div>

hi all, I am trying to uninstall apache from my inventory via playbook but nothing is happening. httpd still exists on the ubuntu servers. Im not sure what have I missed here.

---

## [Help](https://forum.ansible.com/t/help/38533)

<div class="topic-metadata">

**Author:** [@Thaddeus\_Fernandes](https://forum.ansible.com/u/Thaddeus_Fernandes)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 6:58pm UTC](https://forum.ansible.com/t/help/38533 "2023-10-26T18:58:43Z")

</div>

Hi all, I am new to sensible. Currently in system admin role. I am trying to learn sensible from youtube so just wrote a playbook but my indentation is wrong i guess although i used pycharm still getting indentation er…

---

## [Installing AWX using podman](https://forum.ansible.com/t/installing-awx-using-podman/38545)

<div class="topic-metadata">

**Author:** [@shane.do](https://forum.ansible.com/u/shane.do)\
**Replies:** 5\
**Last updated:** [October 26, 2023, 5:58pm UTC](https://forum.ansible.com/t/installing-awx-using-podman/38545 "2023-10-26T17:58:55Z")

</div>

Hi all - I’m wondering if anyone here has any guidance on using podman to run AWX, specifically some basic tutorial? I understand it’s not supported but have found some references online suggesting it can be done, wonde…

---

## [Updating /etc/hosts on automation-job pods?](https://forum.ansible.com/t/updating-etc-hosts-on-automation-job-pods/38550)

<div class="topic-metadata">

**Author:** [@russellcecalabp](https://forum.ansible.com/u/russellcecalabp)\
**Replies:** 0\
**Last updated:** [October 26, 2023, 5:58pm UTC](https://forum.ansible.com/t/updating-etc-hosts-on-automation-job-pods/38550 "2023-10-26T17:58:31Z")

</div>

Hi, I recently had to move my K3 cluster runnning AWX-operator. The IP addresses of my nodes had to change from 10.0.3.51, 10.0.3.52, 10.0.3.53 to 10.6.3.44, 10.6.3.45, 10.6.3.71. I updated hostAlias in my awx-demo dep…

---

## [Installing custom module](https://forum.ansible.com/t/installing-custom-module/38549)

<div class="topic-metadata">

**Author:** [@Simon\_Hryszko](https://forum.ansible.com/u/Simon_Hryszko)\
**Replies:** 0\
**Last updated:** [October 26, 2023, 4:22pm UTC](https://forum.ansible.com/t/installing-custom-module/38549 "2023-10-26T16:22:18Z")

</div>

Hello guys, I want to install with aur on arch something, to do that I found this module. I wanted to install this via ansible, so I wrote this task, but it cause error. I tried also use before module ansible\_galaxy\_in…

---

## [template for rows in a table](https://forum.ansible.com/t/template-for-rows-in-a-table/38537)

<div class="topic-metadata">

**Author:** [@Veera](https://forum.ansible.com/u/Veera)\
**Replies:** 5\
**Last updated:** [October 26, 2023, 4:58am UTC](https://forum.ansible.com/t/template-for-rows-in-a-table/38537 "2023-10-26T04:58:14Z")

</div>

Hi, Looking for a template which prints the list’s items in the horizontal (rows) of a tables. I have the below list and trying to print as a table. vars: color: green red yellow blue cities: toronto montreal mumb…

---

## [how to extract minor version from major version variable](https://forum.ansible.com/t/how-to-extract-minor-version-from-major-version-variable/38547)

<div class="topic-metadata">

**Author:** [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Replies:** 2\
**Last updated:** [October 25, 2023, 3:14pm UTC](https://forum.ansible.com/t/how-to-extract-minor-version-from-major-version-variable/38547 "2023-10-25T15:14:24Z")

</div>

Hello Team, What is the correct way to extract just major version from full version like , full version is : 2.8.3 need version: 2.8 do we use split or regex

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

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