# Ansible Project

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

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

**Page:** 48

---

## [Register variable in another task](https://forum.ansible.com/t/register-variable-in-another-task/36530)

<div class="topic-metadata">

**Author:** [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 8:00pm UTC](https://forum.ansible.com/t/register-variable-in-another-task/36530 "2022-04-13T20:00:02Z")

</div>

Hi, I hope you are well Im blocked to register variable to use in other task: Here is the tree structure: └── ansible-role ├── add\_user.yml ├── collections │ └── requirements.yml ├── Export-Test.csv ├── roles ├─…

---

## [Double back slash getting while declaring the path in windows servers.](https://forum.ansible.com/t/double-back-slash-getting-while-declaring-the-path-in-windows-servers/36529)

<div class="topic-metadata">

**Author:** [@Melvin\_Satheesan](https://forum.ansible.com/u/Melvin_Satheesan)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 6:04pm UTC](https://forum.ansible.com/t/double-back-slash-getting-while-declaring-the-path-in-windows-servers/36529 "2022-04-13T18:04:53Z")

</div>

Hello Friends, Good day. I am getting “C\\Temp\\MySoftware” in Ansible output while declaring the path in windows machines from ansible tower. Would you be so kind enough to help me. Getting op: “C\\Temp\\MySoftware” De…

---

## [Ansible 6.0.0a1 (including ansible-core 2.13.0b0) available for testing](https://forum.ansible.com/t/ansible-6-0-0a1-including-ansible-core-2-13-0b0-available-for-testing/36527)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 1:54pm UTC](https://forum.ansible.com/t/ansible-6-0-0a1-including-ansible-core-2-13-0b0-available-for-testing/36527 "2022-04-13T13:54:55Z")

</div>

Hi all, We're happy to announce that the first alpha version of Ansible 6.0 is now available for testing ! Ansible 6.0.0 will include ansible-core 2.13 as well as a curated set of Ansible collections to provide a vas…

---

## [tower playbook with key](https://forum.ansible.com/t/tower-playbook-with-key/36526)

<div class="topic-metadata">

**Author:** [@Jennifer\_LaVoie](https://forum.ansible.com/u/Jennifer_LaVoie)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 12:37pm UTC](https://forum.ansible.com/t/tower-playbook-with-key/36526 "2022-04-13T12:37:23Z")

</div>

Good morning Is it ok to ask Tower questions here too? I’m trying to run a playbook (uptime) in ansible tower. I can get it to work with my ssh key at the CLI, but no luck yet with tower. I think its not presenting my k…

---

## [Ansible remove accent](https://forum.ansible.com/t/ansible-remove-accent/36525)

<div class="topic-metadata">

**Author:** [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 4:08pm UTC](https://forum.ansible.com/t/ansible-remove-accent/36525 "2022-04-12T16:08:24Z")

</div>

Hello :slight\_smile: I have a playbook that generates the creation of an AD account, it works very well. Example: The account of Toto PIERRE with the email address toto.pierre@labo.lab is created correctly. The accou…

---

## [Ansible and Gns3 Connection](https://forum.ansible.com/t/ansible-and-gns3-connection/36524)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 10:29am UTC](https://forum.ansible.com/t/ansible-and-gns3-connection/36524 "2022-04-12T10:29:45Z")

</div>

Hi Guys, As we are trying to develop network lab so do we need to do any set up for ansible and Gns3 communication. If yes then please provide some links or documents which I can refer for connection. Thanks in Advance…

---

## [Help to résolve this exercices](https://forum.ansible.com/t/help-to-resolve-this-exercices/36521)

<div class="topic-metadata">

**Author:** [@Mohammed\_DAHBI](https://forum.ansible.com/u/Mohammed_DAHBI)\
**Replies:** 1\
**Last updated:** [April 11, 2022, 12:25pm UTC](https://forum.ansible.com/t/help-to-resolve-this-exercices/36521 "2022-04-11T12:25:22Z")

</div>

Hi , can somme body geive a help to resolve this please Exercise A (Ansible): Prerequisites: Create centos-stream-8 VM Run Zabbix server on that VM Create a ansible role to install consul server on that VM C…

---

## [Copy/Template modules hang on AIX -  sh.py](https://forum.ansible.com/t/copy-template-modules-hang-on-aix-sh-py/18708)

<div class="topic-metadata">

**Author:** [@Matthew\_Irish](https://forum.ansible.com/u/Matthew_Irish)\
**Replies:** 8\
**Last updated:** [April 8, 2022, 9:15am UTC](https://forum.ansible.com/t/copy-template-modules-hang-on-aix-sh-py/18708 "2022-04-08T09:15:56Z")

</div>

I’ve been having issues running Ansible against AIX; specifically with the copy/template modules. Periodically, copy/template plays will hang; either for a long time (read hours, as in leave it overnight and it might be…

---

## [change with\_dict with loop](https://forum.ansible.com/t/change-with-dict-with-loop/36517)

<div class="topic-metadata">

**Author:** [@nbctcp](https://forum.ansible.com/u/nbctcp)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 9:10am UTC](https://forum.ansible.com/t/change-with-dict-with-loop/36517 "2022-04-08T09:10:09Z")

</div>

INFO cat main.yml

---

## [Ansible 5.6.0 has been released](https://forum.ansible.com/t/ansible-5-6-0-has-been-released/36513)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 6\
**Last updated:** [April 7, 2022, 10:46pm UTC](https://forum.ansible.com/t/ansible-5-6-0-has-been-released/36513 "2022-04-07T22:46:03Z")

</div>

Hi all, We're happy to announce that the Ansible 5.6.0 package has been released ! Ansible 5.6.0 includes ansible-core 2.12 as well as a curated set of Ansible collections to provide a vast number of modules and plugi…

---

## [stdout return 2 values](https://forum.ansible.com/t/stdout-return-2-values/36512)

<div class="topic-metadata">

**Author:** [@shco](https://forum.ansible.com/u/shco)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 4:57am UTC](https://forum.ansible.com/t/stdout-return-2-values/36512 "2022-04-06T04:57:56Z")

</div>

Hi I try to get PID using Ansible. I try run the following lines but instead to get one value (PID) I get 2 values , 1 - PID and 2 - PID of Ansible process that running remotely. I get: “pid.stdout”: “2229\\n2456601” …

---

## [Servicenow behind proxy](https://forum.ansible.com/t/servicenow-behind-proxy/36486)

<div class="topic-metadata">

**Author:** [@Hamza\_Bouabdallah](https://forum.ansible.com/u/Hamza_Bouabdallah)\
**Replies:** 2\
**Last updated:** [April 5, 2022, 6:10am UTC](https://forum.ansible.com/t/servicenow-behind-proxy/36486 "2022-04-05T06:10:17Z")

</div>

Hello, Did anyone find a way to use servicenow itsm collection to manage a Servicenow instance located behind a proxy ? Thanks.

---

## [Module path error](https://forum.ansible.com/t/module-path-error/36508)

<div class="topic-metadata">

**Author:** [@Andrew\_McCartney](https://forum.ansible.com/u/Andrew_McCartney)\
**Replies:** 0\
**Last updated:** [April 5, 2022, 3:43am UTC](https://forum.ansible.com/t/module-path-error/36508 "2022-04-05T03:43:32Z")

</div>

Hello everyone, I have playbook i use to backup the configuration of a Cisco ASA. It was working great for some time but it now fails with the following message: TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [pyhotn. playbooks, gathering facts](https://forum.ansible.com/t/pyhotn-playbooks-gathering-facts/36505)

<div class="topic-metadata">

**Author:** [@Robert\_Kulyassa](https://forum.ansible.com/u/Robert_Kulyassa)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 8:19pm UTC](https://forum.ansible.com/t/pyhotn-playbooks-gathering-facts/36505 "2022-04-04T20:19:11Z")

</div>

Hi all, I run multiple playbooks from directory in a python script, like this: pbex = PlaybookExecutor(playbooks=glob.glob(os.path.join(‘playbooks’,‘\*’), recursive=False), inventory=inventory, variable\_manager=variable…

---

## [The error was: KeyError: 'optional'](https://forum.ansible.com/t/the-error-was-keyerror-optional/36506)

<div class="topic-metadata">

**Author:** [@Delmiro\_Campelo](https://forum.ansible.com/u/Delmiro_Campelo)\
**Replies:** 0\
**Last updated:** [April 4, 2022, 4:32pm UTC](https://forum.ansible.com/t/the-error-was-keyerror-optional/36506 "2022-04-04T16:32:51Z")

</div>

Hello everyone, I’m writing here to see if you can help me with this issue. I have been trying to solve it for a while without any luck. The problem is with section of variables in the vmanage\_device\_attachment module. T…

---

## [How to take a key matches value in fact](https://forum.ansible.com/t/how-to-take-a-key-matches-value-in-fact/36500)

<div class="topic-metadata">

**Author:** [@yuvaraj\_k](https://forum.ansible.com/u/yuvaraj_k)\
**Replies:** 1\
**Last updated:** [April 4, 2022, 10:07am UTC](https://forum.ansible.com/t/how-to-take-a-key-matches-value-in-fact/36500 "2022-04-04T10:07:49Z")

</div>

json: “ec2\_asg”: { “changed”: false, “failed”: false, “results”: \[ { “tags”: \[ { “key”: “peer\_discovery\_backend”, “propagate\_at\_launch”: true, “resource\_id”: “AnsibleASG”, “resource\_type”: “auto-scaling-group”…

---

## [Microsoft Systemcenter Orchestrator for launching Ansible playbook](https://forum.ansible.com/t/microsoft-systemcenter-orchestrator-for-launching-ansible-playbook/36504)

<div class="topic-metadata">

**Author:** [@Julien\_Deloubes](https://forum.ansible.com/u/Julien_Deloubes)\
**Replies:** 0\
**Last updated:** [April 4, 2022, 9:54am UTC](https://forum.ansible.com/t/microsoft-systemcenter-orchestrator-for-launching-ansible-playbook/36504 "2022-04-04T09:54:39Z")

</div>

Hello, in my company we used MS systemcenter Orchestrator as an orchestrator (most of the servers are Windows based). As we have more and more Linux servers, i used Ansible to deploy configuration, etc … Question is: …

---

## [How to get if key ==matches to get value, Please help on this.](https://forum.ansible.com/t/how-to-get-if-key-matches-to-get-value-please-help-on-this/36503)

<div class="topic-metadata">

**Author:** [@yuvaraj\_k](https://forum.ansible.com/u/yuvaraj_k)\
**Replies:** 0\
**Last updated:** [April 4, 2022, 3:57am UTC](https://forum.ansible.com/t/how-to-get-if-key-matches-to-get-value-please-help-on-this/36503 "2022-04-04T03:57:57Z")

</div>

Input json: “ec2\_asg”: { “changed”: false, “failed”: false, “results”: \[ { “tags”: \[ { “key”: “peer\_discovery\_backend”, “propagate\_at\_launch”: true, “resource\_id”: “AnsibleASG”, “resource\_type”: “auto-scaling-…

---

## [Convert with\_X to loop: but when: condition being ignored?](https://forum.ansible.com/t/convert-with-x-to-loop-but-when-condition-being-ignored/36499)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 4\
**Last updated:** [April 1, 2022, 2:13pm UTC](https://forum.ansible.com/t/convert-with-x-to-loop-but-when-condition-being-ignored/36499 "2022-04-01T14:13:21Z")

</div>

I do not know if this is a bug or I do not know how to use when: with the loop: The tasks name: debug backuppc\_client\_mysql\_dump ansible.builtin.debug: msg: “{{ backuppc\_client\_mysql\_dump }}” when: backuppc\_client…

---

## [Software agent installation via script](https://forum.ansible.com/t/software-agent-installation-via-script/36496)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 2\
**Last updated:** [March 30, 2022, 4:40pm UTC](https://forum.ansible.com/t/software-agent-installation-via-script/36496 "2022-03-30T16:40:30Z")

</div>

So we have an agent that we need to push to our servers, and below is the command to run it: LRSystemMonitor.exe /s /v" /qn ADDLOCAL=System\_Monitor HOST=xx.xx.xx.xx SERVERPORT=443 CLIENTADDRESS=0 CLIENTPORT=3333" Only …

---

## [Run Multiple hosts error](https://forum.ansible.com/t/run-multiple-hosts-error/36493)

<div class="topic-metadata">

**Author:** [@Nitrous](https://forum.ansible.com/u/Nitrous)\
**Replies:** 6\
**Last updated:** [March 30, 2022, 2:00pm UTC](https://forum.ansible.com/t/run-multiple-hosts-error/36493 "2022-03-30T14:00:05Z")

</div>

I have a playbook called multiple.yml that tests for ping: name: Playbook for multiple hosts hosts: bgrsuistg tasks: name: ping win\_ping: My host file for bgrsuistg looks like this: \[bgrsuistg\] server1 ansible\_ho…

---

## [network\_cli+ssh + jumphost: ansible\_ssh\_common\_args is ignored](https://forum.ansible.com/t/network-cli-ssh-jumphost-ansible-ssh-common-args-is-ignored/36471)

<div class="topic-metadata">

**Author:** [@Gaetan\_QUENTIN](https://forum.ansible.com/u/Gaetan_QUENTIN)\
**Replies:** 4\
**Last updated:** [March 30, 2022, 11:31am UTC](https://forum.ansible.com/t/network-cli-ssh-jumphost-ansible-ssh-common-args-is-ignored/36471 "2022-03-30T11:31:08Z")

</div>

---

## [Issue 62360 not fixed?](https://forum.ansible.com/t/issue-62360-not-fixed/36492)

<div class="topic-metadata">

**Author:** [@John\_Pfuntner](https://forum.ansible.com/u/John_Pfuntner)\
**Replies:** 2\
**Last updated:** [March 29, 2022, 4:13pm UTC](https://forum.ansible.com/t/issue-62360-not-fixed/36492 "2022-03-29T16:13:57Z")

</div>

I opened issue 62360 and when I looked at it today, I saw it had been closed with the remark This has been fixed in supported versions of Ansible. I upgraded: ansible \[core 2.12.4\] config file = /etc/ansible/ansible.cf…

---

## [New releases: ansible-core 2.12.4, ansible-core 2.11.10](https://forum.ansible.com/t/new-releases-ansible-core-2-12-4-ansible-core-2-11-10/36491)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [March 29, 2022, 1:54pm UTC](https://forum.ansible.com/t/new-releases-ansible-core-2-12-4-ansible-core-2-11-10/36491 "2022-03-29T13:54:05Z")

</div>

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

---

## [How ansible vault is safe  when using scripts?](https://forum.ansible.com/t/how-ansible-vault-is-safe-when-using-scripts/36468)

<div class="topic-metadata">

**Author:** [@batchenr](https://forum.ansible.com/u/batchenr)\
**Replies:** 6\
**Last updated:** [March 29, 2022, 8:49am UTC](https://forum.ansible.com/t/how-ansible-vault-is-safe-when-using-scripts/36468 "2022-03-29T08:49:00Z")

</div>

Hey, I dont understand how ansible vault is safe if i want to use in a script i need to give ansible the file where the password is saved in plain text… so i dont get it i do get it being safe if i do a prompts for th…

---

## [I want to init postgresql in k8s, who can share me the sample,thanks!](https://forum.ansible.com/t/i-want-to-init-postgresql-in-k8s-who-can-share-me-the-sample-thanks/36480)

<div class="topic-metadata">

**Author:** [@user122](https://forum.ansible.com/u/user122)\
**Replies:** 2\
**Last updated:** [March 29, 2022, 3:24am UTC](https://forum.ansible.com/t/i-want-to-init-postgresql-in-k8s-who-can-share-me-the-sample-thanks/36480 "2022-03-29T03:24:03Z")

</div>

Hi all, I want to init postgresql in k8s, try use the code as below to do: name: Get the password for postgresql kubernetes.core.k8s\_info: kind: secret name: postgresql-ha-postgresql namespace: pgdb register: pg…

---

## [Looping contruct - linode.cloud.nodebalancer](https://forum.ansible.com/t/looping-contruct-linode-cloud-nodebalancer/36488)

<div class="topic-metadata">

**Author:** [@John\_Stoffel](https://forum.ansible.com/u/John_Stoffel)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 8:25pm UTC](https://forum.ansible.com/t/looping-contruct-linode-cloud-nodebalancer/36488 "2022-03-28T20:25:57Z")

</div>

Hi, I’m looking for some help in setting up a Linode Nodebalancer, but I think my question is more about how to build a more dynamic playbook using the ‘linode.cloud.nodebalancer’ module from Ansible Galaxy. So I could…

---

## [How to set-up playbook level Environment variable after a few tasks](https://forum.ansible.com/t/how-to-set-up-playbook-level-environment-variable-after-a-few-tasks/36483)

<div class="topic-metadata">

**Author:** [@Arundhati\_Bhende](https://forum.ansible.com/u/Arundhati_Bhende)\
**Replies:** 4\
**Last updated:** [March 28, 2022, 5:18pm UTC](https://forum.ansible.com/t/how-to-set-up-playbook-level-environment-variable-after-a-few-tasks/36483 "2022-03-28T17:18:27Z")

</div>

I need to set a playbook level Environment variable after executing some tasks. The variable needs to be set-up separately on each server by reading a file on the server – I am told I should use slurp, but do not know ho…

---

## [Apt behaviour](https://forum.ansible.com/t/apt-behaviour/36404)

<div class="topic-metadata">

**Author:** [@igorc](https://forum.ansible.com/u/igorc)\
**Replies:** 6\
**Last updated:** [March 28, 2022, 5:08pm UTC](https://forum.ansible.com/t/apt-behaviour/36404 "2022-03-28T17:08:58Z")

</div>

Hi all, Anyone knows why is apt behaving differently here? I have this var fonts\_packages: ttf-wqy-zenhei fonts-takao-mincho fonts-indic ttf-wqy-microhei and simple task: name: install additional fonts apt: name…

---

## [Ansible Query](https://forum.ansible.com/t/ansible-query/36485)

<div class="topic-metadata">

**Author:** [@Pritam\_Dadhe](https://forum.ansible.com/u/Pritam_Dadhe)\
**Replies:** 1\
**Last updated:** [March 28, 2022, 2:59pm UTC](https://forum.ansible.com/t/ansible-query/36485 "2022-03-28T14:59:05Z")

</div>

Hi Team, Can we implement Ansible setup on systems that are on multiple domains. If yes what are the steps we need to follow or it can be done with normal setup just by adding IP add to the hosts file. Thanks, Pritam…

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

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