# Ansible Project

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

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

**Page:** 81

---

## [Greengrass: Adding device fails first time](https://forum.ansible.com/t/greengrass-adding-device-fails-first-time/34968)

<div class="topic-metadata">

**Author:** [@niran](https://forum.ansible.com/u/niran)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 7:09am UTC](https://forum.ansible.com/t/greengrass-adding-device-fails-first-time/34968 "2021-04-13T07:09:23Z")

</div>

Hi i am having some issue adding a new device D35 to greengrass . The first time the role is run on devices newly added to {{ api\_greengrass\_group\_thing\_list }} the playbook will fail at this point but then running the…

---

## [Using \`remote\_user\` in \`ansible\_ssh\_common\_args\` in inventory file](https://forum.ansible.com/t/using-remote-user-in-ansible-ssh-common-args-in-inventory-file/34948)

<div class="topic-metadata">

**Author:** [@tariver\_16](https://forum.ansible.com/u/tariver_16)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 6:09am UTC](https://forum.ansible.com/t/using-remote-user-in-ansible-ssh-common-args-in-inventory-file/34948 "2021-04-13T06:09:52Z")

</div>

Greetings! Asked this on stackoverflow but received no answer, so trying my luck here. In my network there is one server (server2) that can’t be accessed directly. First you have to ssh to server1 and from there to ser…

---

## [New releases: ansible-base 2.10.8, ansible 2.9.20, ansible 2.8.20](https://forum.ansible.com/t/new-releases-ansible-base-2-10-8-ansible-2-9-20-ansible-2-8-20/34969)

<div class="topic-metadata">

**Author:** [@relrod](https://forum.ansible.com/u/relrod)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 5:48am UTC](https://forum.ansible.com/t/new-releases-ansible-base-2-10-8-ansible-2-9-20-ansible-2-8-20/34969 "2021-04-13T05:48:32Z")

</div>

Hi all- we're happy to announce that the general release of ansible-base 2.10.8, ansible 2.9.20, and ansible 2.8.20 are now available! Note that this is the final release of the 2.8 series of Ansible, and the final bu…

---

## [Reliably getting user homedir, despite become](https://forum.ansible.com/t/reliably-getting-user-homedir-despite-become/34957)

<div class="topic-metadata">

**Author:** [@need\_abettername](https://forum.ansible.com/u/need_abettername)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 4:44pm UTC](https://forum.ansible.com/t/reliably-getting-user-homedir-despite-become/34957 "2021-04-12T16:44:45Z")

</div>

I’d like these results when querying a remote machine, but am having problems finding the correct user vars to pass ‘sometypeofuser’: Alice, become: true Result: /home/alice ‘sometypeofuser’: Alice, become: false R…

---

## [Ansible: Error msg](https://forum.ansible.com/t/ansible-error-msg/34966)

<div class="topic-metadata">

**Author:** [@vahini\_reddy](https://forum.ansible.com/u/vahini_reddy)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 4:32pm UTC](https://forum.ansible.com/t/ansible-error-msg/34966 "2021-04-12T16:32:58Z")

</div>

Hi Team, Need your help. I am facing the error. Please do the needfull

---

## [vscode syntax highlighting](https://forum.ansible.com/t/vscode-syntax-highlighting/34960)

<div class="topic-metadata">

**Author:** [@Matt\_Warren](https://forum.ansible.com/u/Matt_Warren)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 3:52am UTC](https://forum.ansible.com/t/vscode-syntax-highlighting/34960 "2021-04-12T03:52:21Z")

</div>

I recently got around to uninstalling the old MS ansible extension and installing the new one. First thing I noticed is the syntax highlighting seems weaker. I’ve had all sorts of ansible and yaml extensions installed, s…

---

## [How can I use docker\_secrets in docker\_container?](https://forum.ansible.com/t/how-can-i-use-docker-secrets-in-docker-container/34952)

<div class="topic-metadata">

**Author:** [@Fettheit](https://forum.ansible.com/u/Fettheit)\
**Replies:** 2\
**Last updated:** [April 11, 2021, 5:35pm UTC](https://forum.ansible.com/t/how-can-i-use-docker-secrets-in-docker-container/34952 "2021-04-11T17:35:41Z")

</div>

Hi, is there a way I can use docker\_secrets within docker\_container? If this is not possible maybe someone could help me with this: I want to configure the initial admin-password of a container. Therefore I can use a …

---

## [When conditional does not work with ios\_config module, please help](https://forum.ansible.com/t/when-conditional-does-not-work-with-ios-config-module-please-help/34958)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 3\
**Last updated:** [April 11, 2021, 1:55pm UTC](https://forum.ansible.com/t/when-conditional-does-not-work-with-ios-config-module-please-help/34958 "2021-04-11T13:55:38Z")

</div>

Hi, I have written the below script to check if packages.conf has been updated (by checking it’s date) in flash and if so, to set it as boot statement for switch. But ansible does not seem to consider the when condition…

---

## [Need assistance in using 'OR' condition with  regex\_findall](https://forum.ansible.com/t/need-assistance-in-using-or-condition-with-regex-findall/34959)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 1:42pm UTC](https://forum.ansible.com/t/need-assistance-in-using-or-condition-with-regex-findall/34959 "2021-04-11T13:42:12Z")

</div>

Hi, Below condition in statement 1 and 2 checks the number of boot statement set in switch matches with number of member switches available to ensure that correct boot statement is set for every member switch. Both stat…

---

## [Abridged summary of ansible-project@googlegroups.com - 2 updates in 1 topic](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-2-updates-in-1-topic/34956)

<div class="topic-metadata">

**Author:** [@Joe\_Bortscheller](https://forum.ansible.com/u/Joe_Bortscheller)\
**Replies:** 0\
**Last updated:** [April 10, 2021, 7:49pm UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-2-updates-in-1-topic/34956 "2021-04-10T19:49:39Z")

</div>

Can someone send me a general pdf of what I should be doing

---

## [regex\_findall doesn't work for me. What am i doing wrong?](https://forum.ansible.com/t/regex-findall-doesnt-work-for-me-what-am-i-doing-wrong/34951)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [April 9, 2021, 3:55pm UTC](https://forum.ansible.com/t/regex-findall-doesnt-work-for-me-what-am-i-doing-wrong/34951 "2021-04-09T15:55:33Z")

</div>

Hi, I wrote a script to check if particular IOS version is set as boot statement. But it doesn’t work. What am i doing wrong? name: Gather show boot ios\_command: commands: “show boot” register: show\_boot debug: ms…

---

## [Failing dependencies 'ansible-test --docker sanity'](https://forum.ansible.com/t/failing-dependencies-ansible-test-docker-sanity/34950)

<div class="topic-metadata">

**Author:** [@Petr\_Klima](https://forum.ansible.com/u/Petr_Klima)\
**Replies:** 0\
**Last updated:** [April 9, 2021, 11:12am UTC](https://forum.ansible.com/t/failing-dependencies-ansible-test-docker-sanity/34950 "2021-04-09T11:12:43Z")

</div>

Hello, I am developing new collection for Cisco SMB switches and I am failing to run sanity tests. See https://github.com/ansible-collections/community.ciscosmb/runs/2304480423?check\_suite\_focus=true Test is complaini…

---

## [centralised authentication of linux servers and integrates with google work space](https://forum.ansible.com/t/centralised-authentication-of-linux-servers-and-integrates-with-google-work-space/34949)

<div class="topic-metadata">

**Author:** [@Siva1](https://forum.ansible.com/u/Siva1)\
**Replies:** 3\
**Last updated:** [April 9, 2021, 10:41am UTC](https://forum.ansible.com/t/centralised-authentication-of-linux-servers-and-integrates-with-google-work-space/34949 "2021-04-09T10:41:20Z")

</div>

Hi All , Goodmorning .I am new to ansible and also to devops My organisation wanted me to do centralised authentication of linux servers ,Vm 's ,vcenter for any employee joins the organisation and they want to integrat…

---

## [junit callback Options example](https://forum.ansible.com/t/junit-callback-options-example/26149)

<div class="topic-metadata">

**Author:** [@Diego\_Lagos](https://forum.ansible.com/u/Diego_Lagos)\
**Replies:** 3\
**Last updated:** [April 9, 2021, 12:20am UTC](https://forum.ansible.com/t/junit-callback-options-example/26149 "2021-04-09T00:20:14Z")

</div>

Hello, I would like to use the junit callback (http://docs.ansible.com/ansible/devel/plugins/callback/junit.html), but I find no examples of how to configure the options. Must be configured within the plyabook, within …

---

## [ansible become user failing due to shell execution restrictions](https://forum.ansible.com/t/ansible-become-user-failing-due-to-shell-execution-restrictions/34946)

<div class="topic-metadata">

**Author:** [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 7:46pm UTC](https://forum.ansible.com/t/ansible-become-user-failing-due-to-shell-execution-restrictions/34946 "2021-04-08T19:46:25Z")

</div>

I am running into an interesting issue, and wondered if anyone has hit the same thing as I have. We have our sudo configs locked down pretty tight, and don’t allow users to do execute a shell directly using sudo. So, bas…

---

## [How to use Ansible Kubernetes packages with the Helm package manager modules](https://forum.ansible.com/t/how-to-use-ansible-kubernetes-packages-with-the-helm-package-manager-modules/34883)

<div class="topic-metadata">

**Author:** [@Sivaraman](https://forum.ansible.com/u/Sivaraman)\
**Replies:** 9\
**Last updated:** [April 8, 2021, 1:51pm UTC](https://forum.ansible.com/t/how-to-use-ansible-kubernetes-packages-with-the-helm-package-manager-modules/34883 "2021-04-08T13:51:03Z")

</div>

Hi All, I am trying to do helm install using Ansible Kubernetes packages with the Helm package manager modules. If I use the below command in Ansible shell, the helm deployment is a success. name: install\_nr\_kubernet…

---

## [ansible.windows.win\_copy - Copy wireguard config files works but throws an error](https://forum.ansible.com/t/ansible-windows-win-copy-copy-wireguard-config-files-works-but-throws-an-error/34940)

<div class="topic-metadata">

**Author:** [@need\_abettername](https://forum.ansible.com/u/need_abettername)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 1:35pm UTC](https://forum.ansible.com/t/ansible-windows-win-copy-copy-wireguard-config-files-works-but-throws-an-error/34940 "2021-04-08T13:35:37Z")

</div>

It’s possible to install config files for Windows Wireguard GUI by copying them to a location “The manager service monitors %ProgramFiles%\\WireGuard\\Data\\Configurations\\ for the addition of new .conf files. Upon seeing …

---

## [Merge/Combine Inventory Variables with Defaults rather than override](https://forum.ansible.com/t/merge-combine-inventory-variables-with-defaults-rather-than-override/27701)

<div class="topic-metadata">

**Author:** [@christoph.vogelsberg](https://forum.ansible.com/u/christoph.vogelsberg)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 10:59am UTC](https://forum.ansible.com/t/merge-combine-inventory-variables-with-defaults-rather-than-override/27701 "2021-04-08T10:59:36Z")

</div>

Hey folks, the defaults/main.yml in a Role will be overridden in the precedence chain. In essence, as I understand, it is a dictionary that will be overlayed/merged/combined with sub-sequent variable settings (e.g. by i…

---

## [How to Skip a empty member inside the F5 pool](https://forum.ansible.com/t/how-to-skip-a-empty-member-inside-the-f5-pool/34936)

<div class="topic-metadata">

**Author:** [@lokesh\_M](https://forum.ansible.com/u/lokesh_M)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 8:43am UTC](https://forum.ansible.com/t/how-to-skip-a-empty-member-inside-the-f5-pool/34936 "2021-04-08T08:43:35Z")

</div>

Hi Guys, Hope some one can help me out. We are trying to run a ansible playbook which checks the give node IP within the pool members node to check the Presence. But due to some Pool doesn’t have any member node to chec…

---

## [I want edit an openshift router-default deployment with ansible](https://forum.ansible.com/t/i-want-edit-an-openshift-router-default-deployment-with-ansible/34928)

<div class="topic-metadata">

**Author:** [@John\_Macioci](https://forum.ansible.com/u/John_Macioci)\
**Replies:** 0\
**Last updated:** [April 7, 2021, 11:46am UTC](https://forum.ansible.com/t/i-want-edit-an-openshift-router-default-deployment-with-ansible/34928 "2021-04-07T11:46:36Z")

</div>

I’m attempting to edit a router-default deployment with ansible. I want to change a section in the router-default from: topologyKey: kubernetes.io/hostname → topologyKey: failure-domain.beta.kubernetes.io/zone I can …

---

## [Cronjobs using ansible](https://forum.ansible.com/t/cronjobs-using-ansible/34927)

<div class="topic-metadata">

**Author:** [@Gurudatta\_Nadig](https://forum.ansible.com/u/Gurudatta_Nadig)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 11:34am UTC](https://forum.ansible.com/t/cronjobs-using-ansible/34927 "2021-04-07T11:34:01Z")

</div>

Good day team, We are planning to run the Cron using anisble, while running we are getting the following message (You (tomcat) are not allowed to use this program (crontab) Any pointer.

---

## [Windows Hosts Fail: Control master terminated unexpectedly](https://forum.ansible.com/t/windows-hosts-fail-control-master-terminated-unexpectedly/34925)

<div class="topic-metadata">

**Author:** [@Christopher\_Walker](https://forum.ansible.com/u/Christopher_Walker)\
**Replies:** 0\
**Last updated:** [April 6, 2021, 8:30pm UTC](https://forum.ansible.com/t/windows-hosts-fail-control-master-terminated-unexpectedly/34925 "2021-04-06T20:30:49Z")

</div>

Hello, I’m having issues with Ansible connecting to WIndows Hosts with OpenSHH. Receiving the following Error: Data could not be sent to remote host “10…10.10.10”. Make sure this host can be reached over ssh: OpenSSH\_7.…

---

## [Ansible command License policy](https://forum.ansible.com/t/ansible-command-license-policy/34889)

<div class="topic-metadata">

**Author:** [@Manish\_Sharma](https://forum.ansible.com/u/Manish_Sharma)\
**Replies:** 2\
**Last updated:** [April 6, 2021, 4:58pm UTC](https://forum.ansible.com/t/ansible-command-license-policy/34889 "2021-04-06T16:58:40Z")

</div>

Hello Great People I have a use case where I am using Ansible (only command line, no Ansible tower or AWX) for configuration management for infrastructure. This infrastructure I am using for a commercial software that …

---

## [Collecting unreachable hosts list](https://forum.ansible.com/t/collecting-unreachable-hosts-list/34918)

<div class="topic-metadata">

**Author:** [@Somasundaram\_R](https://forum.ansible.com/u/Somasundaram_R)\
**Replies:** 1\
**Last updated:** [April 6, 2021, 4:57pm UTC](https://forum.ansible.com/t/collecting-unreachable-hosts-list/34918 "2021-04-06T16:57:17Z")

</div>

In my playbook, I have included a role in my first play to generate a report from template. And in my second play, updating same report. When I keep both play in different file and run, both updating the file. But if …

---

## [python script to run in playbook](https://forum.ansible.com/t/python-script-to-run-in-playbook/34921)

<div class="topic-metadata">

**Author:** [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Replies:** 0\
**Last updated:** [April 6, 2021, 10:52am UTC](https://forum.ansible.com/t/python-script-to-run-in-playbook/34921 "2021-04-06T10:52:14Z")

</div>

hello all, Greetings. i was trying to run a python script in ansible playbook as below. name: execute install script script: parse.py this works, but i want to use the generated output of script into inventory file. …

---

## [unable to create VM on esxi 7.0](https://forum.ansible.com/t/unable-to-create-vm-on-esxi-7-0/34916)

<div class="topic-metadata">

**Author:** [@bec12317](https://forum.ansible.com/u/bec12317)\
**Replies:** 6\
**Last updated:** [April 6, 2021, 8:29am UTC](https://forum.ansible.com/t/unable-to-create-vm-on-esxi-7-0/34916 "2021-04-06T08:29:14Z")

</div>

I am creating a virtual machine using ansible. I received this error and do not know how to solve it. I am new student to both VMware and asnible. This is the error i received: fatal: \[localhost → localhost\]: FAILED! =\> …

---

## [loading roles, etc. from internal url?](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909)

<div class="topic-metadata">

**Author:** [@Philip\_Brown](https://forum.ansible.com/u/Philip_Brown)\
**Replies:** 2\
**Last updated:** [April 5, 2021, 2:41pm UTC](https://forum.ansible.com/t/loading-roles-etc-from-internal-url/34909 "2021-04-05T14:41:48Z")

</div>

Hello, some what new to ansible. I’ve read a little about “galaxy”, but want to pull in private code from in-house server only. Basically, I’d like a one-stop-shopping bootstrap playbook, “setup.yml”, that can pull in …

---

## [Unable to get local issuer certificate](https://forum.ansible.com/t/unable-to-get-local-issuer-certificate/34913)

<div class="topic-metadata">

**Author:** [@Aram](https://forum.ansible.com/u/Aram)\
**Replies:** 0\
**Last updated:** [April 3, 2021, 8:55pm UTC](https://forum.ansible.com/t/unable-to-get-local-issuer-certificate/34913 "2021-04-03T20:55:53Z")

</div>

Hi, I’m running Tower 3.8.2 and Ansible 2.9.18 on RHEL 8 VM. Along side of GitLab 13.10.2 on another VM. Both instances have a Hashicorp Vault hosted CA and cert applied (GitLab, has a nginx reverse proxy in front of i…

---

## [when will the variable substitution happen?](https://forum.ansible.com/t/when-will-the-variable-substitution-happen/34898)

<div class="topic-metadata">

**Author:** [@Sisyphus](https://forum.ansible.com/u/Sisyphus)\
**Replies:** 2\
**Last updated:** [April 1, 2021, 3:49pm UTC](https://forum.ansible.com/t/when-will-the-variable-substitution-happen/34898 "2021-04-01T15:49:23Z")

</div>

I cannot find any where in the document about when the variable substitution happen. I want to know this because we can define variables in several places and we can refer to variables in different scopes. For example, a…

---

## [sudo passwd error](https://forum.ansible.com/t/sudo-passwd-error/34903)

<div class="topic-metadata">

**Author:** [@shekar\_reddy](https://forum.ansible.com/u/shekar_reddy)\
**Replies:** 1\
**Last updated:** [April 1, 2021, 1:41pm UTC](https://forum.ansible.com/t/sudo-passwd-error/34903 "2021-04-01T13:41:13Z")

</div>

Hi All, I am performing snmpd.conf file modifying using ansible-playbook.I am getting below error, Could you please anybody help me on this issue? Regards, Chand (attachments)

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

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