# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.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

---

## [Using multiple variables with Assert](https://forum.ansible.com/t/using-multiple-variables-with-assert/38509)

<div class="topic-metadata">

**Author:** [@Will\_McDonald](https://forum.ansible.com/u/Will_McDonald)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 5:01pm UTC](https://forum.ansible.com/t/using-multiple-variables-with-assert/38509 "2023-10-10T17:01:03Z")

</div>

I think you want “in” rather than “==” to verify if your OS release is in the corresponding list.

---

## [Not Able To Flatten nested List](https://forum.ansible.com/t/not-able-to-flatten-nested-list/38508)

<div class="topic-metadata">

**Author:** [@javed\_khan\_siddque](https://forum.ansible.com/u/javed_khan_siddque)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 1:05pm UTC](https://forum.ansible.com/t/not-able-to-flatten-nested-list/38508 "2023-10-10T13:05:57Z")

</div>

I have one of the below list of dict. storage\_details\_combined: \[ { “wwns\_dict”: { “host4”: “0x100098f2b3a1f324”, “host5”: “0x100098f2b3a12635” }, “wwns\_pmax\_list”: \[ “100098f2b3a12635”, “100098f2b3a1f324” \], …

---

## [ansible meta 'end\_playbook'?](https://forum.ansible.com/t/ansible-meta-end-playbook/38505)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 10:17am UTC](https://forum.ansible.com/t/ansible-meta-end-playbook/38505 "2023-10-10T10:17:48Z")

</div>

Hii There is the ‘end\_play’ meta task that will end the current play. We use playbooks that have several plays, so end\_play will just end that specific play, and then continue to the next play. Is there a way to stop …

---

## [issue with "ansible-galaxy collection install" today](https://forum.ansible.com/t/issue-with-ansible-galaxy-collection-install-today/38494)

<div class="topic-metadata">

**Author:** [@Janet\_Wang](https://forum.ansible.com/u/Janet_Wang)\
**Replies:** 3\
**Last updated:** [October 9, 2023, 5:57pm UTC](https://forum.ansible.com/t/issue-with-ansible-galaxy-collection-install-today/38494 "2023-10-09T17:57:03Z")

</div>

Hi, My ci/cd pipeline failed today at step running “ansible-galaxy collection install community.aws:==5.4.0” with following error: Starting galaxy collection install process 14:41:17 Process install dependency map 14…

---

## [New release: ansible-core 2.13.13](https://forum.ansible.com/t/new-release-ansible-core-2-13-13/38504)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 9, 2023, 3:57pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-13-13/38504 "2023-10-09T15:57:25Z")

</div>

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

---

## [New release: ansible-core 2.14.11](https://forum.ansible.com/t/new-release-ansible-core-2-14-11/38503)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 9, 2023, 3:57pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-14-11/38503 "2023-10-09T15:57:23Z")

</div>

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

---

## [New release: ansible-core 2.15.5](https://forum.ansible.com/t/new-release-ansible-core-2-15-5/38502)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [October 9, 2023, 3:57pm UTC](https://forum.ansible.com/t/new-release-ansible-core-2-15-5/38502 "2023-10-09T15:57:21Z")

</div>

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

---

## [override variable from outside role](https://forum.ansible.com/t/override-variable-from-outside-role/38495)

<div class="topic-metadata">

**Author:** [@mzagrabe](https://forum.ansible.com/u/mzagrabe)\
**Replies:** 9\
**Last updated:** [October 9, 2023, 12:00pm UTC](https://forum.ansible.com/t/override-variable-from-outside-role/38495 "2023-10-09T12:00:06Z")

</div>

Greetings Ansible users! I have a role “nftables” that is assigned to all nodes in my inventory. It has a variable ‘forward\_policy’ that has a default value: $ cat roles/nftables/defaults/main.yaml forward\_policy: dro…

---

## [Simpler way to define many handlers?](https://forum.ansible.com/t/simpler-way-to-define-many-handlers/38370)

<div class="topic-metadata">

**Author:** [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Replies:** 5\
**Last updated:** [October 8, 2023, 8:45pm UTC](https://forum.ansible.com/t/simpler-way-to-define-many-handlers/38370 "2023-10-08T20:45:30Z")

</div>

Hii, I have a lot of handlers to restart services, like this: name: smbd\_restart ansible.builtin.service: name: smbd state: restarted name: chronyd\_restart ansible.builtin.service: name: chronyd state: resta…

---

## [Release announcement : Ansible Community Package 9.0.0a2 (Pre Release)](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-0-0a2-pre-release/38498)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 0\
**Last updated:** [October 5, 2023, 11:49am UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-0-0a2-pre-release/38498 "2023-10-05T11:49:06Z")

</div>

Hello everyone, We're happy to announce the Alpha release of Ansible 9.0.0a2! This pre-release version contains the latest version of ansible-core 2.16 and includes a curated set of Ansible collections that provides a …

---

## [Ansible Collections community.general: 403 Forbidden](https://forum.ansible.com/t/ansible-collections-community-general-403-forbidden/38484)

<div class="topic-metadata">

**Author:** [@jeromearellano](https://forum.ansible.com/u/jeromearellano)\
**Replies:** 5\
**Last updated:** [October 4, 2023, 12:16pm UTC](https://forum.ansible.com/t/ansible-collections-community-general-403-forbidden/38484 "2023-10-04T12:16:05Z")

</div>

Hello, Has someone experienced an error when syncing projects? error encountered: ERROR! Failed to download collection tar from ‘explicit\_requirement\_community.general’ due to the following unforeseen error: \<urlopen e…

---

## [ansible.builtin.password generating invalid passwords](https://forum.ansible.com/t/ansible-builtin-password-generating-invalid-passwords/38485)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 3\
**Last updated:** [October 2, 2023, 2:14pm UTC](https://forum.ansible.com/t/ansible-builtin-password-generating-invalid-passwords/38485 "2023-10-02T14:14:57Z")

</div>

I am using ansible core version 2.14.3. When I generate a username in the following fashion: set\_fact: passwd: “{{ lookup(‘ansible.builtin.password’, ‘/dev/null’, chars=\[‘ascii letters’, ‘digits’\], length=range(10,15) …

---

## [Using XML module to insert new line](https://forum.ansible.com/t/using-xml-module-to-insert-new-line/38481)

<div class="topic-metadata">

**Author:** [@shloco](https://forum.ansible.com/u/shloco)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 8:11pm UTC](https://forum.ansible.com/t/using-xml-module-to-insert-new-line/38481 "2023-09-29T20:11:54Z")

</div>

Hi folks I some help , I have xml as following structure login.url /login.action?os\_destination=${originalurl}&permissionViolation=true link.login.url /login.action cookie.encoding cNf login.cookie.key seraph.…

---

## [shell module with become\_user does not function correctly](https://forum.ansible.com/t/shell-module-with-become-user-does-not-function-correctly/38475)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 4\
**Last updated:** [September 28, 2023, 9:16pm UTC](https://forum.ansible.com/t/shell-module-with-become-user-does-not-function-correctly/38475 "2023-09-28T21:16:47Z")

</div>

Hi - I’m having trouble using the shell module with become\_user. As a basic test, I created this playbook: name: Retrieve environment variables for root shell: printenv name: Retrieve environment variables for ora…

---

## [Question of howto use external variables in the nmap plugin](https://forum.ansible.com/t/question-of-howto-use-external-variables-in-the-nmap-plugin/38478)

<div class="topic-metadata">

**Author:** [@cesarjorgemartinez](https://forum.ansible.com/u/cesarjorgemartinez)\
**Replies:** 4\
**Last updated:** [September 28, 2023, 6:42pm UTC](https://forum.ansible.com/t/question-of-howto-use-external-variables-in-the-nmap-plugin/38478 "2023-09-28T18:42:05Z")

</div>

Hi, I have a question of howto use external variables in the nmap plugin. I have a simple yml: plugin: nmap address: 192.168.10.0/24 … But I need to pass the network range as a external variable, as example: plugi…

---

## [Release announcement : Ansible Community Package 9.0.0a1 (Pre Release)](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-0-0a1-pre-release/38480)

<div class="topic-metadata">

**Author:** [@Anwesha\_Das](https://forum.ansible.com/u/Anwesha_Das)\
**Replies:** 0\
**Last updated:** [September 28, 2023, 4:47pm UTC](https://forum.ansible.com/t/release-announcement-ansible-community-package-9-0-0a1-pre-release/38480 "2023-09-28T16:47:38Z")

</div>

Hello everyone, We're happy to announce the Alpha release of Ansible 9.0.0a1! This pre-release version contains the latest version of ansible-core 2.16 and includes a curated set of Ansible collections that provides a …

---

## [Retrieving items from a dictionary](https://forum.ansible.com/t/retrieving-items-from-a-dictionary/38474)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [September 28, 2023, 12:07pm UTC](https://forum.ansible.com/t/retrieving-items-from-a-dictionary/38474 "2023-09-28T12:07:05Z")

</div>

I am trying to look at our server mounts and only show those that have a specific mount available. The playbook is as follows:

---

## [suppress "changed" for register'ed variables](https://forum.ansible.com/t/suppress-changed-for-registered-variables/38471)

<div class="topic-metadata">

**Author:** [@mzagrabe](https://forum.ansible.com/u/mzagrabe)\
**Replies:** 6\
**Last updated:** [September 27, 2023, 1:17am UTC](https://forum.ansible.com/t/suppress-changed-for-registered-variables/38471 "2023-09-27T01:17:43Z")

</div>

Greetings, I currently register some variables via: cat roles/configure\_account\_environment/tasks/main.yaml

---

## [How to use Multiple choice](https://forum.ansible.com/t/how-to-use-multiple-choice/38466)

<div class="topic-metadata">

**Author:** [@Matthias\_Denkler](https://forum.ansible.com/u/Matthias_Denkler)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 3:03pm UTC](https://forum.ansible.com/t/how-to-use-multiple-choice/38466 "2023-09-26T15:03:13Z")

</div>

Hi there, i am pretty at the beginning of my use of ansible. But I have a woring script to use ansible to put fresh installed ubuntu machines into our AD to use groups to manage user access. Now this script has to gro…

---

## [pexpect module pegging cpu ram to 100%](https://forum.ansible.com/t/pexpect-module-pegging-cpu-ram-to-100/38464)

<div class="topic-metadata">

**Author:** [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Replies:** 0\
**Last updated:** [September 26, 2023, 1:21pm UTC](https://forum.ansible.com/t/pexpect-module-pegging-cpu-ram-to-100/38464 "2023-09-26T13:21:32Z")

</div>

We are using the pexpect module when running asynchronously and telling it to open /bin/bash. (This is all trying to get master sockets working). When we do this from a Debian 10 or Debian 11 hosts operating against anot…

---

## [Howto remove one apt package if the version differ](https://forum.ansible.com/t/howto-remove-one-apt-package-if-the-version-differ/38459)

<div class="topic-metadata">

**Author:** [@cesarjorgemartinez](https://forum.ansible.com/u/cesarjorgemartinez)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 6:39pm UTC](https://forum.ansible.com/t/howto-remove-one-apt-package-if-the-version-differ/38459 "2023-09-21T18:39:05Z")

</div>

Hi, I need to remove one apt package but only if differ the version, example should be: name: remove package apt: name: “htop!=2.2.0-2build1” status: absent Or something as: name: remove package apt: name: hto…

---

## [How to pass the git credentails if we are calling the playbook from other repository](https://forum.ansible.com/t/how-to-pass-the-git-credentails-if-we-are-calling-the-playbook-from-other-repository/38458)

<div class="topic-metadata">

**Author:** [@Srinu](https://forum.ansible.com/u/Srinu)\
**Replies:** 0\
**Last updated:** [September 21, 2023, 3:16pm UTC](https://forum.ansible.com/t/how-to-pass-the-git-credentails-if-we-are-calling-the-playbook-from-other-repository/38458 "2023-09-21T15:16:12Z")

</div>

Hi All, I have a playbook like below, name: Integrate snow & Ansible hosts: localhost gather\_facts: no tasks: debug: msg: play1 name: Include a play after another play import\_playbook: playbookA.yaml name: Include…

---

## [Get memory info using Ansible](https://forum.ansible.com/t/get-memory-info-using-ansible/36302)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 3\
**Last updated:** [September 21, 2023, 10:38am UTC](https://forum.ansible.com/t/get-memory-info-using-ansible/36302 "2023-09-21T10:38:59Z")

</div>

Whatever ansible give a memory info in ansible\_fact it doesn’t match with memory info that we get from free -m command. Why this problem happened for that if have any solution plz give me

---

## [Regarding not to proceed further if ansible task fails](https://forum.ansible.com/t/regarding-not-to-proceed-further-if-ansible-task-fails/38407)

<div class="topic-metadata">

**Author:** [@Ashok-2017](https://forum.ansible.com/u/Ashok-2017)\
**Replies:** 39\
**Last updated:** [September 20, 2023, 11:51pm UTC](https://forum.ansible.com/t/regarding-not-to-proceed-further-if-ansible-task-fails/38407 "2023-09-20T23:51:01Z")

</div>

Hi All, When I tried to download packages from jfrog repository, If it gets downloaded, it is okay. But if it is unable to download, we should not proceed further to execute other tasks. How to write ansible task? If …

---

## [Is ansible.windows.win\_copy brutally slow for everyone?](https://forum.ansible.com/t/is-ansible-windows-win-copy-brutally-slow-for-everyone/38454)

<div class="topic-metadata">

**Author:** [@Kevin\_Knox](https://forum.ansible.com/u/Kevin_Knox)\
**Replies:** 0\
**Last updated:** [September 20, 2023, 5:56pm UTC](https://forum.ansible.com/t/is-ansible-windows-win-copy-brutally-slow-for-everyone/38454 "2023-09-20T17:56:52Z")

</div>

I am seeing ansible.windows.win\_acl take about 15 seconds to run against an entire folder, but ansible.windows.win\_copy takes 30-90 seconds for a 2k file. Is this a common experience?

---

## [Removing collections](https://forum.ansible.com/t/removing-collections/38451)

<div class="topic-metadata">

**Author:** [@E\_J](https://forum.ansible.com/u/E_J)\
**Replies:** 4\
**Last updated:** [September 20, 2023, 4:49am UTC](https://forum.ansible.com/t/removing-collections/38451 "2023-09-20T04:49:13Z")

</div>

Hello All, I have an Ansible server with collections that are stored under a user context in “/home/user/.ansible/ansible\_collections/” in addition to the collections for all users that are stored in “/usr/lib/python3/d…

---

## [Install multiple named packages with 'community.general.zypper'](https://forum.ansible.com/t/install-multiple-named-packages-with-community-general-zypper/38449)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 4\
**Last updated:** [September 19, 2023, 3:49pm UTC](https://forum.ansible.com/t/install-multiple-named-packages-with-community-general-zypper/38449 "2023-09-19T15:49:50Z")

</div>

Hi - I need to install ~30 specific packages on a SLES 15 system using Ansible. Instead of specifying 30 individual ‘community.general.zypper’ tasks, I’d like to run a single ‘community.general.zypper’ task and provide i…

---

## [GUI Display over SSH on Windows server](https://forum.ansible.com/t/gui-display-over-ssh-on-windows-server/38447)

<div class="topic-metadata">

**Author:** [@Michele](https://forum.ansible.com/u/Michele)\
**Replies:** 1\
**Last updated:** [September 19, 2023, 1:27am UTC](https://forum.ansible.com/t/gui-display-over-ssh-on-windows-server/38447 "2023-09-19T01:27:53Z")

</div>

Hello! Is there any way I can get a GUI to display on a Windows server that has been connected to the ansible control node via SSH? In my situation, I am trying to run a batch file on a Windows server that will display…

---

## [Ansible 'user' module won't set expected password](https://forum.ansible.com/t/ansible-user-module-wont-set-expected-password/38448)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 3\
**Last updated:** [September 18, 2023, 8:55pm UTC](https://forum.ansible.com/t/ansible-user-module-wont-set-expected-password/38448 "2023-09-18T20:55:59Z")

</div>

Hi - I’m trying to use the ansible.builtin.user module to set the user’s password as it creates a new user account. My task contains: name: Create oracle user ansible.builtin.user: name: oracle state: present uid: …

---

## [The input device is not a TTY](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413)

<div class="topic-metadata">

**Author:** [@jojebo1](https://forum.ansible.com/u/jojebo1)\
**Replies:** 2\
**Last updated:** [September 18, 2023, 2:30pm UTC](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413 "2023-09-18T14:30:53Z")

</div>

Hi everyone, I’m fairly new to ansible and I stumbled across a problem which I’m unable to solve. Problem It occurs when I try to run a playbook that should execute two commands (proprietary sw). The error is either …

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

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