# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=533

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

**Page:** 534

---

## [SSH failure connection](https://forum.ansible.com/t/ssh-failure-connection/23161)

<div class="topic-metadata">

**Author:** [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Replies:** 0\
**Last updated:** [December 2, 2016, 6:49am UTC](https://forum.ansible.com/t/ssh-failure-connection/23161 "2016-12-02T06:49:14Z")

</div>

Hi The playbook is failing with this error; FAILED! =\> {“changed”: false, “failed”: true, “invocation”: {“module\_name”: “command”}, “module\_stderr”: “OpenSSH\_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\\r\\ndebug1: Reading co…

---

## [How to list Ansible Roles and version used by my playbook on Ansible Tower](https://forum.ansible.com/t/how-to-list-ansible-roles-and-version-used-by-my-playbook-on-ansible-tower/23158)

<div class="topic-metadata">

**Author:** [@Coolman](https://forum.ansible.com/u/Coolman)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 11:29pm UTC](https://forum.ansible.com/t/how-to-list-ansible-roles-and-version-used-by-my-playbook-on-ansible-tower/23158 "2016-12-01T23:29:32Z")

</div>

Hello there, I use Ansible Tower to Orchestrate my Continous Delivery Pipeline. I call my roles using the requirement.yml file located in the roles directory within my playbook directory. The thing is that I want to k…

---

## [Hierarchical hostgroups](https://forum.ansible.com/t/hierarchical-hostgroups/23154)

<div class="topic-metadata">

**Author:** [@Gregor\_Giesen](https://forum.ansible.com/u/Gregor_Giesen)\
**Replies:** 2\
**Last updated:** [December 1, 2016, 10:49pm UTC](https://forum.ansible.com/t/hierarchical-hostgroups/23154 "2016-12-01T22:49:47Z")

</div>

Hello everybody, our current configuration management system uses a path notation for hierarchical hostgroups (subgroups), i.e. testgroup testgroup/subgroup1 testgroup/subgroup2 which would correspond to Ansible's …

---

## [Crontab run in specific timezone](https://forum.ansible.com/t/crontab-run-in-specific-timezone/23144)

<div class="topic-metadata">

**Author:** [@Falldog\_Hsieh](https://forum.ansible.com/u/Falldog_Hsieh)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 9:57pm UTC](https://forum.ansible.com/t/crontab-run-in-specific-timezone/23144 "2016-12-01T21:57:28Z")

</div>

ansible cron module doesn’t support setup timezone info currently Hope to add this new feature Thanks reference from http://serverfault.com/questions/374284/crontab-schedule-in-different-timezones

---

## [How to do a Pull Request for a doc string that affects multiple versions?](https://forum.ansible.com/t/how-to-do-a-pull-request-for-a-doc-string-that-affects-multiple-versions/23157)

<div class="topic-metadata">

**Author:** [@Mark\_Breedlove](https://forum.ansible.com/u/Mark_Breedlove)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 9:26pm UTC](https://forum.ansible.com/t/how-to-do-a-pull-request-for-a-doc-string-that-affects-multiple-versions/23157 "2016-12-01T21:26:23Z")

</div>

I have a PR I’d like to submit to the https://github.com/ansible/ansible-modules-core repo but I’m unsure of what I should write in the PR for the Ansible version. The PR is for changing a DOCUMENTATION string, and the i…

---

## [No module named markupsafe](https://forum.ansible.com/t/no-module-named-markupsafe/21505)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 2\
**Last updated:** [December 1, 2016, 8:38pm UTC](https://forum.ansible.com/t/no-module-named-markupsafe/21505 "2016-12-01T20:38:47Z")

</div>

Hi, I just hit a problem with Ansible installed with pip. I cannot even get ansible version (see the bottom), but it is version 2.0.2.0 @ Ubuntu 14.04.4 LTS pip list | grep ansible ansible (2.0.2.0) Installing markup…

---

## [Compare two variables](https://forum.ansible.com/t/compare-two-variables/23156)

<div class="topic-metadata">

**Author:** [@marcin\_zimnica](https://forum.ansible.com/u/marcin_zimnica)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 8:23pm UTC](https://forum.ansible.com/t/compare-two-variables/23156 "2016-12-01T20:23:29Z")

</div>

Hi All, I am trying to compare two variables however it looks like it does not work. I am new to ansible so please be understanding. I know that this script is not optimal but I am still learning. My code looks like th…

---

## [Ansible :  ERROR! Decryption failed](https://forum.ansible.com/t/ansible-error-decryption-failed/23137)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 7:47pm UTC](https://forum.ansible.com/t/ansible-error-decryption-failed/23137 "2016-12-01T19:47:50Z")

</div>

Hi , I am a newbie to ansible When i try to run the ansible-playbook i am getting a decryption failed error \[root@localhost infrastructure\]# ansible-playbook -i /home/swathi/Desktop/infrastructure/production/ec2.py ve…

---

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

<div class="topic-metadata">

**Author:** [@John\_Galts](https://forum.ansible.com/u/John_Galts)\
**Replies:** 3\
**Last updated:** [December 1, 2016, 3:15pm UTC](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23116 "2016-12-01T15:15:27Z")

</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…

---

## [How to create a package module like the YUM one](https://forum.ansible.com/t/how-to-create-a-package-module-like-the-yum-one/23152)

<div class="topic-metadata">

**Author:** [@Peter\_Burns](https://forum.ansible.com/u/Peter_Burns)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 2:45pm UTC](https://forum.ansible.com/t/how-to-create-a-package-module-like-the-yum-one/23152 "2016-12-01T14:45:53Z")

</div>

Hi there, I posted this to the Ansible Project list but got no responses, perhaps this is the better forum for it to be answered though, so I’m cross posting it here to. I’m trying to create an ansible module to instal…

---

## [QUESTION/POLL regarding repo merge](https://forum.ansible.com/t/question-poll-regarding-repo-merge/23155)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 2:35pm UTC](https://forum.ansible.com/t/question-poll-regarding-repo-merge/23155 "2016-12-01T14:35:20Z")

</div>

Hi all, per the email I sent the other day regarding the repo merge, a question has been raised internally regarding whether or not we would make the same changes to existing stable branches (stable-2.2, stable-2.1, etc)…

---

## [Ansible on OpenBSD - failures in 'package' module](https://forum.ansible.com/t/ansible-on-openbsd-failures-in-package-module/23148)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 2:33pm UTC](https://forum.ansible.com/t/ansible-on-openbsd-failures-in-package-module/23148 "2016-12-01T14:33:33Z")

</div>

Ansible manager: OpenBSD 5.7, Python 2.7.9, Ansible 2.2.0.0 Managed host: OpenBSD 6.0 (RELEASE), Python 2.7.12 Using 'package' module on OpenBSD 6.0 appears to fail. Running this task: - name: install common packages …

---

## [Ansible module's default parameter value](https://forum.ansible.com/t/ansible-modules-default-parameter-value/23151)

<div class="topic-metadata">

**Author:** [@machacekondra](https://forum.ansible.com/u/machacekondra)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 12:24pm UTC](https://forum.ansible.com/t/ansible-modules-default-parameter-value/23151 "2016-12-01T12:24:00Z")

</div>

Hello all, I would like to ask about the sense of the default values of the parameters of Ansible modules. Let me give you an example, let’s say there is a module to manage Virtual Machines(VM), the module looks for ex…

---

## [Variable undefined after set\_fact](https://forum.ansible.com/t/variable-undefined-after-set-fact/15419)

<div class="topic-metadata">

**Author:** [@Nathan\_Robertson](https://forum.ansible.com/u/Nathan_Robertson)\
**Replies:** 3\
**Last updated:** [December 1, 2016, 9:33am UTC](https://forum.ansible.com/t/variable-undefined-after-set-fact/15419 "2016-12-01T09:33:33Z")

</div>

I am either missing something simple or ran into a bug. I have a playbook that passes variable to a role as follows: roles: { role: test\_role, var1: ‘some string’, var2: “{{ some\_var }}”, var3: “{{ some\_var2 }}” } N…

---

## [Sudo auth fails in the middle of playbook](https://forum.ansible.com/t/sudo-auth-fails-in-the-middle-of-playbook/23095)

<div class="topic-metadata">

**Author:** [@marko](https://forum.ansible.com/u/marko)\
**Replies:** 4\
**Last updated:** [December 1, 2016, 8:31am UTC](https://forum.ansible.com/t/sudo-auth-fails-in-the-middle-of-playbook/23095 "2016-12-01T08:31:15Z")

</div>

Hi, I’m having weird problems where sudo authentication seems to fail in the middle of a playbook. The playbook is run like this: ansible-playbook … -b --ask-become-pass … myplaybook.yml The playbook includes this bi…

---

## [Ansible dynamic vars](https://forum.ansible.com/t/ansible-dynamic-vars/23150)

<div class="topic-metadata">

**Author:** [@Nirmal\_Kumar](https://forum.ansible.com/u/Nirmal_Kumar)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 7:39am UTC](https://forum.ansible.com/t/ansible-dynamic-vars/23150 "2016-12-01T07:39:25Z")

</div>

I have a query regarding vars structure in Ansible. Example: -vars sample.yml tasks main.yml In task: include\_vars: sample.yml - copy: src={{vars\[inventory\_hostname\_short + ‘\_instance’ }} dest={{some\_path…

---

## [How to consider vars/sample.yml to create a dynamic variable name ?](https://forum.ansible.com/t/how-to-consider-vars-sample-yml-to-create-a-dynamic-variable-name/23149)

<div class="topic-metadata">

**Author:** [@Nirmal\_Kumar](https://forum.ansible.com/u/Nirmal_Kumar)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 7:32am UTC](https://forum.ansible.com/t/how-to-consider-vars-sample-yml-to-create-a-dynamic-variable-name/23149 "2016-12-01T07:32:59Z")

</div>

I have a query regarding vars structure in Ansible. Example: -vars sample.yml tasks main.yml In task: include\_vars: sample.yml - copy: src={{vars\[inventory\_hostname\_short + ‘\_instance’ }} dest={{some\_path…

---

## [Fundamental Template Problem](https://forum.ansible.com/t/fundamental-template-problem/23068)

<div class="topic-metadata">

**Author:** [@Jon\_Forrest](https://forum.ansible.com/u/Jon_Forrest)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 4:26am UTC](https://forum.ansible.com/t/fundamental-template-problem/23068 "2016-12-01T04:26:15Z")

</div>

(Ansible 2.2 - Mac OS 12.1) I'm having trouble with a template I'm trying to create. So, I cut it down to a bare minimum. Consider the following: jon.yml

---

## [Is Ansible a client/server protocol?](https://forum.ansible.com/t/is-ansible-a-client-server-protocol/23147)

<div class="topic-metadata">

**Author:** [@utunaaga](https://forum.ansible.com/u/utunaaga)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 3:36am UTC](https://forum.ansible.com/t/is-ansible-a-client-server-protocol/23147 "2016-12-01T03:36:22Z")

</div>

Hi There Hope this picture shows ok. Would greatly appreciate any feedback as to the accuracy of this diagram. Please understand that I am very much a newby in this matter so anything deep wll be lost :slight\_smile: I…

---

## [Ansible model of operation - Client/Server?](https://forum.ansible.com/t/ansible-model-of-operation-client-server/23146)

<div class="topic-metadata">

**Author:** [@utunaaga](https://forum.ansible.com/u/utunaaga)\
**Replies:** 0\
**Last updated:** [December 1, 2016, 2:58am UTC](https://forum.ansible.com/t/ansible-model-of-operation-client-server/23146 "2016-12-01T02:58:04Z")

</div>

Hi There I would greatly appreciate any comments on the accuracy and validy of my little picture Hope it is visible I dont see nay preview button here. Many thanks for any reply

---

## [Modify registered variable content from the copy module?](https://forum.ansible.com/t/modify-registered-variable-content-from-the-copy-module/23142)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 1\
**Last updated:** [December 1, 2016, 12:40am UTC](https://forum.ansible.com/t/modify-registered-variable-content-from-the-copy-module/23142 "2016-12-01T00:40:09Z")

</div>

Hello - Is there a way to modify the content of a registered variable? I have a shared role that logs output of my deployments. tasks/main.yml \` name: Log {{ filename }} changes blockinfile: dest: “{{ log\_dir }}/{…

---

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

[Previous page](https://forum.ansible.com/c/archives/31.md?page=532)

[Next page](https://forum.ansible.com/c/archives/31.md?page=534)
