# Ansible Project

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

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

**Page:** 310

---

## [tracking progress & undo strategy](https://forum.ansible.com/t/tracking-progress-undo-strategy/25631)

<div class="topic-metadata">

**Author:** [@iurly](https://forum.ansible.com/u/iurly)\
**Replies:** 5\
**Last updated:** [September 29, 2017, 3:31pm UTC](https://forum.ansible.com/t/tracking-progress-undo-strategy/25631 "2017-09-29T15:31:05Z")

</div>

Hi there, I just started evaluating ansible as the means to handle a few remote systems. Namely I’m talking about a bunch of raspberry pi’s running raspbian, which should be running pretty much the same configuration. …

---

## [Ansible: How to know existence of a error string from an output](https://forum.ansible.com/t/ansible-how-to-know-existence-of-a-error-string-from-an-output/25634)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 1\
**Last updated:** [September 29, 2017, 3:31pm UTC](https://forum.ansible.com/t/ansible-how-to-know-existence-of-a-error-string-from-an-output/25634 "2017-09-29T15:31:03Z")

</div>

Hi , I am trying to pass or fail a command execution if i get an exact error message as a result of command execution. but i dont’t know how to extract a output string from a registered variable. I am sure somebody ca…

---

## [Combining 2 lists of strings with a separator](https://forum.ansible.com/t/combining-2-lists-of-strings-with-a-separator/25612)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 4\
**Last updated:** [September 29, 2017, 1:24pm UTC](https://forum.ansible.com/t/combining-2-lists-of-strings-with-a-separator/25612 "2017-09-29T13:24:55Z")

</div>

hello guys, I need to build filenames based on 3 parts: basename, version and trailing ‘.x86\_64.rpm’. Let’s focus on the first 2 parts: The first one is: “installed\_mtx\_packages\_name”: \[ “mtx-device”, “mtx-grpc-age…

---

## [Checking HTTP status codes with win\_uri and Ansible 2.4.0.0](https://forum.ansible.com/t/checking-http-status-codes-with-win-uri-and-ansible-2-4-0-0/25637)

<div class="topic-metadata">

**Author:** [@Guillaume\_Belrose](https://forum.ansible.com/u/Guillaume_Belrose)\
**Replies:** 2\
**Last updated:** [September 29, 2017, 12:14pm UTC](https://forum.ansible.com/t/checking-http-status-codes-with-win-uri-and-ansible-2-4-0-0/25637 "2017-09-29T12:14:42Z")

</div>

HI all, I am running Ansible 2.4.0.0 (on Ubuntu 16.04) and I am talking to Windows hosts via WinRM. I am using the win\_uri module which can check the status code of the HTTP response, but I can’t get it to work correct…

---

## [Unable to install python-minimal](https://forum.ansible.com/t/unable-to-install-python-minimal/25582)

<div class="topic-metadata">

**Author:** [@Eric4](https://forum.ansible.com/u/Eric4)\
**Replies:** 4\
**Last updated:** [September 29, 2017, 9:19am UTC](https://forum.ansible.com/t/unable-to-install-python-minimal/25582 "2017-09-29T09:19:16Z")

</div>

I’m running an Ansible playbook to use the raw module, to install python-minimal. The host is reachable. The host can be SSH’ed into as root. However, when running the playbook below, it fails. It gives the error: “…

---

## [Accessing group\_vars variables from a jinja2 loop](https://forum.ansible.com/t/accessing-group-vars-variables-from-a-jinja2-loop/25633)

<div class="topic-metadata">

**Author:** [@alanpassel7](https://forum.ansible.com/u/alanpassel7)\
**Replies:** 1\
**Last updated:** [September 29, 2017, 1:37am UTC](https://forum.ansible.com/t/accessing-group-vars-variables-from-a-jinja2-loop/25633 "2017-09-29T01:37:42Z")

</div>

Good morning, I’m trying to write a loop in a template that will access a variable from group\_vars. This variable is a string, with values separated by commas, so what I’d like to do is something like: \` {% for item i…

---

## [s3 or aws\_s3 module getstr mode. How do you use this?](https://forum.ansible.com/t/s3-or-aws-s3-module-getstr-mode-how-do-you-use-this/25635)

<div class="topic-metadata">

**Author:** [@Jamie\_Jamison](https://forum.ansible.com/u/Jamie_Jamison)\
**Replies:** 0\
**Last updated:** [September 29, 2017, 1:01am UTC](https://forum.ansible.com/t/s3-or-aws-s3-module-getstr-mode-how-do-you-use-this/25635 "2017-09-29T01:01:22Z")

</div>

I was looking at the documentation for the s3 (aws\_s3 in ansible 2.4 and above) module and noticed that there is a getstr mode that downloads an S3 object as a string. I’ve been playing around with this and the only way…

---

## [Interactive Ansible tutorials with dead simple setup via Docker](https://forum.ansible.com/t/interactive-ansible-tutorials-with-dead-simple-setup-via-docker/25630)

<div class="topic-metadata">

**Author:** [@hasan\_turken](https://forum.ansible.com/u/hasan_turken)\
**Replies:** 0\
**Last updated:** [September 28, 2017, 8:28pm UTC](https://forum.ansible.com/t/interactive-ansible-tutorials-with-dead-simple-setup-via-docker/25630 "2017-09-28T20:28:14Z")

</div>

Hi, I’ve recently created a repo on github which provides interactive Ansible tutorials including a single line setup with Docker. I think it can be a good start for those who want to learn ansible from scratch. Pleas…

---

## [Copying file from a remote windows share](https://forum.ansible.com/t/copying-file-from-a-remote-windows-share/25613)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 2\
**Last updated:** [September 28, 2017, 8:18pm UTC](https://forum.ansible.com/t/copying-file-from-a-remote-windows-share/25613 "2017-09-28T20:18:06Z")

</div>

Hi I’m trying to write a PowerShell script which, in part, copies a file from a remote windows share (via UNC path) which I am calling from Ansible (with the “script” module) but I’m getting “The network path was not fo…

---

## [Ansible inventory error](https://forum.ansible.com/t/ansible-inventory-error/25629)

<div class="topic-metadata">

**Author:** [@Zimidar\_Boy](https://forum.ansible.com/u/Zimidar_Boy)\
**Replies:** 0\
**Last updated:** [September 28, 2017, 7:25pm UTC](https://forum.ansible.com/t/ansible-inventory-error/25629 "2017-09-28T19:25:26Z")

</div>

Hi, i have put one ip address like this 2.2.2.2 lab in hosts file. After that i made a group in inventory file of ansible like this \[labs-section\]. Then i tried to ping using ansible -m ping labs-section but its showing…

---

## [vmware\_guest customvalues](https://forum.ansible.com/t/vmware-guest-customvalues/24660)

<div class="topic-metadata">

**Author:** [@Paul\_Farrington](https://forum.ansible.com/u/Paul_Farrington)\
**Replies:** 2\
**Last updated:** [September 28, 2017, 5:26pm UTC](https://forum.ansible.com/t/vmware-guest-customvalues/24660 "2017-09-28T17:26:12Z")

</div>

Hi All, Is anyone using the customvalues option in the vmware\_guest module? if you are, could you please share the syntax definition as i am about to kick my monitors off the desk… I keep getting the following output f…

---

## [problem with conditionals and matching a variable in dictionary list](https://forum.ansible.com/t/problem-with-conditionals-and-matching-a-variable-in-dictionary-list/25626)

<div class="topic-metadata">

**Author:** [@Iryna\_Oliinykova](https://forum.ansible.com/u/Iryna_Oliinykova)\
**Replies:** 4\
**Last updated:** [September 28, 2017, 4:40pm UTC](https://forum.ansible.com/t/problem-with-conditionals-and-matching-a-variable-in-dictionary-list/25626 "2017-09-28T16:40:39Z")

</div>

Hello, I have a problem with when conditionals when trying to match a variable that makes part of a dictionary list. It worked perfectly until Ansible version update till 2.3. Since in new version there are the follow…

---

## [Ansible Snapshot size for Vmware Guest](https://forum.ansible.com/t/ansible-snapshot-size-for-vmware-guest/25562)

<div class="topic-metadata">

**Author:** [@Hemant\_Kulkarni](https://forum.ansible.com/u/Hemant_Kulkarni)\
**Replies:** 1\
**Last updated:** [September 28, 2017, 4:36pm UTC](https://forum.ansible.com/t/ansible-snapshot-size-for-vmware-guest/25562 "2017-09-28T16:36:20Z")

</div>

Hello All, I am using vmware\_guest\_snapshot: module to take snapshot of VMS , I observed that snapshot Process is very fast and snapshot size is very less … if I login to vmware console & take snapshot it will take 11 …

---

## [VMware action through Ansible](https://forum.ansible.com/t/vmware-action-through-ansible/25596)

<div class="topic-metadata">

**Author:** [@Jonay\_Herrera\_y\_Stee](https://forum.ansible.com/u/Jonay_Herrera_y_Stee)\
**Replies:** 2\
**Last updated:** [September 28, 2017, 3:32pm UTC](https://forum.ansible.com/t/vmware-action-through-ansible/25596 "2017-09-28T15:32:03Z")

</div>

Hi, Iam new to Ansible and I am trying to create a playbook to change the state of a bulk of Virtual Machines in Vmware. But I don’t now how to start ! I have read a lot of examples but I didn’t found any example to man…

---

## [\- meta: refresh\_inventory doesn't work with a "when:" condition](https://forum.ansible.com/t/meta-refresh-inventory-doesnt-work-with-a-when-condition/25625)

<div class="topic-metadata">

**Author:** [@arlindo.santos](https://forum.ansible.com/u/arlindo.santos)\
**Replies:** 0\
**Last updated:** [September 28, 2017, 3:18pm UTC](https://forum.ansible.com/t/meta-refresh-inventory-doesnt-work-with-a-when-condition/25625 "2017-09-28T15:18:42Z")

</div>

When using the meta module, how come it doesn’t work with a “when” condition, it will always run regardless of the when condition? meta: refresh\_inventory when: xxxx ← doesn’t matter what you put here meta refresh wil…

---

## [help with variables](https://forum.ansible.com/t/help-with-variables/25619)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 2\
**Last updated:** [September 28, 2017, 2:39pm UTC](https://forum.ansible.com/t/help-with-variables/25619 "2017-09-28T14:39:10Z")

</div>

Can I get your help in diagnosing why this is not working, I am getting the error on task #3 Here are the three tasks; I am wantng to key off of “stdout”: “0”, name: Check if Redis Resources already exists shell: “pcs…

---

## [Special kind of become](https://forum.ansible.com/t/special-kind-of-become/25622)

<div class="topic-metadata">

**Author:** [@Preben\_Asmussen](https://forum.ansible.com/u/Preben_Asmussen)\
**Replies:** 2\
**Last updated:** [September 28, 2017, 11:55am UTC](https://forum.ansible.com/t/special-kind-of-become/25622 "2017-09-28T11:55:02Z")

</div>

Hi I have started using Ansible resently and have a small problem. I have to ssh in as {someuser} and become {jvm} user to execute copy and http get task My sites file looks like

---

## [Problem with conditionals restricting certain tasks](https://forum.ansible.com/t/problem-with-conditionals-restricting-certain-tasks/25615)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 4\
**Last updated:** [September 27, 2017, 8:02pm UTC](https://forum.ansible.com/t/problem-with-conditionals-restricting-certain-tasks/25615 "2017-09-27T20:02:44Z")

</div>

Hi, Just had one more question. Is there a way to stop an Ansible playbook or set of lines from executing if a variable matches a specific text? I saw the Ansible conditionals documentation, however it doesn’t provide g…

---

## [issue with ansible](https://forum.ansible.com/t/issue-with-ansible/25594)

<div class="topic-metadata">

**Author:** [@user56](https://forum.ansible.com/u/user56)\
**Replies:** 1\
**Last updated:** [September 27, 2017, 6:55pm UTC](https://forum.ansible.com/t/issue-with-ansible/25594 "2017-09-27T18:55:52Z")

</div>

Hey guys i’m just configuring my ansible and actually all is ok but whhen i write to file /hosts , information about my server testserver ansible\_host=refresh ansible\_user=sshacc ansible\_private\_key\_file=/home/sshacc/…

---

## [Displaying Return Values](https://forum.ansible.com/t/displaying-return-values/25604)

<div class="topic-metadata">

**Author:** [@C\_Bax](https://forum.ansible.com/u/C_Bax)\
**Replies:** 1\
**Last updated:** [September 27, 2017, 6:53pm UTC](https://forum.ansible.com/t/displaying-return-values/25604 "2017-09-27T18:53:36Z")

</div>

hello all, i am having issues with getting return values from a module, honestly Im just unclear on how to call them this is my code but when i execute the commands push but i get variable undefined from the debug http…

---

## [Passing nodenames as an argument in a command](https://forum.ansible.com/t/passing-nodenames-as-an-argument-in-a-command/25614)

<div class="topic-metadata">

**Author:** [@Parth\_Patel1](https://forum.ansible.com/u/Parth_Patel1)\
**Replies:** 2\
**Last updated:** [September 27, 2017, 5:55pm UTC](https://forum.ansible.com/t/passing-nodenames-as-an-argument-in-a-command/25614 "2017-09-27T17:55:23Z")

</div>

I am new to ansible. This is what I am trying to run, on poc1 run, client -a 8101 -h localhost ‘fabric:ensemble-add -f poc2 poc3’ I want to run above command on “poc1” node passing arguments as “poc2” and “poc3”. How …

---

## [NameError: global name 'VirtualMachineSizeTypes' is not defined](https://forum.ansible.com/t/nameerror-global-name-virtualmachinesizetypes-is-not-defined/25611)

<div class="topic-metadata">

**Author:** [@Krish\_Puvi1](https://forum.ansible.com/u/Krish_Puvi1)\
**Replies:** 0\
**Last updated:** [September 27, 2017, 2:10pm UTC](https://forum.ansible.com/t/nameerror-global-name-virtualmachinesizetypes-is-not-defined/25611 "2017-09-27T14:10:08Z")

</div>

Hi, I’am trying to run a playbook from a Rhel server in AWS to deploy a Rhel instance in Azure. But, I’m getting the following error, The full traceback is: Traceback (most recent call last): File “/tmp/ansible\_aD\_HJ…

---

## [Pass conditional value to environment variable based on host in Ansible playbook](https://forum.ansible.com/t/pass-conditional-value-to-environment-variable-based-on-host-in-ansible-playbook/25609)

<div class="topic-metadata">

**Author:** [@Parth\_Gandhi](https://forum.ansible.com/u/Parth_Gandhi)\
**Replies:** 2\
**Last updated:** [September 27, 2017, 11:34am UTC](https://forum.ansible.com/t/pass-conditional-value-to-environment-variable-based-on-host-in-ansible-playbook/25609 "2017-09-27T11:34:38Z")

</div>

Hi, I need to pass conditional value based on the host in the same group to environment variable in playbook. IS there a way to do it? Here is the use case. I have a host file with a group having 2 servers hosts: \[ra…

---

## [need to install ansible on my solaris 11,can any1 suggest me plz](https://forum.ansible.com/t/need-to-install-ansible-on-my-solaris-11-can-any1-suggest-me-plz/25608)

<div class="topic-metadata">

**Author:** [@adnnan2024](https://forum.ansible.com/u/adnnan2024)\
**Replies:** 5\
**Last updated:** [September 27, 2017, 11:01am UTC](https://forum.ansible.com/t/need-to-install-ansible-on-my-solaris-11-can-any1-suggest-me-plz/25608 "2017-09-27T11:01:23Z")

</div>

need to install ansible on my solaris 11,can any1 suggest me plz

---

## [run playbook over all of the hosts in the environment but limit execution by one host per environemnt children subgroup](https://forum.ansible.com/t/run-playbook-over-all-of-the-hosts-in-the-environment-but-limit-execution-by-one-host-per-environemnt-children-subgroup/25607)

<div class="topic-metadata">

**Author:** [@Andriy\_Tovstik](https://forum.ansible.com/u/Andriy_Tovstik)\
**Replies:** 0\
**Last updated:** [September 27, 2017, 8:28am UTC](https://forum.ansible.com/t/run-playbook-over-all-of-the-hosts-in-the-environment-but-limit-execution-by-one-host-per-environemnt-children-subgroup/25607 "2017-09-27T08:28:16Z")

</div>

Hi, all! I want to do something strange. I have the next inventory in my test env: \` \[module1\_group\] module1-1.host.name module1-2.host.name module1-3.host.name module1-4.host.name \[module2\_group\] module2-1.host…

---

## [Setup module filter question](https://forum.ansible.com/t/setup-module-filter-question/25601)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 3\
**Last updated:** [September 27, 2017, 6:29am UTC](https://forum.ansible.com/t/setup-module-filter-question/25601 "2017-09-27T06:29:17Z")

</div>

Hello, everyone. I’m trying to get ipv4 facts returned via the command line, so I run “ansible myhost -m setup -a filter=”" ". . If I run ansible myhost -m setup -a filter=“ansible\_eth\*”, I get: myhost | SUCCESS =\> { …

---

## [Unable to generate a random password for a user account in Ansible playbook](https://forum.ansible.com/t/unable-to-generate-a-random-password-for-a-user-account-in-ansible-playbook/25606)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [September 27, 2017, 6:21am UTC](https://forum.ansible.com/t/unable-to-generate-a-random-password-for-a-user-account-in-ansible-playbook/25606 "2017-09-27T06:21:44Z")

</div>

Yes, check out lookup pipe. There is also a lookup password that you might be able to use.

---

## [How can Create UserAdmin user using LADP Mapping on Ansible Tower](https://forum.ansible.com/t/how-can-create-useradmin-user-using-ladp-mapping-on-ansible-tower/25605)

<div class="topic-metadata">

**Author:** [@Nuwan\_Vithanage](https://forum.ansible.com/u/Nuwan_Vithanage)\
**Replies:** 0\
**Last updated:** [September 27, 2017, 5:39am UTC](https://forum.ansible.com/t/how-can-create-useradmin-user-using-ladp-mapping-on-ansible-tower/25605 "2017-09-27T05:39:47Z")

</div>

Hi All, I manage to create Admin account using LDAP mapping successfully with below { “Default”: { “admins”: “CN=Ansible Admins,OU=Admins Groups,OU=Support Accounts,DC=peaktrav,DC=com”, “remove\_users”: true, “remov…

---

## [ping is not working with ansible in max os](https://forum.ansible.com/t/ping-is-not-working-with-ansible-in-max-os/25579)

<div class="topic-metadata">

**Author:** [@ahmali2377](https://forum.ansible.com/u/ahmali2377)\
**Replies:** 4\
**Last updated:** [September 27, 2017, 5:32am UTC](https://forum.ansible.com/t/ping-is-not-working-with-ansible-in-max-os/25579 "2017-09-27T05:32:34Z")

</div>

Hi, I have mac OS and already installed ansible, this is my first time to try it. I started it by using a simple ping to the local host, but it is not working please check below the output AHMALI-M-K035:~ ahmali$ ansib…

---

## [Ansible can not run apps with GUI! Is it ok?](https://forum.ansible.com/t/ansible-can-not-run-apps-with-gui-is-it-ok/25593)

<div class="topic-metadata">

**Author:** [@user65](https://forum.ansible.com/u/user65)\
**Replies:** 6\
**Last updated:** [September 26, 2017, 8:36pm UTC](https://forum.ansible.com/t/ansible-can-not-run-apps-with-gui-is-it-ok/25593 "2017-09-26T20:36:23Z")

</div>

Hello. I have faced with an issue that after provisioning of vagrant vm with installed docker there and HA proxy i can not start this vagrant VM from ansible playbook (last step). Vagrant file is ok with proper paramet…

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

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