# Ansible Project

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

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

**Page:** 95

---

## [Win\_shell error while executing powershell script on windows device](https://forum.ansible.com/t/win-shell-error-while-executing-powershell-script-on-windows-device/34292)

<div class="topic-metadata">

**Author:** [@Kundan\_Singh](https://forum.ansible.com/u/Kundan_Singh)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 9:28am UTC](https://forum.ansible.com/t/win-shell-error-while-executing-powershell-script-on-windows-device/34292 "2020-12-07T09:28:36Z")

</div>

Hi All, Greetings for the day… I have created a playbook which basically copy the PowerShell script to endpoint and then execute it on remote server. the PowerShell has some argument which i am passing in win\_shell. B…

---

## [can anyone help me out writing ansible playbook for the upgradation of java in slave machines depending on os\_family](https://forum.ansible.com/t/can-anyone-help-me-out-writing-ansible-playbook-for-the-upgradation-of-java-in-slave-machines-depending-on-os-family/34289)

<div class="topic-metadata">

**Author:** [@prathyusha](https://forum.ansible.com/u/prathyusha)\
**Replies:** 1\
**Last updated:** [December 6, 2020, 7:57am UTC](https://forum.ansible.com/t/can-anyone-help-me-out-writing-ansible-playbook-for-the-upgradation-of-java-in-slave-machines-depending-on-os-family/34289 "2020-12-06T07:57:15Z")

</div>

Hi Everyone, Please can anyone solve this issue I need help its urgent I have written playbook in ansible but while i am running it is throwing error. Below is the syntax for playbook

---

## [Unable to run playbooks from ansible controller](https://forum.ansible.com/t/unable-to-run-playbooks-from-ansible-controller/34284)

<div class="topic-metadata">

**Author:** [@Prathap\_Dasari](https://forum.ansible.com/u/Prathap_Dasari)\
**Replies:** 1\
**Last updated:** [December 4, 2020, 11:51pm UTC](https://forum.ansible.com/t/unable-to-run-playbooks-from-ansible-controller/34284 "2020-12-04T23:51:55Z")

</div>

Hi , I am unable to run the ansible playbooks due it´s stuck while gathering the facts . pda-@localhost /u01/ansible-wldt/pda # ansible-playbook createdomainwldt.yml PLAY \[osb\_admin\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [AT Artifacts is my new stdout](https://forum.ansible.com/t/at-artifacts-is-my-new-stdout/34282)

<div class="topic-metadata">

**Author:** [@Fala\_Baguete](https://forum.ansible.com/u/Fala_Baguete)\
**Replies:** 0\
**Last updated:** [December 4, 2020, 4:50pm UTC](https://forum.ansible.com/t/at-artifacts-is-my-new-stdout/34282 "2020-12-04T16:50:12Z")

</div>

Hello Ansible community :slight\_smile: I modified the purpose of the Artifacts in the Ansible Tower, what I mean is, I use the Artifact text box to return the output I want in a better, cleaner format. My question is, …

---

## [vars plugin](https://forum.ansible.com/t/vars-plugin/34112)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 2\
**Last updated:** [December 4, 2020, 3:17pm UTC](https://forum.ansible.com/t/vars-plugin/34112 "2020-12-04T15:17:16Z")

</div>

peeps, I wrote a vars plugin: https://guy.matz.org/2020/10/26/a-vars-plugin-for-ansible/ any comments would be appreciated. Thanks, Guy

---

## [working with windows](https://forum.ansible.com/t/working-with-windows/34276)

<div class="topic-metadata">

**Author:** [@Kez\_Halls](https://forum.ansible.com/u/Kez_Halls)\
**Replies:** 4\
**Last updated:** [December 4, 2020, 2:14am UTC](https://forum.ansible.com/t/working-with-windows/34276 "2020-12-04T02:14:14Z")

</div>

Hi I am a windows person so no real unix experience. I finally have ansible installed and have also successfully (I think) installed a plugin with the below ansible-galaxy collection install ansible.windows When tryin…

---

## [Use ansible to build/install kernel module](https://forum.ansible.com/t/use-ansible-to-build-install-kernel-module/34278)

<div class="topic-metadata">

**Author:** [@Matt\_Clark](https://forum.ansible.com/u/Matt_Clark)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 6:32pm UTC](https://forum.ansible.com/t/use-ansible-to-build-install-kernel-module/34278 "2020-12-03T18:32:32Z")

</div>

Hi. I’m new to the ansible world, so forgive the noob question. I need to do some post install configuration of a set of Ubuntu bionic devices and one of these things includes installing a custom kernel module from a git…

---

## [Using powercli in Ansible](https://forum.ansible.com/t/using-powercli-in-ansible/24536)

<div class="topic-metadata">

**Author:** [@Bob\_Nian](https://forum.ansible.com/u/Bob_Nian)\
**Replies:** 11\
**Last updated:** [December 3, 2020, 2:27pm UTC](https://forum.ansible.com/t/using-powercli-in-ansible/24536 "2020-12-03T14:27:42Z")

</div>

Is it possible to use powercli in Ansible? This is because I am trying to harden an EXSi host but I am trying simpler code first which is disabling SSH service. I’ve created two files, one is for my powercli script and a…

---

## [use of .keys() and .values() on dict object](https://forum.ansible.com/t/use-of-keys-and-values-on-dict-object/34271)

<div class="topic-metadata">

**Author:** [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 7:55am UTC](https://forum.ansible.com/t/use-of-keys-and-values-on-dict-object/34271 "2020-12-03T07:55:45Z")

</div>

Hi, I saw the dict2items filter, which can be use with # with this var ips: foo: 192.168.1.4 bar: 1.2.3.4 # a task with a loop on it debug: msg: "here is an ip {{ item.value }} loop: "{{ ips | dict2i…

---

## [setting gather\_facts for a role ?](https://forum.ansible.com/t/setting-gather-facts-for-a-role/34270)

<div class="topic-metadata">

**Author:** [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Replies:** 2\
**Last updated:** [December 3, 2020, 7:43am UTC](https://forum.ansible.com/t/setting-gather-facts-for-a-role/34270 "2020-12-03T07:43:15Z")

</div>

Hi, I saw that I can specify gather\_facts: no in a playbook or a tasks list, but is it possible to precise it for a role ? I tried on top of a roles/xxx/tasks.yml (because it's a tasks list) but it throw a syntax …

---

## [Using 2 different users in one playbook](https://forum.ansible.com/t/using-2-different-users-in-one-playbook/34273)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 4\
**Last updated:** [December 2, 2020, 7:49pm UTC](https://forum.ansible.com/t/using-2-different-users-in-one-playbook/34273 "2020-12-02T19:49:48Z")

</div>

We have a playbook we’re trying to implement that will stop an Oracle database via a script, reboot the server, then restart Oracle via a script. The stop/start of Oracle needs to be run as the oracle user, and the reboo…

---

## [best practices in vars organisation](https://forum.ansible.com/t/best-practices-in-vars-organisation/34269)

<div class="topic-metadata">

**Author:** [@Daniel\_Caillibaud](https://forum.ansible.com/u/Daniel_Caillibaud)\
**Replies:** 0\
**Last updated:** [December 2, 2020, 1:30pm UTC](https://forum.ansible.com/t/best-practices-in-vars-organisation/34269 "2020-12-02T13:30:38Z")

</div>

Hi, I'm an ansible beginner, sorry if these topics have been already posted here. I read a lot of pages on https://docs.ansible.com/ (very complete and well done), had a look to ansible-examples (and also some github…

---

## [Problem with Ansible user and home directory on remote computers, pm2 process manager](https://forum.ansible.com/t/problem-with-ansible-user-and-home-directory-on-remote-computers-pm2-process-manager/34262)

<div class="topic-metadata">

**Author:** [@magnifito](https://forum.ansible.com/u/magnifito)\
**Replies:** 3\
**Last updated:** [December 2, 2020, 12:04pm UTC](https://forum.ansible.com/t/problem-with-ansible-user-and-home-directory-on-remote-computers-pm2-process-manager/34262 "2020-12-02T12:04:17Z")

</div>

Hello, I am an Ansible beginner. I am trying to start Python script in pm2 process manager on my computers. I think I have narrowed the problem to Ansible not knowing proper home directory. Become, become\_user, changi…

---

## [using mitogen to speed up Ansible -\> network devices?](https://forum.ansible.com/t/using-mitogen-to-speed-up-ansible-network-devices/34268)

<div class="topic-metadata">

**Author:** [@Raj4](https://forum.ansible.com/u/Raj4)\
**Replies:** 0\
**Last updated:** [December 2, 2020, 7:08am UTC](https://forum.ansible.com/t/using-mitogen-to-speed-up-ansible-network-devices/34268 "2020-12-02T07:08:09Z")

</div>

Hi All, I came across this page https://networkgenomics.com/ansible/ and am curious to know if anyone tried this to speed up Ansible getting data from network devices. If you have any other pointers to speed up or have…

---

## [Ansible-2.10.4 has been released](https://forum.ansible.com/t/ansible-2-10-4-has-been-released/34267)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [December 1, 2020, 10:42pm UTC](https://forum.ansible.com/t/ansible-2-10-4-has-been-released/34267 "2020-12-01T22:42:51Z")

</div>

Hi all, We're happy to announce that the ansible-2.10.4 package is now available! This update contains bugfixes and new, backwards compatible features in the contained collections. Ansible-2.10.x is a big change in h…

---

## [magic variable for target group?](https://forum.ansible.com/t/magic-variable-for-target-group/34264)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 2\
**Last updated:** [December 1, 2020, 9:40pm UTC](https://forum.ansible.com/t/magic-variable-for-target-group/34264 "2020-12-01T21:40:01Z")

</div>

Hi! Does anyone know if there’s a variable set for the target group of a play? For example, for this: hosts: prime roles: nginx postfix Does any variable get set to “prime” in a deterministic way? Thanks! …

---

## [Ansible Tower API - Output from Job Execution](https://forum.ansible.com/t/ansible-tower-api-output-from-job-execution/34266)

<div class="topic-metadata">

**Author:** [@Brett\_Quarterman](https://forum.ansible.com/u/Brett_Quarterman)\
**Replies:** 0\
**Last updated:** [December 1, 2020, 8:22pm UTC](https://forum.ansible.com/t/ansible-tower-api-output-from-job-execution/34266 "2020-12-01T20:22:05Z")

</div>

How do you output the details of the execution of all/each of the Jobs within a Workflow, via the Ansible Tower API?

---

## [When Or statement](https://forum.ansible.com/t/when-or-statement/34239)

<div class="topic-metadata">

**Author:** [@Jason](https://forum.ansible.com/u/Jason)\
**Replies:** 5\
**Last updated:** [December 1, 2020, 4:36pm UTC](https://forum.ansible.com/t/when-or-statement/34239 "2020-12-01T16:36:37Z")

</div>

In an ansible play, is “or” not supported with conditional statements? I have a task that is searching a variable for 2 values. The when statements work alone, but with “or” it runs but doesn’t do what I am expecting. He…

---

## [Trying to use ansible python module location as ansible python interpeter](https://forum.ansible.com/t/trying-to-use-ansible-python-module-location-as-ansible-python-interpeter/34261)

<div class="topic-metadata">

**Author:** [@Adar\_Shaked](https://forum.ansible.com/u/Adar_Shaked)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 12:04pm UTC](https://forum.ansible.com/t/trying-to-use-ansible-python-module-location-as-ansible-python-interpeter/34261 "2020-12-01T12:04:04Z")

</div>

Hi all, i am creating venv at runtime and installs ansible inside like: /tmp/tmp123/bin/ansible-playbook ansible version shows: ansible python module location =/tmp/tmp123/lib/python3.6/site-packages/ansible executa…

---

## [Able to sign in with password when SAML SSO is configured](https://forum.ansible.com/t/able-to-sign-in-with-password-when-saml-sso-is-configured/34258)

<div class="topic-metadata">

**Author:** [@Dave\_Burtton](https://forum.ansible.com/u/Dave_Burtton)\
**Replies:** 0\
**Last updated:** [November 30, 2020, 5:32pm UTC](https://forum.ansible.com/t/able-to-sign-in-with-password-when-saml-sso-is-configured/34258 "2020-11-30T17:32:54Z")

</div>

Hi everyone, I’ve recently configured a Tower installation that uses SAML SSO authentication for a number of my users but I’ve noticed we’re able to sign in with the password I configured the user with during user creat…

---

## [Modify JSON file](https://forum.ansible.com/t/modify-json-file/34249)

<div class="topic-metadata">

**Author:** [@bilkam](https://forum.ansible.com/u/bilkam)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 7:27am UTC](https://forum.ansible.com/t/modify-json-file/34249 "2020-11-30T07:27:54Z")

</div>

Hello I have 2 json files: File Json1 { “name”: “”, “description”: “”, “spec”: \[ { “question\_name”: “VM Name”, “question\_description”: “”, “required”: true, “type”: “text”, “variable”: “VM\_Name”, “min”: 0, “…

---

## [How to embed ansible onto a webpage to submit commands](https://forum.ansible.com/t/how-to-embed-ansible-onto-a-webpage-to-submit-commands/26327)

<div class="topic-metadata">

**Author:** [@Josh\_Hill](https://forum.ansible.com/u/Josh_Hill)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 3:09am UTC](https://forum.ansible.com/t/how-to-embed-ansible-onto-a-webpage-to-submit-commands/26327 "2020-11-30T03:09:34Z")

</div>

Hello Everyone, I know we have Ansible Tower and web GUI that it offers I am interested in creating a Command page for clients that allows them to submit workflow in combination with the modules of a playbook. If anyone…

---

## [SharePoint web parts](https://forum.ansible.com/t/sharepoint-web-parts/34254)

<div class="topic-metadata">

**Author:** [@user29032902](https://forum.ansible.com/u/user29032902)\
**Replies:** 0\
**Last updated:** [November 30, 2020, 3:06am UTC](https://forum.ansible.com/t/sharepoint-web-parts/34254 "2020-11-30T03:06:05Z")

</div>

Hi Everyone, Some of the automations that Ansible manages are important to our business users, like for example, running an external ETL process once an hour. To cut down on phone calls to IT, I want to provide end-user…

---

## [Ansible 2.9 failed to transfer AnsiballZ\_setup.py when gathering facts](https://forum.ansible.com/t/ansible-2-9-failed-to-transfer-ansiballz-setup-py-when-gathering-facts/34253)

<div class="topic-metadata">

**Author:** [@David\_Z](https://forum.ansible.com/u/David_Z)\
**Replies:** 0\
**Last updated:** [November 30, 2020, 1:47am UTC](https://forum.ansible.com/t/ansible-2-9-failed-to-transfer-ansiballz-setup-py-when-gathering-facts/34253 "2020-11-30T01:47:41Z")

</div>

Hi everyone, I’m struggling to get consistent builds working with ansible 2.9.15 + packer 1.6, using python 3.6.10. Specifically, I get failure messages at the gather\_facts step, where the AnsiballZ\_setup.py file doesn’…

---

## [Ansible multi stage environment](https://forum.ansible.com/t/ansible-multi-stage-environment/34252)

<div class="topic-metadata">

**Author:** [@amir\_soufi](https://forum.ansible.com/u/amir_soufi)\
**Replies:** 2\
**Last updated:** [November 29, 2020, 9:31am UTC](https://forum.ansible.com/t/ansible-multi-stage-environment/34252 "2020-11-29T09:31:00Z")

</div>

Ho fols, I was wondering if anyone could advise on how I can manage multi environment variables using ansible. Imagine i have development and staging. I have the following structure: . ├── inventories │ ├── developme…

---

## [create a template jinja for copy hosts of static inventory](https://forum.ansible.com/t/create-a-template-jinja-for-copy-hosts-of-static-inventory/34248)

<div class="topic-metadata">

**Author:** [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 10:01am UTC](https://forum.ansible.com/t/create-a-template-jinja-for-copy-hosts-of-static-inventory/34248 "2020-11-27T10:01:33Z")

</div>

Hello, how to create a template jinja for copy hosts of static inventory Thank you

---

## [Copy host inventory in file](https://forum.ansible.com/t/copy-host-inventory-in-file/34247)

<div class="topic-metadata">

**Author:** [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Replies:** 3\
**Last updated:** [November 27, 2020, 9:05am UTC](https://forum.ansible.com/t/copy-host-inventory-in-file/34247 "2020-11-27T09:05:25Z")

</div>

Hello, How to put each host each time in file example: hosts file: \[webservers\] host1 hos2

---

## [Collection: bundling a txt file](https://forum.ansible.com/t/collection-bundling-a-txt-file/34245)

<div class="topic-metadata">

**Author:** [@belaran](https://forum.ansible.com/u/belaran)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 7:47am UTC](https://forum.ansible.com/t/collection-bundling-a-txt-file/34245 "2020-11-27T07:47:15Z")

</div>

Hi all, I’ve a collection where I would like to externalize an array of strings. At run time, the collection will read their content and create an array based on the file. The idea being that this list can change withou…

---

## [Ansible Base 2.10 is not supported by Red Hat?](https://forum.ansible.com/t/ansible-base-2-10-is-not-supported-by-red-hat/34237)

<div class="topic-metadata">

**Author:** [@Raj4](https://forum.ansible.com/u/Raj4)\
**Replies:** 8\
**Last updated:** [November 26, 2020, 5:03pm UTC](https://forum.ansible.com/t/ansible-base-2-10-is-not-supported-by-red-hat/34237 "2020-11-26T17:03:33Z")

</div>

Hi All, We are trying to evaluate Ansible vs Nornir. I found this update which says Ansible Base 2.10 is not supported by Red Hat, nor are there plans to package or release it to official downstream Red Hat distributio…

---

## [Run Playbooks for each hosts](https://forum.ansible.com/t/run-playbooks-for-each-hosts/34242)

<div class="topic-metadata">

**Author:** [@blue\_fox](https://forum.ansible.com/u/blue_fox)\
**Replies:** 10\
**Last updated:** [November 26, 2020, 4:56pm UTC](https://forum.ansible.com/t/run-playbooks-for-each-hosts/34242 "2020-11-26T16:56:48Z")

</div>

Hello; How to run 3 playbooks for each server alone: Example: \[webservers\] 10.10.10.10 20.20.20.20 Run les 3 playbook for 10.10.10.10, after run it for 20.20.20.20 Thank you

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

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