# Latest

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

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

**Page:** 706

---

## [Problems with using docker\_image to pull an image](https://forum.ansible.com/t/problems-with-using-docker-image-to-pull-an-image/23145)

<div class="topic-metadata">

**Author:** [@Stefan\_Stefansson](https://forum.ansible.com/u/Stefan_Stefansson)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 12:33am UTC](https://forum.ansible.com/t/problems-with-using-docker-image-to-pull-an-image/23145 "2016-12-01T00:33:43Z")

</div>

Hi. I’m trying to use docker\_image to pull an image from my private repository but I keep getting this error: “Get http://: http: no Host in request URL”. Here is what my task list currently looks like: docker\_login: …

---

## [Cannot generate diff with shell module](https://forum.ansible.com/t/cannot-generate-diff-with-shell-module/23143)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 2\
**Last updated:** [November 30, 2016, 11:45pm UTC](https://forum.ansible.com/t/cannot-generate-diff-with-shell-module/23143 "2016-11-30T23:45:56Z")

</div>

I am trying to use the shell module to generate a diff between two remote files, but it is erring out without giving me a warning or error: \` name: create diff of old settings file and new settings file shell: diff /…

---

## [using failed\_when: with changed\_when:](https://forum.ansible.com/t/using-failed-when-with-changed-when/17284)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 3\
**Last updated:** [November 30, 2016, 9:18pm UTC](https://forum.ansible.com/t/using-failed-when-with-changed-when/17284 "2016-11-30T21:18:55Z")

</div>

Hello list, Do ‘failed\_when:’ and ‘changed\_when:’ effect one another? (i.e. a failed task returns changed instead of failed because you’d specified both flags or vice versa?) I guess I’m assuming that in any case ‘fai…

---

## [Pass a dynamic dictionary as parameter](https://forum.ansible.com/t/pass-a-dynamic-dictionary-as-parameter/23139)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 2\
**Last updated:** [November 30, 2016, 9:17pm UTC](https://forum.ansible.com/t/pass-a-dynamic-dictionary-as-parameter/23139 "2016-11-30T21:17:07Z")

</div>

How can I create and pass a dynamic dictionary as a module parameter. I have a custom module that accepts parameters: \`

---

## [Any workaround in not installing Python on the remote machine](https://forum.ansible.com/t/any-workaround-in-not-installing-python-on-the-remote-machine/23138)

<div class="topic-metadata">

**Author:** [@anirudh\_vasudevan](https://forum.ansible.com/u/anirudh_vasudevan)\
**Replies:** 1\
**Last updated:** [November 30, 2016, 5:54pm UTC](https://forum.ansible.com/t/any-workaround-in-not-installing-python-on-the-remote-machine/23138 "2016-11-30T17:54:34Z")

</div>

Hi, I have a remote machine (Target Board) if one may say for which I need to perform various tests through Ansible, we do not want Python to be installed on the Target board, is there anyway where we can do away with n…

---

## [Simple refactoring testing](https://forum.ansible.com/t/simple-refactoring-testing/23135)

<div class="topic-metadata">

**Author:** [@andrea\_crotti](https://forum.ansible.com/u/andrea_crotti)\
**Replies:** 0\
**Last updated:** [November 30, 2016, 10:55am UTC](https://forum.ansible.com/t/simple-refactoring-testing/23135 "2016-11-30T10:55:08Z")

</div>

Suppose I have a playbook that became too complex, and I start splitting it into roles, is there a way to do that ensuring nothing broke? If for example the order is the same specially, can I not see the list of generat…

---

## [Possible bug with nxos\_reboot module?](https://forum.ansible.com/t/possible-bug-with-nxos-reboot-module/23121)

<div class="topic-metadata">

**Author:** [@Cody\_John](https://forum.ansible.com/u/Cody_John)\
**Replies:** 1\
**Last updated:** [November 30, 2016, 9:11am UTC](https://forum.ansible.com/t/possible-bug-with-nxos-reboot-module/23121 "2016-11-30T09:11:24Z")

</div>

I’ve run into some issues using nxos\_reboot module in 2.2.0.0. Given a very simple playbook: \`

---

## [Error updating Zabbix Host (zabbix\_host)](https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681)

<div class="topic-metadata">

**Author:** [@Reece\_Webb1](https://forum.ansible.com/u/Reece_Webb1)\
**Replies:** 1\
**Last updated:** [November 30, 2016, 8:22am UTC](https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681 "2016-11-30T08:22:22Z")

</div>

Ansible 2.1, Zabbix 3.0.3, latest zabbix-api module. I’m trying to write a playbook to update a Zabbix hosts agent interface IP. The host already exists, it has an agent interface (with an incorrect IP). It looks like m…

---

## [playbook with dynamic variable interpolation doesn't work in ansible tower v2.4.5, any help with this?](https://forum.ansible.com/t/playbook-with-dynamic-variable-interpolation-doesnt-work-in-ansible-tower-v2-4-5-any-help-with-this/23132)

<div class="topic-metadata">

**Author:** [@rob2](https://forum.ansible.com/u/rob2)\
**Replies:** 0\
**Last updated:** [November 30, 2016, 2:21am UTC](https://forum.ansible.com/t/playbook-with-dynamic-variable-interpolation-doesnt-work-in-ansible-tower-v2-4-5-any-help-with-this/23132 "2016-11-30T02:21:06Z")

</div>

reference: http://docs.ansible.com/ansible/faq.html#when-should-i-use-also-how-to-interpolate-variables-or-dynamic-variable-names I have a playbook working fine via cli, however I am unable to figure why I cannot dynami…

---

## [Parse registered output into a variable?](https://forum.ansible.com/t/parse-registered-output-into-a-variable/23129)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 8:49pm UTC](https://forum.ansible.com/t/parse-registered-output-into-a-variable/23129 "2016-11-29T20:49:13Z")

</div>

Hello - Is there a way to parse registered output into a variable? Pseudo Code: \` tasks: name: Sample Task command: ‘blah’ register: output debug: var=output.stdout \` TASK \[debug\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How to use different variables file between prod, dev1, dev2, etc?](https://forum.ansible.com/t/how-to-use-different-variables-file-between-prod-dev1-dev2-etc/23128)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 4\
**Last updated:** [November 29, 2016, 8:41pm UTC](https://forum.ansible.com/t/how-to-use-different-variables-file-between-prod-dev1-dev2-etc/23128 "2016-11-29T20:41:27Z")

</div>

Here is what my current ansible/ directory looks like: \` ├── development │ └── hosts ├── production │ └── hosts ├── group\_vars │ └── prod.example.com │ └── dev1.example.com │ └── dev2.example.com ├── playbooks …

---

## [PEP8 compliance in codebase](https://forum.ansible.com/t/pep8-compliance-in-codebase/18876)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 7\
**Last updated:** [November 29, 2016, 6:39pm UTC](https://forum.ansible.com/t/pep8-compliance-in-codebase/18876 "2016-11-29T18:39:16Z")

</div>

Hey, Our CI system runs pep8 and pyflakes separately on every commit as well and it's been something I've wanted to work on cleaning up since I discovered it. However, v2.0 has made it harder for me since time has be…

---

## [Is it possible to use files from the "playbook" layer for the "copy" module?](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104)

<div class="topic-metadata">

**Author:** [@General\_Luken](https://forum.ansible.com/u/General_Luken)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 5:50pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104 "2016-11-29T17:50:44Z")

</div>

Hi! What I mean by the title: In roles we can have a “files” directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the…

---

## [Launch powershell script with argument by ansible](https://forum.ansible.com/t/launch-powershell-script-with-argument-by-ansible/23101)

<div class="topic-metadata">

**Author:** [@jvieira](https://forum.ansible.com/u/jvieira)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 5:06pm UTC](https://forum.ansible.com/t/launch-powershell-script-with-argument-by-ansible/23101 "2016-11-29T17:06:01Z")

</div>

Hi everyone, My ansible version is : 2.2.0.0 I make a powershell script to deploy a new VM on vcenter. Ansible correctly work with windows system but i have some trouble. I would like ansible take my arguments for th…

---

## [Update local vars](https://forum.ansible.com/t/update-local-vars/23126)

<div class="topic-metadata">

**Author:** [@Aleksey\_Ezhov](https://forum.ansible.com/u/Aleksey_Ezhov)\
**Replies:** 0\
**Last updated:** [November 29, 2016, 3:37pm UTC](https://forum.ansible.com/t/update-local-vars/23126 "2016-11-29T15:37:34Z")

</div>

Hello. how to update the local vars, after receiving the input parameter example: roles/new/vars/main.yaml list: name: service1 pckg: namepckg version: trunk name: service2 pckg: namepckg version: trunk r…

---

## [Need to get the network interface status.](https://forum.ansible.com/t/need-to-get-the-network-interface-status/23094)

<div class="topic-metadata">

**Author:** [@lishyalak](https://forum.ansible.com/u/lishyalak)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 3:29pm UTC](https://forum.ansible.com/t/need-to-get-the-network-interface-status/23094 "2016-11-29T15:29:44Z")

</div>

Number of network interfaces varies in our environment and we have atleast 5 variants, hardcoding is not an option. This playbook need to check {{ ansible\_interfaces }} and then get the status of all available interface…

---

## [Unable to Install PostgreSQL using Ansible](https://forum.ansible.com/t/unable-to-install-postgresql-using-ansible/23097)

<div class="topic-metadata">

**Author:** [@Gustavo\_da\_Silva\_Car](https://forum.ansible.com/u/Gustavo_da_Silva_Car)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 2:35pm UTC](https://forum.ansible.com/t/unable-to-install-postgresql-using-ansible/23097 "2016-11-29T14:35:44Z")

</div>

Hello Everyone, I’m new to Ansible, and I ended up having a problem with my playbook to install psql. I already tried everything and searched everywhere. When I perform the following task: name: Ensure database is c…

---

## [ansible-playbook-sudo](https://forum.ansible.com/t/ansible-playbook-sudo/23122)

<div class="topic-metadata">

**Author:** [@naaga.wip](https://forum.ansible.com/u/naaga.wip)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 2:00pm UTC](https://forum.ansible.com/t/ansible-playbook-sudo/23122 "2016-11-29T14:00:57Z")

</div>

Hi, Can any one please let me know why to use “-sudo” flag in ansible-playbook command line. ansible-playbook-sudo -i /opt///ansible/inventories/dev/hosts /opt///ansible/playbooks/new\_deployments.yml --extra-vars “arti…

---

## [Gitter chat/channel for Ansible?](https://forum.ansible.com/t/gitter-chat-channel-for-ansible/18988)

<div class="topic-metadata">

**Author:** [@Hristo\_Stoyanov](https://forum.ansible.com/u/Hristo_Stoyanov)\
**Replies:** 10\
**Last updated:** [November 29, 2016, 1:26pm UTC](https://forum.ansible.com/t/gitter-chat-channel-for-ansible/18988 "2016-11-29T13:26:36Z")

</div>

Hi, I tried the IRC chat for Ansible and it is painful (especially from mobile device). Since Ansible is hosted on Github anyway, wouldn’t it be better to leverage the free and integrated Gitter chat? I have seen other …

---

## [Error creating Cluster on windows 2012 R2 Server through Ansible](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106)

<div class="topic-metadata">

**Author:** [@ashish\_chanda](https://forum.ansible.com/u/ashish_chanda)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 8:44am UTC](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106 "2016-11-29T08:44:36Z")

</div>

Hi, I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like access denied on new cluster command on adding the second node to the cluster.# I am using kerberos authentication since…

---

## [ANSIBALLZ, zipped ansible library](https://forum.ansible.com/t/ansiballz-zipped-ansible-library/23124)

<div class="topic-metadata">

**Author:** [@Ted\_Timmons](https://forum.ansible.com/u/Ted_Timmons)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 7:43am UTC](https://forum.ansible.com/t/ansiballz-zipped-ansible-library/23124 "2016-11-29T07:43:22Z")

</div>

ANSIBALLZ puts a compressed zip blob on the remote machine. It seems that python can read a compressed library? I mean, it isn’t exploded, yet it works. This is relevant because it fails on pypy, which means coreos mach…

---

## [Name Conflicts: Role Task File Names Conflict with Modules](https://forum.ansible.com/t/name-conflicts-role-task-file-names-conflict-with-modules/23125)

<div class="topic-metadata">

**Author:** [@Karl\_Davis](https://forum.ansible.com/u/Karl_Davis)\
**Replies:** 0\
**Last updated:** [November 29, 2016, 4:08am UTC](https://forum.ansible.com/t/name-conflicts-role-task-file-names-conflict-with-modules/23125 "2016-11-29T04:08:21Z")

</div>

I’ve got the following: \` ansible.cfg library = ~/.ansible/roles \` $ ls -la ~/.ansible/roles/L-P.acmetool/tasks/ total 24 drwxrwxr-x 2 karl karl 4096 Nov 28 18:59 . drwxrwxr-x 7 karl karl 4096 Nov 28 18:50 .. -rw-rw-…

---

## [Getting error while creating VM using VMWare templates](https://forum.ansible.com/t/getting-error-while-creating-vm-using-vmware-templates/22612)

<div class="topic-metadata">

**Author:** [@yogesh\_joshi](https://forum.ansible.com/u/yogesh_joshi)\
**Replies:** 3\
**Last updated:** [November 28, 2016, 11:47pm UTC](https://forum.ansible.com/t/getting-error-while-creating-vm-using-vmware-templates/22612 "2016-11-28T23:47:51Z")

</div>

Hello, I am new to ansible. I want to create VMs from VM template, I am not sure what should be the template format? is it the one we directly mark VM as convert to template and then use that as template\_src in playboo…

---

## [A "first time" unexpected templating error - what did I do?](https://forum.ansible.com/t/a-first-time-unexpected-templating-error-what-did-i-do/23058)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 28, 2016, 11:24pm UTC](https://forum.ansible.com/t/a-first-time-unexpected-templating-error-what-did-i-do/23058 "2016-11-28T23:24:49Z")

</div>

Hello - Assistance requested. I believe I’ve coded a nasty bug into my ansible playbook and I’m not sure how to unravel it. In my observations, the code throws an “Unexpected templating type error occurred” whenever I f…

---

## [Store playbook name as a 'global' variable across plays?](https://forum.ansible.com/t/store-playbook-name-as-a-global-variable-across-plays/22984)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 28, 2016, 11:23pm UTC](https://forum.ansible.com/t/store-playbook-name-as-a-global-variable-across-plays/22984 "2016-11-28T23:23:33Z")

</div>

Hello - Is there a way to store playbook name as a ‘global’ variable across plays?? I’ve seen potential options via callbacks or group\_vars:all but still struggling with the solve. At the end of the day I want to log c…

---

## [New module to subscribe a system to RHSM repositories (RHEL)](https://forum.ansible.com/t/new-module-to-subscribe-a-system-to-rhsm-repositories-rhel/23123)

<div class="topic-metadata">

**Author:** [@Jerome\_Fenal](https://forum.ansible.com/u/Jerome_Fenal)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 8:51pm UTC](https://forum.ansible.com/t/new-module-to-subscribe-a-system-to-rhsm-repositories-rhel/23123 "2016-11-28T20:51:18Z")

</div>

Hi all, Just a head up if someone wants to have a look and test my first attempt at a module, available at: https://github.com/jfenal/ansible-modules-jfenal/redhat\_repositories Bear with my python-fu, I’m more a Perl …

---

## [Performance issue when loading all host group vars before starting playbook](https://forum.ansible.com/t/performance-issue-when-loading-all-host-group-vars-before-starting-playbook/23120)

<div class="topic-metadata">

**Author:** [@John\_Wadleigh](https://forum.ansible.com/u/John_Wadleigh)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:50pm UTC](https://forum.ansible.com/t/performance-issue-when-loading-all-host-group-vars-before-starting-playbook/23120 "2016-11-28T14:50:48Z")

</div>

Hi everyone, We have a large ‘hosts’ file with many different host groups defined. When running ansible-playbook command with ‘-i’ pointing to our hosts file, Ansible will then call our custom code in the VarsModule cl…

---

## [MODULE FAILURE using Replace and with\_together](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23117)

<div class="topic-metadata">

**Author:** [@John\_Galts](https://forum.ansible.com/u/John_Galts)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:40am UTC](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23117 "2016-11-28T02:40:42Z")

</div>

Hello, I’m getting a module failure when trying to use ‘replace’ and with\_together. Is there something wrong with my script? thank you. Tasks: name: Gather Current DB Settings - Database Name shell: grep -v “|” /tm…

---

## [MODULE FAILURE using Replace and with\_together](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23115)

<div class="topic-metadata">

**Author:** [@John\_Galts](https://forum.ansible.com/u/John_Galts)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:03am UTC](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23115 "2016-11-28T02:03:36Z")

</div>

Hello, I’m getting a module failure when trying to use ‘replace’ and with\_together. Is there something wrong with my script? thank you. Tasks: name: Gather Current DB Settings - Database Name shell: grep -v “|” /tm…

---

## [Access dict key when using with\_subelements](https://forum.ansible.com/t/access-dict-key-when-using-with-subelements/21082)

<div class="topic-metadata">

**Author:** [@Peter\_Thorson](https://forum.ansible.com/u/Peter_Thorson)\
**Replies:** 4\
**Last updated:** [November 27, 2016, 10:26pm UTC](https://forum.ansible.com/t/access-dict-key-when-using-with-subelements/21082 "2016-11-27T22:26:51Z")

</div>

when using with\_dict, item.key retrieves the dict key and item.value retrieves the value. however, when using with\_subelements and having the first item being looped over be a dict, item.0 seems to return only the value…

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

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