# Ansible Project

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

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

**Page:** 288

---

## [Trying to Change Splunk Password via Splunk Syntax - Erroring](https://forum.ansible.com/t/trying-to-change-splunk-password-via-splunk-syntax-erroring/26507)

<div class="topic-metadata">

**Author:** [@Heather\_Luna](https://forum.ansible.com/u/Heather_Luna)\
**Replies:** 2\
**Last updated:** [January 18, 2018, 7:29am UTC](https://forum.ansible.com/t/trying-to-change-splunk-password-via-splunk-syntax-erroring/26507 "2018-01-18T07:29:14Z")

</div>

Hello! My first playbook is just about complete. I just have a couple config changes to make with some .conf files and a password edit for the splunk user. Splunk documentation states to run this command at the command…

---

## [Ansible 2.4.3.0 rc2 ready for testing](https://forum.ansible.com/t/ansible-2-4-3-0-rc2-ready-for-testing/26508)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [January 18, 2018, 2:59am UTC](https://forum.ansible.com/t/ansible-2-4-3-0-rc2-ready-for-testing/26508 "2018-01-18T02:59:18Z")

</div>

Hi all, we're happy to announce that RC2 for 2.4.3.0 is now available for testing. How do you get it?

---

## [how to best accomodate different default values for variables in a role. eg list of ports to open may change when a new version of the software (= role ) is installed](https://forum.ansible.com/t/how-to-best-accomodate-different-default-values-for-variables-in-a-role-eg-list-of-ports-to-open-may-change-when-a-new-version-of-the-software-role-is-installed/26498)

<div class="topic-metadata">

**Author:** [@Chris7444](https://forum.ansible.com/u/Chris7444)\
**Replies:** 4\
**Last updated:** [January 17, 2018, 9:25pm UTC](https://forum.ansible.com/t/how-to-best-accomodate-different-default-values-for-variables-in-a-role-eg-list-of-ports-to-open-may-change-when-a-new-version-of-the-software-role-is-installed/26498 "2018-01-17T21:25:37Z")

</div>

Sorry of the subject is not very descriptive. Let me be more explicit here I have a role that installs a piece of software at version N. this role by default open ports number x and y in the firewall. This list of ports…

---

## [Perform a failed\_when: on an async task based on a value from stdout](https://forum.ansible.com/t/perform-a-failed-when-on-an-async-task-based-on-a-value-from-stdout/22337)

<div class="topic-metadata">

**Author:** [@Omar\_E](https://forum.ansible.com/u/Omar_E)\
**Replies:** 1\
**Last updated:** [January 17, 2018, 8:49pm UTC](https://forum.ansible.com/t/perform-a-failed-when-on-an-async-task-based-on-a-value-from-stdout/22337 "2018-01-17T20:49:47Z")

</div>

I am trying to perform a failed\_when: on an async task based on a value from stdout. This is my task: name: RUN SOME TASK LOCALLY command: \<run\_some\_script\_here\>.sh chdir=/task\_folder/ delegate\_to: localhost regis…

---

## [how to search inside variables or debug ?](https://forum.ansible.com/t/how-to-search-inside-variables-or-debug/26504)

<div class="topic-metadata">

**Author:** [@F11](https://forum.ansible.com/u/F11)\
**Replies:** 2\
**Last updated:** [January 17, 2018, 5:19pm UTC](https://forum.ansible.com/t/how-to-search-inside-variables-or-debug/26504 "2018-01-17T17:19:18Z")

</div>

Ref: http://blog.toast38coza.me/custom-ansible-module-hello-world/ play.yml hosts: test tasks: name: Test that my module works logmonitor\_v1: register: result debug: var=result name: Checking if there is a…

---

## [How to enhance the --check mode](https://forum.ansible.com/t/how-to-enhance-the-check-mode/26500)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [January 17, 2018, 5:11pm UTC](https://forum.ansible.com/t/how-to-enhance-the-check-mode/26500 "2018-01-17T17:11:53Z")

</div>

Hello all, we use ansible playbooks to deploy an ininital config for e.g. postfix, chrony and sshd\_config to new hosts. After the deployment these systems are under the control of the associated SysAdmin. We would like …

---

## [Ansible copy multiple files to multiple destinations ??](https://forum.ansible.com/t/ansible-copy-multiple-files-to-multiple-destinations/26003)

<div class="topic-metadata">

**Author:** [@Love](https://forum.ansible.com/u/Love)\
**Replies:** 10\
**Last updated:** [January 17, 2018, 4:12pm UTC](https://forum.ansible.com/t/ansible-copy-multiple-files-to-multiple-destinations/26003 "2018-01-17T16:12:54Z")

</div>

We need to be able to copy/push multiple files from multiple sources to multiple destinations on destination servers, I’m having trouble with below code, can anyone suggest the right syntax to update code? I have 3 diff…

---

## [ansible facts on hardened servers etc 0711](https://forum.ansible.com/t/ansible-facts-on-hardened-servers-etc-0711/26502)

<div class="topic-metadata">

**Author:** [@George\_V](https://forum.ansible.com/u/George_V)\
**Replies:** 0\
**Last updated:** [January 17, 2018, 3:37pm UTC](https://forum.ansible.com/t/ansible-facts-on-hardened-servers-etc-0711/26502 "2018-01-17T15:37:26Z")

</div>

In a shared-hosting environment it is important to give out as little info as possible to the users. For this purpose, permissions on most folders under / = 0711 . With /etc 0755, I can pull ansible facts, however with 0…

---

## [ansible playbook - tasks in block are ignored and aren't executing](https://forum.ansible.com/t/ansible-playbook-tasks-in-block-are-ignored-and-arent-executing/26501)

<div class="topic-metadata">

**Author:** [@chipcha](https://forum.ansible.com/u/chipcha)\
**Replies:** 0\
**Last updated:** [January 17, 2018, 2:25pm UTC](https://forum.ansible.com/t/ansible-playbook-tasks-in-block-are-ignored-and-arent-executing/26501 "2018-01-17T14:25:17Z")

</div>

Hi all, I was hoping if you can help me with an issue I encountered while running my playbook. The playbook worked successfully until I rebased my code and now it appears to stop running tasks from a specific block (se…

---

## [FAILED - RETRYING: does not stop](https://forum.ansible.com/t/failed-retrying-does-not-stop/26499)

<div class="topic-metadata">

**Author:** [@user42](https://forum.ansible.com/u/user42)\
**Replies:** 0\
**Last updated:** [January 17, 2018, 11:38am UTC](https://forum.ansible.com/t/failed-retrying-does-not-stop/26499 "2018-01-17T11:38:54Z")

</div>

In my script, the startup command of the server is started, and then it is checked whether the server has started. In fact the server started, but the ansible does not see this, the countdown of “FAILED - RETRYING” conti…

---

## [delegate\_to hanging](https://forum.ansible.com/t/delegate-to-hanging/26497)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 0\
**Last updated:** [January 17, 2018, 6:29am UTC](https://forum.ansible.com/t/delegate-to-hanging/26497 "2018-01-17T06:29:43Z")

</div>

Hi, my playbook file: hosts: oraclesource\[0\] tasks: name: Copy Remote-To-Remote (from serverA to serverB) synchronize: src=/root/gopi dest=/root/gopi delegate\_to: “{{groups\[‘oraclesource’\]\[1\]}}” my hosts file: \[o…

---

## [“Invalid credentials Error” in Ansible win\_share when we create the File share permission by using our domain account](https://forum.ansible.com/t/invalid-credentials-error-in-ansible-win-share-when-we-create-the-file-share-permission-by-using-our-domain-account/26496)

<div class="topic-metadata">

**Author:** [@edwinkamal](https://forum.ansible.com/u/edwinkamal)\
**Replies:** 1\
**Last updated:** [January 17, 2018, 4:19am UTC](https://forum.ansible.com/t/invalid-credentials-error-in-ansible-win-share-when-we-create-the-file-share-permission-by-using-our-domain-account/26496 "2018-01-17T04:19:07Z")

</div>

I create app server and install the software using temp username and password in winrm host file.After setup I run the script userdataapp.ps1 to join the machine to XE domain. After that I create Fileshare and adding XE …

---

## [jenkins ansible template](https://forum.ansible.com/t/jenkins-ansible-template/26495)

<div class="topic-metadata">

**Author:** [@Sidh](https://forum.ansible.com/u/Sidh)\
**Replies:** 4\
**Last updated:** [January 16, 2018, 11:54pm UTC](https://forum.ansible.com/t/jenkins-ansible-template/26495 "2018-01-16T23:54:40Z")

</div>

Hi, i am trying to add multiple sudoers line with template. so, i am passing sudoers=abc,def within jenkins and use -e (extended vars) while running playbook in template: {% for item in sudoers %} {{ item }} ALL=(AL…

---

## [Combine ansible-vault with prompted variables?](https://forum.ansible.com/t/combine-ansible-vault-with-prompted-variables/26494)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 0\
**Last updated:** [January 16, 2018, 8:30pm UTC](https://forum.ansible.com/t/combine-ansible-vault-with-prompted-variables/26494 "2018-01-16T20:30:31Z")

</div>

The problem I have right now is that, to use ansible-vault encrypted strings, I need to specify on the command line --vault-id=foo@prompt . I don’t use encrypted strings very often, so I’d rather have my play notice tha…

---

## [apt module is reinstalling the same .deb file on every single run of a playbook](https://forum.ansible.com/t/apt-module-is-reinstalling-the-same-deb-file-on-every-single-run-of-a-playbook/26439)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 9\
**Last updated:** [January 16, 2018, 8:16pm UTC](https://forum.ansible.com/t/apt-module-is-reinstalling-the-same-deb-file-on-every-single-run-of-a-playbook/26439 "2018-01-16T20:16:54Z")

</div>

Every single time I run a task that installs a .deb file, the apt module reinstalls the file. Even when the file has not changed since the last run. Specifically, on the remote machine, I have uploaded a file to /mounts…

---

## [Idempotent fetching of files by URL](https://forum.ansible.com/t/idempotent-fetching-of-files-by-url/26464)

<div class="topic-metadata">

**Author:** [@Josh\_Smift2](https://forum.ansible.com/u/Josh_Smift2)\
**Replies:** 5\
**Last updated:** [January 16, 2018, 8:16pm UTC](https://forum.ansible.com/t/idempotent-fetching-of-files-by-url/26464 "2018-01-16T20:16:08Z")

</div>

There doesn’t seem to be a way to fetch a file by URL that meets both of these criteria: When run without --check, replaces the dest file with the contents of the source file if and only if they’re different. When run …

---

## [ansible question](https://forum.ansible.com/t/ansible-question/26482)

<div class="topic-metadata">

**Author:** [@rajesh1](https://forum.ansible.com/u/rajesh1)\
**Replies:** 1\
**Last updated:** [January 16, 2018, 7:03pm UTC](https://forum.ansible.com/t/ansible-question/26482 "2018-01-16T19:03:29Z")

</div>

May be this question is so basic, frustrating me not in any document explains this scenario. advance thanks for your help . Ansible not loading the become\_user profile . this may look like small issue but i want to run …

---

## [What's-up with docker-py? Has anyone got ansible to docker working on Mac?](https://forum.ansible.com/t/whats-up-with-docker-py-has-anyone-got-ansible-to-docker-working-on-mac/26492)

<div class="topic-metadata">

**Author:** [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Replies:** 0\
**Last updated:** [January 16, 2018, 6:58pm UTC](https://forum.ansible.com/t/whats-up-with-docker-py-has-anyone-got-ansible-to-docker-working-on-mac/26492 "2018-01-16T18:58:16Z")

</div>

Hi all, I am new here… I fell in love with Ansible to control docker, but after 2 months of time invested, I have very little to show for it, but really want to get this working. I have a Mac, the “Controller”, and RPi…

---

## [Using YAML anchors in host\_vars that are defined in group\_vars](https://forum.ansible.com/t/using-yaml-anchors-in-host-vars-that-are-defined-in-group-vars/26487)

<div class="topic-metadata">

**Author:** [@bretgiddings](https://forum.ansible.com/u/bretgiddings)\
**Replies:** 1\
**Last updated:** [January 16, 2018, 4:06pm UTC](https://forum.ansible.com/t/using-yaml-anchors-in-host-vars-that-are-defined-in-group-vars/26487 "2018-01-16T16:06:10Z")

</div>

Hello, I’m trying to create some snippets of configuration data that is to be shared between two servers so that various different tunnel configs can be kept in one place. So, I was hoping to have something like the fol…

---

## [variable inside regex\_search inside a variable :)](https://forum.ansible.com/t/variable-inside-regex-search-inside-a-variable/23411)

<div class="topic-metadata">

**Author:** [@az1](https://forum.ansible.com/u/az1)\
**Replies:** 2\
**Last updated:** [January 16, 2018, 12:28pm UTC](https://forum.ansible.com/t/variable-inside-regex-search-inside-a-variable/23411 "2018-01-16T12:28:36Z")

</div>

Hello, after hours of struggle with Ansible I’ve decided to ask for help smarter people. What I’m trying to do is to remove (lets say just do ls -la for now all files and directories within certain locations which names…

---

## [JMESPath-like expression to traverse Ansible variables](https://forum.ansible.com/t/jmespath-like-expression-to-traverse-ansible-variables/26480)

<div class="topic-metadata">

**Author:** [@Manfredi\_Giordano](https://forum.ansible.com/u/Manfredi_Giordano)\
**Replies:** 3\
**Last updated:** [January 16, 2018, 10:11am UTC](https://forum.ansible.com/t/jmespath-like-expression-to-traverse-ansible-variables/26480 "2018-01-16T10:11:33Z")

</div>

Hello all, I’m struggling to find a way to use \[\] inside a query to traverse an Ansible variable. The content of the variable comes from a JSON file. The error message I get is "\_template error while templating string:…

---

## ["Start in" field for win\_shortcut](https://forum.ansible.com/t/start-in-field-for-win-shortcut/26475)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 6\
**Last updated:** [January 16, 2018, 8:06am UTC](https://forum.ansible.com/t/start-in-field-for-win-shortcut/26475 "2018-01-16T08:06:13Z")

</div>

Hi, Im making a shortcut in shell:startup, which works. BUT: It does not work properly. I have found the reason for this is when you right click the shortcut, the “Start In” field is empty. When I do it manually, the…

---

## [BIOS update succeeds, but shows as ansible failure](https://forum.ansible.com/t/bios-update-succeeds-but-shows-as-ansible-failure/26483)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 3\
**Last updated:** [January 16, 2018, 1:01am UTC](https://forum.ansible.com/t/bios-update-succeeds-but-shows-as-ansible-failure/26483 "2018-01-16T01:01:43Z")

</div>

Hello all. Here’s a simple one, I think, which is non-fatal, but I’d like to clean it up. I want to push BIOS updates to our Dell desktops, and have created a playbook for that purpose: hosts: all gather\_facts: false …

---

## [Problem with groups in inventory](https://forum.ansible.com/t/problem-with-groups-in-inventory/26463)

<div class="topic-metadata">

**Author:** [@Chris\_Barlock](https://forum.ansible.com/u/Chris_Barlock)\
**Replies:** 8\
**Last updated:** [January 15, 2018, 11:32pm UTC](https://forum.ansible.com/t/problem-with-groups-in-inventory/26463 "2018-01-15T23:32:09Z")

</div>

I posted this yesterday, but have yet to see it show up in the forum: I have the following in one of my playbooks: name: “Copy SSH keys” command: sshpass -f ~/temp.pass ssh-copy-id -i ~/.ssh/id\_rsa.pub {{ ansible\_use…

---

## [Issue with variable not interpolated using synchronize module](https://forum.ansible.com/t/issue-with-variable-not-interpolated-using-synchronize-module/26484)

<div class="topic-metadata">

**Author:** [@dg1](https://forum.ansible.com/u/dg1)\
**Replies:** 0\
**Last updated:** [January 15, 2018, 9:49pm UTC](https://forum.ansible.com/t/issue-with-variable-not-interpolated-using-synchronize-module/26484 "2018-01-15T21:49:32Z")

</div>

Hello, I created a playbook with a simple role to try the synchronize module, but when I run the playbook the hostname variable is not resolved and I get this error: ssh: Could not resolve hostname {{ app.vm.hostname }…

---

## [group\_vars dir structure question (2.4.2.0)](https://forum.ansible.com/t/group-vars-dir-structure-question-2-4-2-0/26479)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 0\
**Last updated:** [January 15, 2018, 3:27pm UTC](https://forum.ansible.com/t/group-vars-dir-structure-question-2-4-2-0/26479 "2018-01-15T15:27:07Z")

</div>

group\_vars and host\_vars can reside in 2 locations. Relative to the current executing playbook file Relative to the inventory file Note that I explicitly mention “file”, as that is what ansible uses when looking relat…

---

## [Debug Module Returns "Hello, World!" when a message is specified.](https://forum.ansible.com/t/debug-module-returns-hello-world-when-a-message-is-specified/26476)

<div class="topic-metadata">

**Author:** [@Philip\_Gregory](https://forum.ansible.com/u/Philip_Gregory)\
**Replies:** 1\
**Last updated:** [January 14, 2018, 8:41am UTC](https://forum.ansible.com/t/debug-module-returns-hello-world-when-a-message-is-specified/26476 "2018-01-14T08:41:22Z")

</div>

Using Ansible 2.4.2.0 on Ubuntu 16.04, I try running a plaubook with the following: name: Create repo line in Ubuntu/Debian command: bash -c "echo "deb \[arch=amd64\] https://download.docker.com/linux/debian $(lsb\_relea…

---

## [I cannot see a playbook available in Ansible tower if my source is git hub](https://forum.ansible.com/t/i-cannot-see-a-playbook-available-in-ansible-tower-if-my-source-is-git-hub/26473)

<div class="topic-metadata">

**Author:** [@Brian\_Keyes](https://forum.ansible.com/u/Brian_Keyes)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 6:50pm UTC](https://forum.ansible.com/t/i-cannot-see-a-playbook-available-in-ansible-tower-if-my-source-is-git-hub/26473 "2018-01-12T18:50:27Z")

</div>

I am VERY new to ansible. I am attempting to do this demo at https://www.ansible.com/products/tower/setup all goes well until the “create job template” section in the above document I am unable to see the hello\_world.…

---

## [NEST thermostat](https://forum.ansible.com/t/nest-thermostat/26474)

<div class="topic-metadata">

**Author:** [@sneha\_piriya](https://forum.ansible.com/u/sneha_piriya)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 6:21pm UTC](https://forum.ansible.com/t/nest-thermostat/26474 "2018-01-12T18:21:23Z")

</div>

Anybody who has used YAML to write conditions to automate a NEST thermostat ? Please share your inputs

---

## [Encrypt part of an inventory](https://forum.ansible.com/t/encrypt-part-of-an-inventory/26472)

<div class="topic-metadata">

**Author:** [@DK1](https://forum.ansible.com/u/DK1)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 4:50pm UTC](https://forum.ansible.com/t/encrypt-part-of-an-inventory/26472 "2018-01-12T16:50:46Z")

</div>

Hi, I have a number of different inventory like the following. Each inventory will have variables for different usernames & passwords all: children: A: hosts: minion1: ansible\_host: 10.134.47.102 minion2: ansib…

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

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