# Latest

**URL:** https://forum.ansible.com/latest.md?page=321

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

**Page:** 322

---

## [Powershell Function via Ansible | Get-AnsibleParam: Missing required argument: \_raw\_params](https://forum.ansible.com/t/powershell-function-via-ansible-get-ansibleparam-missing-required-argument-raw-params/34523)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 8\
**Last updated:** [February 2, 2021, 8:53pm UTC](https://forum.ansible.com/t/powershell-function-via-ansible-get-ansibleparam-missing-required-argument-raw-params/34523 "2021-02-02T20:53:50Z")

</div>

Executing a rather large playbook revolving around multiple plays to create shares and DFS links, etc. I’ve got a play to do the following.

---

## [Equivalent of this inventory\_hostname in groups\['dev'\] or inventory\_hostname in groups\['lb'\]](https://forum.ansible.com/t/equivalent-of-this-inventory-hostname-in-groups-dev-or-inventory-hostname-in-groups-lb/34556)

<div class="topic-metadata">

**Author:** [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 8:51pm UTC](https://forum.ansible.com/t/equivalent-of-this-inventory-hostname-in-groups-dev-or-inventory-hostname-in-groups-lb/34556 "2021-02-02T20:51:19Z")

</div>

Is there a shortcut way for this? inventory\_hostname in groups\[‘dev’\] or inventory\_hostname in groups\[‘lb’\] I have a long playbook, im trying to cut some text.

---

## [\[WARNING\]: - linux-system-roles.network was NOT installed successfully: Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': \<urlopen error \[Errno 101\] Network is unreachable\>](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552)

<div class="topic-metadata">

**Author:** [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Replies:** 13\
**Last updated:** [February 2, 2021, 5:21pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552 "2021-02-02T17:21:32Z")

</div>

How can I make ansible-galaxy work if it is not connected to internet? Thank you ansible-galaxy role install linux-system-roles.network \[WARNING\]: - linux-system-roles. network was NOT installed successfully: Unknown …

---

## [AWX/Tower notifications](https://forum.ansible.com/t/awx-tower-notifications/34555)

<div class="topic-metadata">

**Author:** [@Marko\_Petrovic](https://forum.ansible.com/u/Marko_Petrovic)\
**Replies:** 0\
**Last updated:** [February 2, 2021, 4:02pm UTC](https://forum.ansible.com/t/awx-tower-notifications/34555 "2021-02-02T16:02:22Z")

</div>

Hi, is there any option to send an email to the recipient list defined in the variable? I’ve tried to put var reference in that list in the notification, but that reference can’t be resolved. Input for job template wou…

---

## [List folder/files on windows](https://forum.ansible.com/t/list-folder-files-on-windows/34554)

<div class="topic-metadata">

**Author:** [@Deepak\_Gowda](https://forum.ansible.com/u/Deepak_Gowda)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 11:42am UTC](https://forum.ansible.com/t/list-folder-files-on-windows/34554 "2021-02-02T11:42:36Z")

</div>

HI All, I have a list of files in C:\\Users\\xxxuser\\Downloads\\ ,I am trying to find out if i can pull the list of files/folders present in windows on the ansible node. i have the below playbook which doesnt give any err…

---

## [SQL Server 2019 Installation Failing](https://forum.ansible.com/t/sql-server-2019-installation-failing/34547)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar\_Singh](https://forum.ansible.com/u/Praveen_Kumar_Singh)\
**Replies:** 4\
**Last updated:** [February 1, 2021, 10:32pm UTC](https://forum.ansible.com/t/sql-server-2019-installation-failing/34547 "2021-02-01T22:32:59Z")

</div>

Dear All, I am getting below error while installing SQL server 2019. Also below is the playbook that I am using. So can someone please help.

---

## [Creating symbolic links in Windows with mklink always returns changed](https://forum.ansible.com/t/creating-symbolic-links-in-windows-with-mklink-always-returns-changed/34548)

<div class="topic-metadata">

**Author:** [@Amedee\_Van\_Gasse](https://forum.ansible.com/u/Amedee_Van_Gasse)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 10:26pm UTC](https://forum.ansible.com/t/creating-symbolic-links-in-windows-with-mklink-always-returns-changed/34548 "2021-02-01T22:26:35Z")

</div>

I’m using this to create a symbolic link to a directory, on Windows: name: Find OpenJDK directory ansible.windows.win\_find: paths: C:\\Program Files\\OpenJDK patterns: openjdk\* file\_type: directory recurse: no reg…

---

## [Some changes to the AWX logo](https://forum.ansible.com/t/some-changes-to-the-awx-logo/34508)

<div class="topic-metadata">

**Author:** [@rpetrell](https://forum.ansible.com/u/rpetrell)\
**Replies:** 4\
**Last updated:** [February 1, 2021, 9:51pm UTC](https://forum.ansible.com/t/some-changes-to-the-awx-logo/34508 "2021-02-01T21:51:07Z")

</div>

Hey folks, We noticed that the former AWX logo (the “AWX with wings”) bears a resemblance to symbols used by certain hate groups. I won’t share those symbols here, but the core AWX team has compared the AWX logo to them…

---

## [Pass dynamic inventory as json not as file](https://forum.ansible.com/t/pass-dynamic-inventory-as-json-not-as-file/34510)

<div class="topic-metadata">

**Author:** [@Filip\_Rucinski](https://forum.ansible.com/u/Filip_Rucinski)\
**Replies:** 4\
**Last updated:** [February 1, 2021, 6:08pm UTC](https://forum.ansible.com/t/pass-dynamic-inventory-as-json-not-as-file/34510 "2021-02-01T18:08:34Z")

</div>

Hello First question: Is there any possibility to pass dynamic inventory as a pure json structure? I have got a small app that is written in python and flask, that listen for some data (finally it is in json format) f…

---

## [Is it Possible to have multiple Dashboards for each Job](https://forum.ansible.com/t/is-it-possible-to-have-multiple-dashboards-for-each-job/34550)

<div class="topic-metadata">

**Author:** [@anish\_anil](https://forum.ansible.com/u/anish_anil)\
**Replies:** 3\
**Last updated:** [February 1, 2021, 5:41pm UTC](https://forum.ansible.com/t/is-it-possible-to-have-multiple-dashboards-for-each-job/34550 "2021-02-01T17:41:29Z")

</div>

Hello AWX, The current dashboard shows the job status for all jobs I have multiple projects and each day the job are run for multiple projects. The current dasboard shows the job status for all jobs and not for ind…

---

## [Save debug results to a local file ( not copying all )](https://forum.ansible.com/t/save-debug-results-to-a-local-file-not-copying-all/34539)

<div class="topic-metadata">

**Author:** [@Ramesh\_AR](https://forum.ansible.com/u/Ramesh_AR)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 2:37pm UTC](https://forum.ansible.com/t/save-debug-results-to-a-local-file-not-copying-all/34539 "2021-02-01T14:37:37Z")

</div>

I have a task that will save outputs to a local file, when I check the text file the contents are missing . ex: I have 13 inventory host and should run each task and save the output to local file. so ideally should have…

---

## [Running remote playbooks](https://forum.ansible.com/t/running-remote-playbooks/34551)

<div class="topic-metadata">

**Author:** [@Ethan\_Sowell](https://forum.ansible.com/u/Ethan_Sowell)\
**Replies:** 0\
**Last updated:** [February 1, 2021, 2:15pm UTC](https://forum.ansible.com/t/running-remote-playbooks/34551 "2021-02-01T14:15:51Z")

</div>

So I am pretty new to AWX and ansible in general and had a question. I have a situation where I have cloned the AWX repo into the /tmp/ folder on a remote docker swarm container. I want to run AWX from there and want to …

---

## [AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible\_all\_ipv4\_addresses'"](https://forum.ansible.com/t/ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-all-ipv4-addresses/34541)

<div class="topic-metadata">

**Author:** [@Aris\_Aguirre](https://forum.ansible.com/u/Aris_Aguirre)\
**Replies:** 7\
**Last updated:** [February 1, 2021, 1:42pm UTC](https://forum.ansible.com/t/ansibleundefinedvariable-ansible-vars-hostvars-hostvarsvars-object-has-no-attribute-ansible-all-ipv4-addresses/34541 "2021-02-01T13:42:10Z")

</div>

Below is working when I was still using ansible 2.3 or maybe 2.7 But no longer ansible 2.8 or 2.9. Please be advise no matter what it is not working. Thanks {% for host in groups.all %} {{ hostvars\[host\]\[‘ansible\_all\_…

---

## [inheriting from other modules](https://forum.ansible.com/t/inheriting-from-other-modules/34491)

<div class="topic-metadata">

**Author:** [@jszigetvari](https://forum.ansible.com/u/jszigetvari)\
**Replies:** 6\
**Last updated:** [February 1, 2021, 6:31am UTC](https://forum.ansible.com/t/inheriting-from-other-modules/34491 "2021-02-01T06:31:20Z")

</div>

Hi, In a POC project I would need to create a new Ansible module that would need to work just like the command module, with the only difference being that it would need to prepend a command to the command line passed to…

---

## [Validate case insensitive values](https://forum.ansible.com/t/validate-case-insensitive-values/34493)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem1](https://forum.ansible.com/u/Amjad_Saleem1)\
**Replies:** 9\
**Last updated:** [January 31, 2021, 10:34pm UTC](https://forum.ansible.com/t/validate-case-insensitive-values/34493 "2021-01-31T22:34:18Z")

</div>

Trying to validate that a specific variable must have one of pre-determined values, mimicking dropdown in survey in ansible tower/awx. I have the following code but it only matches for upper case: vars: environments: …

---

## [No package matching 'python-pip' is available ubuntu 20.04 LTS](https://forum.ansible.com/t/no-package-matching-python-pip-is-available-ubuntu-20-04-lts/34546)

<div class="topic-metadata">

**Author:** [@Syed\_Ejaz\_Ahmed\_Hash](https://forum.ansible.com/u/Syed_Ejaz_Ahmed_Hash)\
**Replies:** 4\
**Last updated:** [January 31, 2021, 4:48pm UTC](https://forum.ansible.com/t/no-package-matching-python-pip-is-available-ubuntu-20-04-lts/34546 "2021-01-31T16:48:18Z")

</div>

We have full functional ansible on Ubuntu 18.04 LTS and all our playbooks are running successfully without any issue on ubuntu 18.04 LTS. We are trying to run the playbook on ubuntu 20.04 LTS and run the playbook which …

---

## [Mac Big Sur Ansible Installation Issue](https://forum.ansible.com/t/mac-big-sur-ansible-installation-issue/34532)

<div class="topic-metadata">

**Author:** [@Jorge\_Alonso\_Ayala\_B](https://forum.ansible.com/u/Jorge_Alonso_Ayala_B)\
**Replies:** 1\
**Last updated:** [January 31, 2021, 4:20pm UTC](https://forum.ansible.com/t/mac-big-sur-ansible-installation-issue/34532 "2021-01-31T16:20:53Z")

</div>

Hi Do you know how can I solve this (last command): Jorayala@JORAYALA-M-JFTV ~ % python3 get-pip.py --user Collecting pip Downloading pip-21.0-py3-none-any.whl (1.5 MB) ████████████████████████████████| 1.5 MB 499 …

---

## [win\_audit\_policy\_system module not changing the value](https://forum.ansible.com/t/win-audit-policy-system-module-not-changing-the-value/34535)

<div class="topic-metadata">

**Author:** [@srini\_mas](https://forum.ansible.com/u/srini_mas)\
**Replies:** 4\
**Last updated:** [January 31, 2021, 9:22am UTC](https://forum.ansible.com/t/win-audit-policy-system-module-not-changing-the-value/34535 "2021-01-31T09:22:23Z")

</div>

Hi, Trying to use ansible on windows server 2016. winRM connection works and other modules run perfectly fine. simple playbook and run win\_audit\_policy\_system to change the values. - name: “Ensure ‘Audit Application G…

---

## [Use a specific variable within a playbook base on the tag defined](https://forum.ansible.com/t/use-a-specific-variable-within-a-playbook-base-on-the-tag-defined/34545)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 3:06am UTC](https://forum.ansible.com/t/use-a-specific-variable-within-a-playbook-base-on-the-tag-defined/34545 "2021-01-30T03:06:53Z")

</div>

Hi All, Hope anyone could help me! Basically i have a playbook that configures sudoers commands for a particular user. In this playbook is a command that has to use a {{ variable }}. This variable differs dependent on…

---

## [Ansible configuration to run an Ansible Galaxy playbook](https://forum.ansible.com/t/ansible-configuration-to-run-an-ansible-galaxy-playbook/34543)

<div class="topic-metadata">

**Author:** [@Jeremy\_Tourville](https://forum.ansible.com/u/Jeremy_Tourville)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 10:08pm UTC](https://forum.ansible.com/t/ansible-configuration-to-run-an-ansible-galaxy-playbook/34543 "2021-01-29T22:08:28Z")

</div>

Hello, I have been learning to use Ansible through Red Hat training for approximately the last 6 months or so. I have learned how to build some of my own basic play books and roles. For the first time i have decided to…

---

## [Unable to provision a Windows Server 2019 vagrant box with Ansible over ssh](https://forum.ansible.com/t/unable-to-provision-a-windows-server-2019-vagrant-box-with-ansible-over-ssh/34537)

<div class="topic-metadata">

**Author:** [@Amedee\_Van\_Gasse](https://forum.ansible.com/u/Amedee_Van_Gasse)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 6:52pm UTC](https://forum.ansible.com/t/unable-to-provision-a-windows-server-2019-vagrant-box-with-ansible-over-ssh/34537 "2021-01-29T18:52:45Z")

</div>

I have created a Windows server 2019 Vagrant box using https://github.com/rgl/windows-vagrant. I did not make any changes. Steps to reproduce: git clone git@github.com:rgl/windows-vagrant.git cd windows-vagrant make …

---

## [sftp blocked fro my labtop when executing playbook](https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542)

<div class="topic-metadata">

**Author:** [@yvesdeb](https://forum.ansible.com/u/yvesdeb)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 5:57pm UTC](https://forum.ansible.com/t/sftp-blocked-fro-my-labtop-when-executing-playbook/34542 "2021-01-29T17:57:58Z")

</div>

Hi, my playbook randomly hangs on the sftp command. I work from my remote workstation through a VPN. my playbook blocks randomly on the sftp command whatever the client at the end and this randomly. It creates the file…

---

## [please help me with this](https://forum.ansible.com/t/please-help-me-with-this/34540)

<div class="topic-metadata">

**Author:** [@Jayaprakash\_Valluri](https://forum.ansible.com/u/Jayaprakash_Valluri)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 5:03pm UTC](https://forum.ansible.com/t/please-help-me-with-this/34540 "2021-01-29T17:03:53Z")

</div>

1.Create a file in /tmp/playbook/target\_info.html and the file should have the below mentioned info 2.Should have the hostname of the target server 3.Should have the IP address 4.Should have the MAC address 5.Should …

---

## [Create Lower size LV. If Volume Group has less space.](https://forum.ansible.com/t/create-lower-size-lv-if-volume-group-has-less-space/34531)

<div class="topic-metadata">

**Author:** [@Aris\_Aguirre](https://forum.ansible.com/u/Aris_Aguirre)\
**Replies:** 4\
**Last updated:** [January 29, 2021, 4:12pm UTC](https://forum.ansible.com/t/create-lower-size-lv-if-volume-group-has-less-space/34531 "2021-01-29T16:12:01Z")

</div>

I have a playbook below. But it only works on the nodes that has 800G (SDB) or the Volume Group has 800G free space. I am expecting that i Volume Group(vgaris) exist and only has 300G, it will still create 100G of lvaris…

---

## [How to get backup ip and assign to a variable](https://forum.ansible.com/t/how-to-get-backup-ip-and-assign-to-a-variable/34536)

<div class="topic-metadata">

**Author:** [@Ramakrishna\_V](https://forum.ansible.com/u/Ramakrishna_V)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 2:51pm UTC](https://forum.ansible.com/t/how-to-get-backup-ip-and-assign-to-a-variable/34536 "2021-01-29T14:51:46Z")

</div>

Hi, How to search for a IPv4 starting with “192.168.x.x” from ansible\_all\_ipv4\_addresses and assign to variable. If not, assign default ipv4. The use case is, I need to get backup ip and assign to a variable. I need to…

---

## ["become" is being ignored by ansible](https://forum.ansible.com/t/become-is-being-ignored-by-ansible/34538)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 2:36pm UTC](https://forum.ansible.com/t/become-is-being-ignored-by-ansible/34538 "2021-01-29T14:36:30Z")

</div>

become\_user is the 'user you want to become' after privilege escalation, you are setting it as the same as remote\_user which is a noop, don't set it and the default (root) will do what you want.

---

## [Reboot that requires inventory refresh](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534)

<div class="topic-metadata">

**Author:** [@Paavo\_Leinonen](https://forum.ansible.com/u/Paavo_Leinonen)\
**Replies:** 1\
**Last updated:** [January 29, 2021, 11:14am UTC](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534 "2021-01-29T11:14:52Z")

</div>

Hi, I have 2 VPN servers, and remote-random in VPN config, so clients connect to server1 or server2. I need clients to reboot after major upgrades (new kernel), and the problem is that if the client connects to differe…

---

## [VMware Inventory Sync Configuration](https://forum.ansible.com/t/vmware-inventory-sync-configuration/34533)

<div class="topic-metadata">

**Author:** [@Garrett\_Kelly](https://forum.ansible.com/u/Garrett_Kelly)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 8:17am UTC](https://forum.ansible.com/t/vmware-inventory-sync-configuration/34533 "2021-01-29T08:17:23Z")

</div>

Not really a question/issue, but instead wanted to just knowledge share some information to those that might have a VMware shop, and are digging for answers on configuring this. Below are the instructions on how to setu…

---

## [does anyone know this and how to fix, thank you](https://forum.ansible.com/t/does-anyone-know-this-and-how-to-fix-thank-you/34527)

<div class="topic-metadata">

**Author:** [@Gun\_Turhal](https://forum.ansible.com/u/Gun_Turhal)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 7:32am UTC](https://forum.ansible.com/t/does-anyone-know-this-and-how-to-fix-thank-you/34527 "2021-01-29T07:32:49Z")

</div>

TASK \[local\_docker : Remove AWX containers before migrating postgres so that the old postgres container does not get used\] \*\*\* fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “Cannot have both the docker-py and…

---

## [Failed to connect to the host via ssh: Permission denied (publickey,password)](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password/34529)

<div class="topic-metadata">

**Author:** [@a.srini](https://forum.ansible.com/u/a.srini)\
**Replies:** 4\
**Last updated:** [January 29, 2021, 7:06am UTC](https://forum.ansible.com/t/failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password/34529 "2021-01-29T07:06:18Z")

</div>

I have a playbook where it has an option that can be run in 2 different ways. When having single host to execute, can run prompt.yml file to execute against single host. When a large number of hosts exits, that was kep…

[Previous page](https://forum.ansible.com/latest.md?page=320)

[Next page](https://forum.ansible.com/latest.md?page=322)
