# Latest

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

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

**Page:** 819

---

## [cannot access attributes of registered variable returned by AWS CLI command run](https://forum.ansible.com/t/cannot-access-attributes-of-registered-variable-returned-by-aws-cli-command-run/19768)

<div class="topic-metadata">

**Author:** [@cosbug](https://forum.ansible.com/u/cosbug)\
**Replies:** 1\
**Last updated:** [November 15, 2015, 3:41pm UTC](https://forum.ansible.com/t/cannot-access-attributes-of-registered-variable-returned-by-aws-cli-command-run/19768 "2015-11-15T15:41:54Z")

</div>

Hi All, I cannot figure out how to reference the zone id attribute from the registered variable of the below AWS CLI. For some reason it doesn’t work. Playbook:

---

## [How to disabled the new "included" feature in Ansible V2?](https://forum.ansible.com/t/how-to-disabled-the-new-included-feature-in-ansible-v2/19769)

<div class="topic-metadata">

**Author:** [@Sjors\_Buitenhuis](https://forum.ansible.com/u/Sjors_Buitenhuis)\
**Replies:** 0\
**Last updated:** [November 15, 2015, 12:24pm UTC](https://forum.ansible.com/t/how-to-disabled-the-new-included-feature-in-ansible-v2/19769 "2015-11-15T12:24:49Z")

</div>

Since I’ve switched to Ansible V2 the default behavior is to show every file in the playbook whether I’m skipping them or not. Clarification TASK \[logging : include\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Sudo via ansible error](https://forum.ansible.com/t/sudo-via-ansible-error/19765)

<div class="topic-metadata">

**Author:** [@Ovidio\_B](https://forum.ansible.com/u/Ovidio_B)\
**Replies:** 1\
**Last updated:** [November 14, 2015, 5:50pm UTC](https://forum.ansible.com/t/sudo-via-ansible-error/19765 "2015-11-14T17:50:03Z")

</div>

Greetings, I’ve created a simple playbook that adds some packages to an ubuntu system. I’m using packer with the ansible provisioner to get things setup but I keep getting hit with the following error message in verbose…

---

## [ansible and dependencies](https://forum.ansible.com/t/ansible-and-dependencies/19763)

<div class="topic-metadata">

**Author:** [@Stuart\_Cracraft](https://forum.ansible.com/u/Stuart_Cracraft)\
**Replies:** 2\
**Last updated:** [November 13, 2015, 11:54pm UTC](https://forum.ansible.com/t/ansible-and-dependencies/19763 "2015-11-13T23:54:43Z")

</div>

Hi - trying to ensure I can make tasks dependent on prior task successes in roles inside playbooks. So far it doesn’t happen. I’m using a combination of register/when. What is the method within a series of tasks in a r…

---

## [Get email alert if async task runs for more than XX mins/hours?](https://forum.ansible.com/t/get-email-alert-if-async-task-runs-for-more-than-xx-mins-hours/19757)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 1\
**Last updated:** [November 13, 2015, 11:22pm UTC](https://forum.ansible.com/t/get-email-alert-if-async-task-runs-for-more-than-xx-mins-hours/19757 "2015-11-13T23:22:09Z")

</div>

Is it possible?

---

## [Short circuiting in conditionals?](https://forum.ansible.com/t/short-circuiting-in-conditionals/19719)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 3\
**Last updated:** [November 13, 2015, 11:10pm UTC](https://forum.ansible.com/t/short-circuiting-in-conditionals/19719 "2015-11-13T23:10:53Z")

</div>

Simple task. name: Rotate log as this user and group (14.04 or newer) lineinfile: \> dest=“/etc/logrotate.conf” regexp=“^su root syslog” insertbefore=“BOF” line=“su root syslog\\n” state=“present” when: “‘{{ ansib…

---

## [git clone is pointing to a local repo when is should point to an external](https://forum.ansible.com/t/git-clone-is-pointing-to-a-local-repo-when-is-should-point-to-an-external/19762)

<div class="topic-metadata">

**Author:** [@Joel\_Bremson](https://forum.ansible.com/u/Joel_Bremson)\
**Replies:** 0\
**Last updated:** [November 13, 2015, 10:11pm UTC](https://forum.ansible.com/t/git-clone-is-pointing-to-a-local-repo-when-is-should-point-to-an-external/19762 "2015-11-13T22:11:35Z")

</div>

\` Enter code here... name: Git Clone Clone the local repo. Getting to github is tricky. git: repo=https://github.com/jbremson/SG\_ASP.git dest=“{{ scheduler\_code }}” version=“rq” force=yes file: path=“{{ scheduler\_…

---

## [Ansible 2.0 Beta 3 is available for testing](https://forum.ansible.com/t/ansible-2-0-beta-3-is-available-for-testing/19761)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [November 13, 2015, 9:58pm UTC](https://forum.ansible.com/t/ansible-2-0-beta-3-is-available-for-testing/19761 "2015-11-13T21:58:59Z")

</div>

Happy Friday the 13th all, we’re happy to announce the third beta of 2.0 is available for testing! This will hopefully be the final beta before we do our first release candidate for 2.0, so please help us test things ou…

---

## [How to detect an ansible version](https://forum.ansible.com/t/how-to-detect-an-ansible-version/19200)

<div class="topic-metadata">

**Author:** [@Valeriy\_Solovyov](https://forum.ansible.com/u/Valeriy_Solovyov)\
**Replies:** 4\
**Last updated:** [November 13, 2015, 7:41pm UTC](https://forum.ansible.com/t/how-to-detect-an-ansible-version/19200 "2015-11-13T19:41:20Z")

</div>

Hello, I am a perfectionist. I want write ansible-playbooks that have backward compatibility. For example if I use ansible \< 1.5.1 http://docs.ansible.com/ansible/get\_url\_module.html I use it without validate\_certs but…

---

## [Vault and ansible\_become\_pass](https://forum.ansible.com/t/vault-and-ansible-become-pass/19760)

<div class="topic-metadata">

**Author:** [@Tiziano\_Di\_Gennaro](https://forum.ansible.com/u/Tiziano_Di_Gennaro)\
**Replies:** 0\
**Last updated:** [November 13, 2015, 7:09pm UTC](https://forum.ansible.com/t/vault-and-ansible-become-pass/19760 "2015-11-13T19:09:15Z")

</div>

Hi all, i really need to create an inventory file with ansible\_become\_pass but instead to have it in clear text i want to put it inside ansible vault, and i need to do it for 400 server. Do you think it’s possible and …

---

## [Connecting to existing ec2 instances](https://forum.ansible.com/t/connecting-to-existing-ec2-instances/19752)

<div class="topic-metadata">

**Author:** [@nathan\_chu](https://forum.ansible.com/u/nathan_chu)\
**Replies:** 7\
**Last updated:** [November 13, 2015, 6:27pm UTC](https://forum.ansible.com/t/connecting-to-existing-ec2-instances/19752 "2015-11-13T18:27:25Z")

</div>

Hi, I recently inherited an Ansible deployment that manages some EC2 instances and I have a couple questions. I am unable to find a pem file/ssh key on the local file system, but somehow Ansible is able to connect to th…

---

## [Iterate over complex dicitonary structure in j2 tempalte](https://forum.ansible.com/t/iterate-over-complex-dicitonary-structure-in-j2-tempalte/19756)

<div class="topic-metadata">

**Author:** [@Hristo\_Stoyanov](https://forum.ansible.com/u/Hristo_Stoyanov)\
**Replies:** 3\
**Last updated:** [November 13, 2015, 4:28pm UTC](https://forum.ansible.com/t/iterate-over-complex-dicitonary-structure-in-j2-tempalte/19756 "2015-11-13T16:28:57Z")

</div>

Sorry if this has been documented elsewhere (where?), but how can one iterate with jinja2 over a dictionary? http://stackoverflow.com/questions/33666820/ansible-jinja2-loops-over-complex-structures You can ask here or …

---

## [Variable name includes a variable](https://forum.ansible.com/t/variable-name-includes-a-variable/19754)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 2\
**Last updated:** [November 13, 2015, 3:52pm UTC](https://forum.ansible.com/t/variable-name-includes-a-variable/19754 "2015-11-13T15:52:37Z")

</div>

This is something I have been struggling with for a while: a variable whose name includes a variable. For instance, Ansible facts for a server includes the following information on the network interfaces: “ansible\_eth0”…

---

## [2.0 host key check issues](https://forum.ansible.com/t/2-0-host-key-check-issues/19755)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 2\
**Last updated:** [November 13, 2015, 6:57am UTC](https://forum.ansible.com/t/2-0-host-key-check-issues/19755 "2015-11-13T06:57:35Z")

</div>

I’ve noticed since I upgraded to 2.0 that something is wrong with host key checks when running ansible-playbook. Previously, under 1.9, if ansible-playbook encountered an unknown host key during the setup phase, it was p…

---

## [Role do something after handler?](https://forum.ansible.com/t/role-do-something-after-handler/19736)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 3\
**Last updated:** [November 13, 2015, 6:32am UTC](https://forum.ansible.com/t/role-do-something-after-handler/19736 "2015-11-13T06:32:59Z")

</div>

Hi all, I have a strange one that I hope you can help me with. I’m trying to make a role for systemd service unit files. This is the newfangled replacement for good ol’ sysV init scripts in Rhel7, any recent Fedora and …

---

## [Troubleshooting Windows Host UNREACHABLE!](https://forum.ansible.com/t/troubleshooting-windows-host-unreachable/19738)

<div class="topic-metadata">

**Author:** [@Calhoun\_Matt](https://forum.ansible.com/u/Calhoun_Matt)\
**Replies:** 6\
**Last updated:** [November 12, 2015, 11:04pm UTC](https://forum.ansible.com/t/troubleshooting-windows-host-unreachable/19738 "2015-11-12T23:04:46Z")

</div>

I have many windows hosts that have been configured identically (as far as I can tell) and I can connect to all but one of them. Anyone have an idea of why this may be happening? Up to date on all windows patches Have …

---

## [How to ignore invalid tag name instead of throwing a error](https://forum.ansible.com/t/how-to-ignore-invalid-tag-name-instead-of-throwing-a-error/19753)

<div class="topic-metadata">

**Author:** [@Kevin\_Yi](https://forum.ansible.com/u/Kevin_Yi)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 10:42pm UTC](https://forum.ansible.com/t/how-to-ignore-invalid-tag-name-instead-of-throwing-a-error/19753 "2015-11-12T22:42:07Z")

</div>

Hi , I got the requirement to ignore the invalid tag name when execute a playbook eg . ansible-playbook -t tag1 test.yml and I will get below error and fail the playbook ERROR: tag(s) not found in playbook: tag1. Wh…

---

## [gce instance start and stop existing instances (not create and destroy)](https://forum.ansible.com/t/gce-instance-start-and-stop-existing-instances-not-create-and-destroy/19260)

<div class="topic-metadata">

**Author:** [@Tongqing\_Qiu](https://forum.ansible.com/u/Tongqing_Qiu)\
**Replies:** 1\
**Last updated:** [November 12, 2015, 4:50pm UTC](https://forum.ansible.com/t/gce-instance-start-and-stop-existing-instances-not-create-and-destroy/19260 "2015-11-12T16:50:59Z")

</div>

GCE now provides the function to stop and start the instances. Does ansible gce module provides that function? I am not sure the meaning of “active, present, absent, delete” in the following document. http://docs.ansib…

---

## [template with groups as a variable](https://forum.ansible.com/t/template-with-groups-as-a-variable/19742)

<div class="topic-metadata">

**Author:** [@Edgardo\_Vega](https://forum.ansible.com/u/Edgardo_Vega)\
**Replies:** 4\
**Last updated:** [November 12, 2015, 4:08pm UTC](https://forum.ansible.com/t/template-with-groups-as-a-variable/19742 "2015-11-12T16:08:09Z")

</div>

I am trying to do the following where I index groups by a variable instead of hardcoding it. Is that possible somehow? {% for host in groups\[‘{{VAR}}’\] %} STUFF {% endfor %} Thanks in advance, Edgardo

---

## [Restart clustered service node by node?](https://forum.ansible.com/t/restart-clustered-service-node-by-node/19727)

<div class="topic-metadata">

**Author:** [@Rafal\_Radecki](https://forum.ansible.com/u/Rafal_Radecki)\
**Replies:** 3\
**Last updated:** [November 12, 2015, 4:03pm UTC](https://forum.ansible.com/t/restart-clustered-service-node-by-node/19727 "2015-11-12T16:03:03Z")

</div>

Hi All :wink: I currently am writing automation for a Percona Galera cluster which consists of 3 nodes. I am uploading a config file with: name: upload my.cnf template: src=my.cnf.j2 dest=/etc/my.cnf when: “‘db\_clus…

---

## [How to SUBSTRING a string from a variable like hostname\_01.com:28569 ... get only the hostname part or the port ?](https://forum.ansible.com/t/how-to-substring-a-string-from-a-variable-like-hostname-01-com-28569-get-only-the-hostname-part-or-the-port/19744)

<div class="topic-metadata">

**Author:** [@Eric\_Franckx](https://forum.ansible.com/u/Eric_Franckx)\
**Replies:** 5\
**Last updated:** [November 12, 2015, 3:33pm UTC](https://forum.ansible.com/t/how-to-substring-a-string-from-a-variable-like-hostname-01-com-28569-get-only-the-hostname-part-or-the-port/19744 "2015-11-12T15:33:28Z")

</div>

Hi, if I have a string/var with hostname\_01.com:28569, how can I use the hostname part (hostname\_01 and don"t use the :28569) to be use in an action ? Regards,

---

## [Problem with Conditional Imports](https://forum.ansible.com/t/problem-with-conditional-imports/19733)

<div class="topic-metadata">

**Author:** [@thomas.willert](https://forum.ansible.com/u/thomas.willert)\
**Replies:** 3\
**Last updated:** [November 12, 2015, 2:23pm UTC](https://forum.ansible.com/t/problem-with-conditional-imports/19733 "2015-11-12T14:23:18Z")

</div>

Hello, I have a problem with conditional variable imports. I am trying to set a variable based on operatingsystem release. For ‘Solaris10’ I want one value and for all others I want another another value. In this examp…

---

## [Recovering sdout/stderr from sudo commands in async mode](https://forum.ansible.com/t/recovering-sdout-stderr-from-sudo-commands-in-async-mode/19747)

<div class="topic-metadata">

**Author:** [@Jose\_Angel\_De\_Bustos](https://forum.ansible.com/u/Jose_Angel_De_Bustos)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 2:11pm UTC](https://forum.ansible.com/t/recovering-sdout-stderr-from-sudo-commands-in-async-mode/19747 "2015-11-12T14:11:18Z")

</div>

Hi, I have to execute sudo commands in async mode and I need to recover stdout and stderr. I have written a module to do that but I am not able to recover the stdout and stderr. All of this is done using a python scri…

---

## [Recovering stdout and stderr from sudo commands in async mode](https://forum.ansible.com/t/recovering-stdout-and-stderr-from-sudo-commands-in-async-mode/19746)

<div class="topic-metadata">

**Author:** [@Jose\_Angel\_De\_Bustos](https://forum.ansible.com/u/Jose_Angel_De_Bustos)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 2:02pm UTC](https://forum.ansible.com/t/recovering-stdout-and-stderr-from-sudo-commands-in-async-mode/19746 "2015-11-12T14:02:34Z")

</div>

Hi, I have to run sudo commands in async mode and recover the stdout/stderr. I have written a module to run sudo commands but I am not able to recover the stdout and stderr. All of this is done from a python script and…

---

## ["unsupported parameter for module: validate\_cert",](https://forum.ansible.com/t/unsupported-parameter-for-module-validate-cert/19745)

<div class="topic-metadata">

**Author:** [@Dee\_Young](https://forum.ansible.com/u/Dee_Young)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 1:55pm UTC](https://forum.ansible.com/t/unsupported-parameter-for-module-validate-cert/19745 "2015-11-12T13:55:19Z")

</div>

I am trying to get around the “Unable to validate server’s certificate against available CA certs” error. I’ve tried using uri: url=site url validate\_cert=no and I’m still getting the same error. Then I tried using get\_u…

---

## [CloudFront Module for Ansible](https://forum.ansible.com/t/cloudfront-module-for-ansible/15976)

<div class="topic-metadata">

**Author:** [@Mohammad\_Arafath](https://forum.ansible.com/u/Mohammad_Arafath)\
**Replies:** 1\
**Last updated:** [November 12, 2015, 1:35pm UTC](https://forum.ansible.com/t/cloudfront-module-for-ansible/15976 "2015-11-12T13:35:33Z")

</div>

Since ansible doesn’t have a module for CF(as far as i’ve looked), I am attempting to create one. Boto does support CF but has issued warning in the docs (that the module is not well-tested). What kinds of tests are Ans…

---

## [Sentinel - Redis :  fatal: \[pyxrrsap02.pyx.erp\]: FAILED! =\> {"failed": true, "msg": "ERROR! 'list object' has no attribute 'cmd'"}](https://forum.ansible.com/t/sentinel-redis-fatal-pyxrrsap02-pyx-erp-failed-failed-true-msg-error-list-object-has-no-attribute-cmd/19734)

<div class="topic-metadata">

**Author:** [@Eric\_Franckx](https://forum.ansible.com/u/Eric_Franckx)\
**Replies:** 1\
**Last updated:** [November 12, 2015, 1:20pm UTC](https://forum.ansible.com/t/sentinel-redis-fatal-pyxrrsap02-pyx-erp-failed-failed-true-msg-error-list-object-has-no-attribute-cmd/19734 "2015-11-12T13:20:03Z")

</div>

Hi, I try to connect to a list of Sentinel host to get the master redis host and port. name: “CONNECT SENTINEL” command: “redis-cli -h {{ item.allowed\_host }} -p {{ item.port }} SENTINEL get-master-addr-by-name redis-…

---

## [vmware vm migrate between datastores using ansible?](https://forum.ansible.com/t/vmware-vm-migrate-between-datastores-using-ansible/19743)

<div class="topic-metadata">

**Author:** [@AnilD](https://forum.ansible.com/u/AnilD)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 12:52pm UTC](https://forum.ansible.com/t/vmware-vm-migrate-between-datastores-using-ansible/19743 "2015-11-12T12:52:37Z")

</div>

Hi guys, Looks like state=reconfigured in vsphere\_guest module cannot be used for datastore migration for a vm. Is there is away to migrate a virtual machine to a different datastore in the vcenter using ansible?

---

## [Playbook name/path in callback plugin](https://forum.ansible.com/t/playbook-name-path-in-callback-plugin/19741)

<div class="topic-metadata">

**Author:** [@tinyzais](https://forum.ansible.com/u/tinyzais)\
**Replies:** 0\
**Last updated:** [November 12, 2015, 12:19pm UTC](https://forum.ansible.com/t/playbook-name-path-in-callback-plugin/19741 "2015-11-12T12:19:58Z")

</div>

Is it possible to get playbook name and/or path from within callback plugin?

---

## [loop over host group to create string](https://forum.ansible.com/t/loop-over-host-group-to-create-string/19699)

<div class="topic-metadata">

**Author:** [@Roy](https://forum.ansible.com/u/Roy)\
**Replies:** 4\
**Last updated:** [November 12, 2015, 11:20am UTC](https://forum.ansible.com/t/loop-over-host-group-to-create-string/19699 "2015-11-12T11:20:13Z")

</div>

I have following host group \[zookeeper\] zk001.abc.cc zookeeper\_myid=1 zk002.abc.cc zookeeper\_myid=2 zk003.abc.cc zookeeper\_myid=3 I want following to be created when playbook run zookeeper.connect=zk001.abc.cc: 218…

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

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