# Latest

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

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

**Page:** 615

---

## [Attempting to expand Openstack Credentials used in Inventory Sources - help please](https://forum.ansible.com/t/attempting-to-expand-openstack-credentials-used-in-inventory-sources-help-please/25798)

<div class="topic-metadata">

**Author:** [@mohclips](https://forum.ansible.com/u/mohclips)\
**Replies:** 1\
**Last updated:** [October 23, 2017, 3:43am UTC](https://forum.ansible.com/t/attempting-to-expand-openstack-credentials-used-in-inventory-sources-help-please/25798 "2017-10-23T03:43:40Z")

</div>

From this ticket https://github.com/ansible/awx/issues/268 I am trying to tweak the following class and def to enable me to add/overwrite the cloud.yml vars with ones provided by source variables in inventory sources. h…

---

## [Passing a list to a callback - quoting issue](https://forum.ansible.com/t/passing-a-list-to-a-callback-quoting-issue/25800)

<div class="topic-metadata">

**Author:** [@wildfan](https://forum.ansible.com/u/wildfan)\
**Replies:** 4\
**Last updated:** [October 21, 2017, 11:34pm UTC](https://forum.ansible.com/t/passing-a-list-to-a-callback-quoting-issue/25800 "2017-10-21T23:34:53Z")

</div>

I have wasted way too much time on this seemingly simple solution, and was looking for some help. We have a Tower job to deploy AWS cloudwatch and configure the logs to monitor that is kicked off via a callback. I use t…

---

## [Can this be concatinated?  Made more graceful?](https://forum.ansible.com/t/can-this-be-concatinated-made-more-graceful/25796)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [October 21, 2017, 4:18pm UTC](https://forum.ansible.com/t/can-this-be-concatinated-made-more-graceful/25796 "2017-10-21T16:18:05Z")

</div>

I have the following, which works, but it just got me wondering if this can be concatenated or be written in a more graceful way? By that, I don’t mean getent: database=passwd, key=nagios \` name: Check for nagios ins…

---

## [Need help](https://forum.ansible.com/t/need-help/25790)

<div class="topic-metadata">

**Author:** [@parwinderjit\_singh](https://forum.ansible.com/u/parwinderjit_singh)\
**Replies:** 1\
**Last updated:** [October 21, 2017, 8:27am UTC](https://forum.ansible.com/t/need-help/25790 "2017-10-21T08:27:57Z")

</div>

Hi All, i have a below inventory file \[ansible\] parv-vm-01 ansible\_ssh\_host=10.48.21.99 host\_fqdn=parv-vm-01 \[cloudera\_mysql\] parv-vm-02 ansible\_ssh\_host=10.48.21.94 host\_fqdn=parv-vm-02 \[cloudera\_manager\] \[cloude…

---

## [Module design questions: digital\_ocean\_domain](https://forum.ansible.com/t/module-design-questions-digital-ocean-domain/25777)

<div class="topic-metadata">

**Author:** [@Anthony\_Bond1](https://forum.ansible.com/u/Anthony_Bond1)\
**Replies:** 2\
**Last updated:** [October 21, 2017, 1:17am UTC](https://forum.ansible.com/t/module-design-questions-digital-ocean-domain/25777 "2017-10-21T01:17:14Z")

</div>

I’m working to remove the external dependencies within the digital\_ocean modules and I have a few questions. I’m looking for some helpful guidance to make sure I’m moving in the right direction. When a module has been…

---

## [How to use a variable I created in a jinja2 template within playbook?](https://forum.ansible.com/t/how-to-use-a-variable-i-created-in-a-jinja2-template-within-playbook/25793)

<div class="topic-metadata">

**Author:** [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Replies:** 1\
**Last updated:** [October 20, 2017, 7:51pm UTC](https://forum.ansible.com/t/how-to-use-a-variable-i-created-in-a-jinja2-template-within-playbook/25793 "2017-10-20T19:51:07Z")

</div>

Hi, I have something like this in a templates/file.j2 file (happens to be a kafka broker config):

---

## [questions regarding inventories](https://forum.ansible.com/t/questions-regarding-inventories/25762)

<div class="topic-metadata">

**Author:** [@franck\_labatut](https://forum.ansible.com/u/franck_labatut)\
**Replies:** 4\
**Last updated:** [October 20, 2017, 6:49pm UTC](https://forum.ansible.com/t/questions-regarding-inventories/25762 "2017-10-20T18:49:03Z")

</div>

hi guys, quick question for you when you have time, based on the following scenario: using a git project with an ansible inventory plugin (grazie ansible team!!!) thus retrieving my inventory on awx from my scm projec…

---

## [How to make module work with older systems](https://forum.ansible.com/t/how-to-make-module-work-with-older-systems/25774)

<div class="topic-metadata">

**Author:** [@mcsontos](https://forum.ansible.com/u/mcsontos)\
**Replies:** 2\
**Last updated:** [October 20, 2017, 1:25pm UTC](https://forum.ansible.com/t/how-to-make-module-work-with-older-systems/25774 "2017-10-20T13:25:57Z")

</div>

Hi folks, I have run into https://github.com/ansible/ansible/issues/28813 - git\_config not working with el6 systems. I would like to get it fixed, and I am happy to do so myself. What is the best way to handle such comp…

---

## [Wait For Host with Variable Fails](https://forum.ansible.com/t/wait-for-host-with-variable-fails/25787)

<div class="topic-metadata">

**Author:** [@Ken\_Jenney](https://forum.ansible.com/u/Ken_Jenney)\
**Replies:** 2\
**Last updated:** [October 20, 2017, 1:23pm UTC](https://forum.ansible.com/t/wait-for-host-with-variable-fails/25787 "2017-10-20T13:23:19Z")

</div>

I use a script to find an available IP on my network and then assign that IP to a system. The system is up and running with the new IP but wait\_for\_host fails. It looks like the newline is causing issues: \` name: Fin…

---

## [problem using api v2 to insert a new credential.](https://forum.ansible.com/t/problem-using-api-v2-to-insert-a-new-credential/25785)

<div class="topic-metadata">

**Author:** [@Cesar\_Sanchez](https://forum.ansible.com/u/Cesar_Sanchez)\
**Replies:** 3\
**Last updated:** [October 20, 2017, 1:17pm UTC](https://forum.ansible.com/t/problem-using-api-v2-to-insert-a-new-credential/25785 "2017-10-20T13:17:45Z")

</div>

Hi guys. I want to programmatically insert 1000 credentials. I tried to use the api v2, but I’m getting a Bad Request (Bad data found in related field team.) Tried to use tower-cli (v2) and same result. If I use tower…

---

## [AUTOMATE SFTP USING PEXPECT IN YAML SCRIPT NOT WORKING...](https://forum.ansible.com/t/automate-sftp-using-pexpect-in-yaml-script-not-working/25734)

<div class="topic-metadata">

**Author:** [@Zimidar\_Boy](https://forum.ansible.com/u/Zimidar_Boy)\
**Replies:** 11\
**Last updated:** [October 20, 2017, 9:41am UTC](https://forum.ansible.com/t/automate-sftp-using-pexpect-in-yaml-script-not-working/25734 "2017-10-20T09:41:38Z")

</div>

Hi guys, I am working on project to in which I am trying to backup some files from one server and than transfer that files to NAS terastation. So from my ansible box i do ssh into node. Then i make backup of some files …

---

## [Ubuntu overlayroot](https://forum.ansible.com/t/ubuntu-overlayroot/25789)

<div class="topic-metadata">

**Author:** [@Sam\_Thomas](https://forum.ansible.com/u/Sam_Thomas)\
**Replies:** 1\
**Last updated:** [October 20, 2017, 7:44am UTC](https://forum.ansible.com/t/ubuntu-overlayroot/25789 "2017-10-20T07:44:32Z")

</div>

Hi everyone, I am using Ubuntu’s overlayroot to protect the filesystem from power loss events on several remote systems. https://packages.ubuntu.com/trusty/admin/overlayroot Usually I would use the command overlayroot…

---

## [Need Help with writing ansible playbook](https://forum.ansible.com/t/need-help-with-writing-ansible-playbook/25788)

<div class="topic-metadata">

**Author:** [@user56](https://forum.ansible.com/u/user56)\
**Replies:** 1\
**Last updated:** [October 20, 2017, 5:11am UTC](https://forum.ansible.com/t/need-help-with-writing-ansible-playbook/25788 "2017-10-20T05:11:08Z")

</div>

Hello guys i have a really little experience working with ansible, but today my boss told me that i should write ansible playbook for checking disk space in the production machines we have a 15 machines and i want to en…

---

## [Refactoring variables to avoid hard coding the same value over and over again](https://forum.ansible.com/t/refactoring-variables-to-avoid-hard-coding-the-same-value-over-and-over-again/25786)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 0\
**Last updated:** [October 20, 2017, 12:10am UTC](https://forum.ansible.com/t/refactoring-variables-to-avoid-hard-coding-the-same-value-over-and-over-again/25786 "2017-10-20T00:10:38Z")

</div>

I want to refactor the following vars file/playbook pair, to avoid hard-coding the app name in the value for log\_dir attributes. --- # some-role-vars.yml some\_role\_config: - name: app1 log\_dir: "/var/log/app1/ap…

---

## [jinja2 default fiter set to None](https://forum.ansible.com/t/jinja2-default-fiter-set-to-none/25784)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 10:28pm UTC](https://forum.ansible.com/t/jinja2-default-fiter-set-to-none/25784 "2017-10-19T22:28:05Z")

</div>

Hi, is there any way how to set undefined variable to None /python/, null /yaml/ value ? The filter default sets it always to empty string ... Consider this in defaults and emplate file ... sshd\_config\_test\_config: …

---

## [/etc/ansible and ansible.cfg directory and files are missing in macosx (#31907)](https://forum.ansible.com/t/etc-ansible-and-ansible-cfg-directory-and-files-are-missing-in-macosx-31907/25773)

<div class="topic-metadata">

**Author:** [@Deniz\_Rende](https://forum.ansible.com/u/Deniz_Rende)\
**Replies:** 8\
**Last updated:** [October 19, 2017, 7:29pm UTC](https://forum.ansible.com/t/etc-ansible-and-ansible-cfg-directory-and-files-are-missing-in-macosx-31907/25773 "2017-10-19T19:29:19Z")

</div>

Hello , I was wondering why in mac osx the directory /etc/ansible and ansible.cfg file are not automatically created when it is done through pip install. In other OS’s such as ubuntu and centos, these directories are c…

---

## [Where can I download RPM for ansible-doc-2.4.x-elX.noarch](https://forum.ansible.com/t/where-can-i-download-rpm-for-ansible-doc-2-4-x-elx-noarch/25781)

<div class="topic-metadata">

**Author:** [@Gantt\_Edmiston](https://forum.ansible.com/u/Gantt_Edmiston)\
**Replies:** 2\
**Last updated:** [October 19, 2017, 6:52pm UTC](https://forum.ansible.com/t/where-can-i-download-rpm-for-ansible-doc-2-4-x-elx-noarch/25781 "2017-10-19T18:52:56Z")

</div>

Due to highly restrictive firewalls and networking at my employer, I cannot proxy out to get ansible updates. I’m looking for the RPM for the ansible-doc-2.4.x RPM If that is available, can someone please provide me the …

---

## [exec from /tmp permission denied](https://forum.ansible.com/t/exec-from-tmp-permission-denied/25779)

<div class="topic-metadata">

**Author:** [@Julian\_Brown](https://forum.ansible.com/u/Julian_Brown)\
**Replies:** 4\
**Last updated:** [October 19, 2017, 4:03pm UTC](https://forum.ansible.com/t/exec-from-tmp-permission-denied/25779 "2017-10-19T16:03:16Z")

</div>

In our environment we do not allow execution from /tmp. So: Julians-Macbook-Pro:deploy\_with\_ansible julianbrown$ cat ansible.cfg \[defaults\] inventory = myhosts.ini remote\_tmp = ~/.ansible/tmp local\_tmp = ~/.ansible…

---

## [I cannot get out of the gates with Ansible](https://forum.ansible.com/t/i-cannot-get-out-of-the-gates-with-ansible/25778)

<div class="topic-metadata">

**Author:** [@Julian\_Brown](https://forum.ansible.com/u/Julian_Brown)\
**Replies:** 3\
**Last updated:** [October 19, 2017, 2:21pm UTC](https://forum.ansible.com/t/i-cannot-get-out-of-the-gates-with-ansible/25778 "2017-10-19T14:21:53Z")

</div>

I cannot get any playbook to work I am trying to use Ansible to configure cloud VM’s for me.- Macbook Pro is my central system Here is my first playbook: Julians-Macbook-Pro:deploy\_with\_ansible julianbrown$ cat deploy…

---

## [Translate simple Ansible Playbook into Python](https://forum.ansible.com/t/translate-simple-ansible-playbook-into-python/25776)

<div class="topic-metadata">

**Author:** [@Tom\_Bartsch](https://forum.ansible.com/u/Tom_Bartsch)\
**Replies:** 2\
**Last updated:** [October 19, 2017, 2:19pm UTC](https://forum.ansible.com/t/translate-simple-ansible-playbook-into-python/25776 "2017-10-19T14:19:56Z")

</div>

Hi there, could someone translate me the following playbook into python language? --- - hosts: "{{ host }}" vars: static\_jobs: - templatename: "template1" templateextension: "zip" templatev…

---

## [Debugging connection issues](https://forum.ansible.com/t/debugging-connection-issues/25769)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 4\
**Last updated:** [October 19, 2017, 12:07pm UTC](https://forum.ansible.com/t/debugging-connection-issues/25769 "2017-10-19T12:07:13Z")

</div>

I’m getting the dreaded “Unable to open shell” error when trying to run playbooks against my network devices in AWX. Typically I would set ANSIBLE\_DEBUG and ANSIBLE\_LOG\_PATH environment variables to debug…how can I do th…

---

## [jinja2 templated variables do not expand](https://forum.ansible.com/t/jinja2-templated-variables-do-not-expand/25770)

<div class="topic-metadata">

**Author:** [@eray](https://forum.ansible.com/u/eray)\
**Replies:** 1\
**Last updated:** [October 19, 2017, 8:19am UTC](https://forum.ansible.com/t/jinja2-templated-variables-do-not-expand/25770 "2017-10-19T08:19:15Z")

</div>

I am not sure if its my misuse of jinja within ansible, but I am seeing strange behavior from what would seem to be a typical use case for managing dynamic variables. As you can see from the code below, I am using the my…

---

## [Ansible 2.4.1.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-4-1-0-rc2-is-ready-for-testing/25772)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 5:44am UTC](https://forum.ansible.com/t/ansible-2-4-1-0-rc2-is-ready-for-testing/25772 "2017-10-19T05:44:57Z")

</div>

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

---

## [Viewing mixed encrypted/unencrypted inventory files](https://forum.ansible.com/t/viewing-mixed-encrypted-unencrypted-inventory-files/25771)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 12:15am UTC](https://forum.ansible.com/t/viewing-mixed-encrypted-unencrypted-inventory-files/25771 "2017-10-19T00:15:07Z")

</div>

Hi, Will it eventually be possible to view the contents of inventory vars files that have mixed encrypted/unencrypted content? At the moment it doesn’t seem to be possible outside of copying the encrypted content to a n…

---

## [Telnet Module inside 2.4](https://forum.ansible.com/t/telnet-module-inside-2-4/25617)

<div class="topic-metadata">

**Author:** [@Rodrigo](https://forum.ansible.com/u/Rodrigo)\
**Replies:** 2\
**Last updated:** [October 18, 2017, 10:49pm UTC](https://forum.ansible.com/t/telnet-module-inside-2-4/25617 "2017-10-18T22:49:20Z")

</div>

Hello Everyone, I am handling new functionality inside module 2.4 version. According documentation we have " prompts " to manage points to execute next command. However, I am thinking some alternatives of customer only…

---

## [Custom facts Windows](https://forum.ansible.com/t/custom-facts-windows/25768)

<div class="topic-metadata">

**Author:** [@belajzus](https://forum.ansible.com/u/belajzus)\
**Replies:** 1\
**Last updated:** [October 18, 2017, 9:13pm UTC](https://forum.ansible.com/t/custom-facts-windows/25768 "2017-10-18T21:13:48Z")

</div>

Hi, is it possible to use custom facts on Windows machines, which is the location for storing fact scripts… Thank you

---

## [with\_items and increment](https://forum.ansible.com/t/with-items-and-increment/25766)

<div class="topic-metadata">

**Author:** [@Parth\_Patel1](https://forum.ansible.com/u/Parth_Patel1)\
**Replies:** 2\
**Last updated:** [October 18, 2017, 8:11pm UTC](https://forum.ansible.com/t/with-items-and-increment/25766 "2017-10-18T20:11:46Z")

</div>

I am trying to run this simple task where I want to increment counter for “{{ esb\_name }}ESB?” like “ABC\_ESB\_01, ABC\_ESB\_02 …etc” until the loop is over. How do I do that ? I tried nested and other loops but was not able…

---

## [Task execution only for special items within a loop](https://forum.ansible.com/t/task-execution-only-for-special-items-within-a-loop/25406)

<div class="topic-metadata">

**Author:** [@Tom\_Bartsch](https://forum.ansible.com/u/Tom_Bartsch)\
**Replies:** 5\
**Last updated:** [October 18, 2017, 12:50pm UTC](https://forum.ansible.com/t/task-execution-only-for-special-items-within-a-loop/25406 "2017-10-18T12:50:58Z")

</div>

Hi there, I have the following playbook: --- - hosts: "{{ host }}" vars: bundle\_artifacts: - artifactId: "someArtifact" version: "1.0.0" extension: "zip" - artifactId: "kietmyartifact-…

---

## [Problems with VMWARE and In-Memory Inventory](https://forum.ansible.com/t/problems-with-vmware-and-in-memory-inventory/25754)

<div class="topic-metadata">

**Author:** [@Mariano\_Obarrio\_Mile](https://forum.ansible.com/u/Mariano_Obarrio_Mile)\
**Replies:** 9\
**Last updated:** [October 18, 2017, 10:19am UTC](https://forum.ansible.com/t/problems-with-vmware-and-in-memory-inventory/25754 "2017-10-18T10:19:45Z")

</div>

Hi all, I don’t know what I do wrong… I try create VMs (vmware) and provisioning after that. But when try add this new vms to inventory with add\_host only add one. The task “Gather VM facts (vmware\_guest\_facts)” recove…

---

## ["here doc" in shell command](https://forum.ansible.com/t/here-doc-in-shell-command/25751)

<div class="topic-metadata">

**Author:** [@rurpy](https://forum.ansible.com/u/rurpy)\
**Replies:** 3\
**Last updated:** [October 18, 2017, 7:48am UTC](https://forum.ansible.com/t/here-doc-in-shell-command/25751 "2017-10-18T07:48:59Z")

</div>

I am trying to use a “here doc” in a shell command like so: name: frustration shell: | cat \<\<-EOF | my\_program input line 1 input line 2 EOF another\_program along with a number of permutations, all of which have…

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

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