# Ansible Project

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

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

**Page:** 305

---

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

<div class="topic-metadata">

**Author:** [@KrishnaKumar\_Vinayag](https://forum.ansible.com/u/KrishnaKumar_Vinayag)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 6:10pm UTC](https://forum.ansible.com/t/need-help/25807 "2017-10-24T18:10:00Z")

</div>

Hi All, I want to list or view only changed task in ansible after ran playbook. is it any cmd available? ex: Play Recap: duba-scs-appa01. ok=25 changed=4 ( I want to list only what are all the changes made in this s…

---

## [Help with conditionals syntax](https://forum.ansible.com/t/help-with-conditionals-syntax/25805)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 6\
**Last updated:** [October 24, 2017, 3:29pm UTC](https://forum.ansible.com/t/help-with-conditionals-syntax/25805 "2017-10-24T15:29:43Z")

</div>

I know my syntax is wrong but you can get the gist with the code below. Can someone correct my invalid syntax? Works: when: ansible\_hostname | search("apps") Fails: \` when: ansible\_hostname | search(“apps”) and ans…

---

## [Dynamic playbook](https://forum.ansible.com/t/dynamic-playbook/25810)

<div class="topic-metadata">

**Author:** [@KP1](https://forum.ansible.com/u/KP1)\
**Replies:** 0\
**Last updated:** [October 24, 2017, 3:17pm UTC](https://forum.ansible.com/t/dynamic-playbook/25810 "2017-10-24T15:17:28Z")

</div>

Hi, Is it possible to create dynamic playbook in ansible based on inventory? My requirement is: maintain different inventory files for different applications, which contains sequence/flow of tasks that need to execut…

---

## [Using parted module ..I am unable to create multiple partitions on the disk.](https://forum.ansible.com/t/using-parted-module-i-am-unable-to-create-multiple-partitions-on-the-disk/25759)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 6\
**Last updated:** [October 24, 2017, 11:45am UTC](https://forum.ansible.com/t/using-parted-module-i-am-unable-to-create-multiple-partitions-on-the-disk/25759 "2017-10-24T11:45:35Z")

</div>

Hi, I have a query here and request your help .I am trying to create multiple partition on the disk with parted module , but it only creates one partition. Is parted module creates only one partition of the entire disk …

---

## [Split debug msg on multilines](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806)

<div class="topic-metadata">

**Author:** [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 9:36am UTC](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806 "2017-10-24T09:36:38Z")

</div>

Hi, I have created my debug msg task as such \` name: Print VM Info debug: msg: “VM Info: {{ vm\_created | to\_nice\_yaml(indent=8) }}” \` but the result doesn’t show the text on multilines \` TASK \[Print VM Info\] \*\*…

---

## [list of variables in YAML inventory](https://forum.ansible.com/t/list-of-variables-in-yaml-inventory/25578)

<div class="topic-metadata">

**Author:** [@bundyboyuk](https://forum.ansible.com/u/bundyboyuk)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 5:16am UTC](https://forum.ansible.com/t/list-of-variables-in-yaml-inventory/25578 "2017-10-24T05:16:12Z")

</div>

Hi, I am running Ansible from a python script and I want to iterate over a dynamic list created in the python script. The inventory is also dynamically created in this script. The list is different for each host Ansible…

---

## [ansible](https://forum.ansible.com/t/ansible/25522)

<div class="topic-metadata">

**Author:** [@Sreekuttan\_Sree](https://forum.ansible.com/u/Sreekuttan_Sree)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 4:52am UTC](https://forum.ansible.com/t/ansible/25522 "2017-10-24T04:52:39Z")

</div>

Hi, playbook is hosts: servers remote\_user: ubuntu become: yes become\_user: root become\_method: sudo tasks: name: Install tmux apt: name=tmux state=present error:fatal: \[192.168.80.129\]: FAILED! =\> {“changed”: …

---

## [Setting custom advanced configuration parameters in VMware VM when deploying via Ansible](https://forum.ansible.com/t/setting-custom-advanced-configuration-parameters-in-vmware-vm-when-deploying-via-ansible/24686)

<div class="topic-metadata">

**Author:** [@James5](https://forum.ansible.com/u/James5)\
**Replies:** 1\
**Last updated:** [October 23, 2017, 6:57pm UTC](https://forum.ansible.com/t/setting-custom-advanced-configuration-parameters-in-vmware-vm-when-deploying-via-ansible/24686 "2017-10-23T18:57:17Z")

</div>

I am trying to deploy a virtual machine via ansible and vcenter using the vmware\_guest module and I need to pass additional custom parameters to the VM (vmx file). I am using the custom values attribute to do this as it …

---

## [How to force creating a new ssh connection](https://forum.ansible.com/t/how-to-force-creating-a-new-ssh-connection/20923)

<div class="topic-metadata">

**Author:** [@jan.warchol](https://forum.ansible.com/u/jan.warchol)\
**Replies:** 6\
**Last updated:** [October 23, 2017, 4:04pm UTC](https://forum.ansible.com/t/how-to-force-creating-a-new-ssh-connection/20923 "2017-10-23T16:04:06Z")

</div>

Hello, by default Ansible uses SSH’s ControlPersist feature to reuse one ssh connection for running multiple tasks. This is very nice and helpful. However, there is one situation when this is a problem: when I change ss…

---

## [Generating TSIG Keys for Bind server](https://forum.ansible.com/t/generating-tsig-keys-for-bind-server/25801)

<div class="topic-metadata">

**Author:** [@Ken\_Jenney](https://forum.ansible.com/u/Ken_Jenney)\
**Replies:** 5\
**Last updated:** [October 23, 2017, 3:24pm UTC](https://forum.ansible.com/t/generating-tsig-keys-for-bind-server/25801 "2017-10-23T15:24:54Z")

</div>

I need to generate TSIG keys for use by nsupdate. dnssec-keygen creates two files after run: \` name: generate TSIG keys command: “dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST {{item.name}}” args: chdir:…

---

## [inventory group name variable](https://forum.ansible.com/t/inventory-group-name-variable/25803)

<div class="topic-metadata">

**Author:** [@Mauricio\_Castro](https://forum.ansible.com/u/Mauricio_Castro)\
**Replies:** 3\
**Last updated:** [October 23, 2017, 2:02pm UTC](https://forum.ansible.com/t/inventory-group-name-variable/25803 "2017-10-23T14:02:54Z")

</div>

I am kindda new to Ansible and I’ve been trying to find this information everywhere, but I can’t seen to get what I really need, which is: given a inventory with a group name \[xyz\] for example, while running ansible wit…

---

## [Ansible Tower - Isolated Nodes](https://forum.ansible.com/t/ansible-tower-isolated-nodes/25802)

<div class="topic-metadata">

**Author:** [@joharharkanwal](https://forum.ansible.com/u/joharharkanwal)\
**Replies:** 0\
**Last updated:** [October 23, 2017, 12:04pm UTC](https://forum.ansible.com/t/ansible-tower-isolated-nodes/25802 "2017-10-23T12:04:02Z")

</div>

Hello Need help with new feature Ansible Tower - Isolated Nodes. I am wondering isolated node acts as jump server for executing the configuration or configuration can be synced to isolated node and later executed from …

---

## [Modulo copy argumento dest ( incongruencia al usar variables )](https://forum.ansible.com/t/modulo-copy-argumento-dest-incongruencia-al-usar-variables/25791)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 5\
**Last updated:** [October 23, 2017, 5:06am UTC](https://forum.ansible.com/t/modulo-copy-argumento-dest-incongruencia-al-usar-variables/25791 "2017-10-23T05:06:32Z")

</div>

Hola buenas, ¿por que se dan estas incongruencias al usar variables en el modulo copy en su argumento dest.?

---

## [Issue while executing YAML script](https://forum.ansible.com/t/issue-while-executing-yaml-script/25799)

<div class="topic-metadata">

**Author:** [@Sawant](https://forum.ansible.com/u/Sawant)\
**Replies:** 2\
**Last updated:** [October 23, 2017, 4:09am UTC](https://forum.ansible.com/t/issue-while-executing-yaml-script/25799 "2017-10-23T04:09:37Z")

</div>

\[root@ggnmaster2 jenkins\]# ls hosts site.yml \[root@ggnmaster2 jenkins\]# more site.yml

---

## [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…

---

## [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…

---

## [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…

---

## [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…

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

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