# Latest

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

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

**Page:** 967

---

## [Idempotency and cleanups](https://forum.ansible.com/t/idempotency-and-cleanups/15300)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 4\
**Last updated:** [May 25, 2014, 8:50pm UTC](https://forum.ansible.com/t/idempotency-and-cleanups/15300 "2014-05-25T20:50:10Z")

</div>

I’ve tried to research the subject a bit via Google searches but nothing useful came up. So here I am, seeking collective wisdom. Hypothetical scenario: using ansible playbook I set up machines A, B and C with services …

---

## [How to use --tree in ansible playbook](https://forum.ansible.com/t/how-to-use-tree-in-ansible-playbook/15318)

<div class="topic-metadata">

**Author:** [@Stefan\_Mijatovic](https://forum.ansible.com/u/Stefan_Mijatovic)\
**Replies:** 1\
**Last updated:** [May 25, 2014, 8:46pm UTC](https://forum.ansible.com/t/how-to-use-tree-in-ansible-playbook/15318 "2014-05-25T20:46:16Z")

</div>

Hello, I am discovering ansible and i was wondering how to specify a command in my playbook to use the “–tree” command that is normally used like this : ansible all -m setup -u root --tree /tmp/ansible/general Transla…

---

## [Add special value to variable or merge 2 variables into one (user manegment)](https://forum.ansible.com/t/add-special-value-to-variable-or-merge-2-variables-into-one-user-manegment/15319)

<div class="topic-metadata">

**Author:** [@Petr\_Sukharev](https://forum.ansible.com/u/Petr_Sukharev)\
**Replies:** 1\
**Last updated:** [May 25, 2014, 8:43pm UTC](https://forum.ansible.com/t/add-special-value-to-variable-or-merge-2-variables-into-one-user-manegment/15319 "2014-05-25T20:43:54Z")

</div>

Hello! I try to make ssh users management via ansible and find some problem, with blow up my brain. My environment: some numbers of users, some numbers of hosts. Production, test and demo projects. I put all users in …

---

## [Managing multiple clusters using bastions](https://forum.ansible.com/t/managing-multiple-clusters-using-bastions/15317)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 1\
**Last updated:** [May 25, 2014, 8:42pm UTC](https://forum.ansible.com/t/managing-multiple-clusters-using-bastions/15317 "2014-05-25T20:42:47Z")

</div>

Suppose your inventory file looks like the following. You have three clusters of machines (clusterONE, clusterTWO, clusterTHREE). Each cluster has a bastion host (bastionONE, bastionTWO, bastionTHREE) that you must SSH…

---

## [Ansible approved playbook testing?](https://forum.ansible.com/t/ansible-approved-playbook-testing/15316)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 3\
**Last updated:** [May 25, 2014, 8:37pm UTC](https://forum.ansible.com/t/ansible-approved-playbook-testing/15316 "2014-05-25T20:37:25Z")

</div>

Dear Ansible (Michael deHaan?), Hello! I’ve searched the google & the mailing list for playbook testing strategies and haven’t found anything that looks a consensus on how this should be done. Perhaps there are some pro…

---

## [ansible-pcd ; now fit for public consumption](https://forum.ansible.com/t/ansible-pcd-now-fit-for-public-consumption/15325)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 2\
**Last updated:** [May 25, 2014, 10:23am UTC](https://forum.ansible.com/t/ansible-pcd-now-fit-for-public-consumption/15325 "2014-05-25T10:23:30Z")

</div>

I spent some time over the weekend to bring the ansible-pcd project up to date and am excited to share it with the community! ansible-pcd provides a set of roles and standard conveniences with the following goals; e…

---

## [Problem with SSH keys](https://forum.ansible.com/t/problem-with-ssh-keys/15303)

<div class="topic-metadata">

**Author:** [@Ruggero\_Marchei](https://forum.ansible.com/u/Ruggero_Marchei)\
**Replies:** 5\
**Last updated:** [May 23, 2014, 10:38pm UTC](https://forum.ansible.com/t/problem-with-ssh-keys/15303 "2014-05-23T22:38:42Z")

</div>

I’m using the authorized\_key module to distribute ssh keys to my server, loading a key this way: \` authorized\_key: user=root key=“{{ item }}” with\_file: my\_key.pub \` the source key file contains an entry like: …

---

## [any examples of ansible cfg's that allow use of gce dynamic inventory?](https://forum.ansible.com/t/any-examples-of-ansible-cfgs-that-allow-use-of-gce-dynamic-inventory/15315)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 1\
**Last updated:** [May 23, 2014, 9:42pm UTC](https://forum.ansible.com/t/any-examples-of-ansible-cfgs-that-allow-use-of-gce-dynamic-inventory/15315 "2014-05-23T21:42:10Z")

</div>

Hiya, I’m able to provision new GCE instances with ansible gce, but I can’t pass authentication when ansible pinging with dynamic GCE inventory script gce.py. I get “Permission denied (publickey).” The gce.py script wo…

---

## [Ansible 1.6.2 has been released](https://forum.ansible.com/t/ansible-1-6-2-has-been-released/15322)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [May 23, 2014, 9:27pm UTC](https://forum.ansible.com/t/ansible-1-6-2-has-been-released/15322 "2014-05-23T21:27:24Z")

</div>

Ansible 1.6.2 has been released, which addresses a few minor bugs: If an improper locale is specified (for example, if your system does not have the default en\_US.UTF-8 localed installed), core modules will now automa…

---

## [variables in "--check" mode](https://forum.ansible.com/t/variables-in-check-mode/15306)

<div class="topic-metadata">

**Author:** [@marc.petrivelli](https://forum.ansible.com/u/marc.petrivelli)\
**Replies:** 5\
**Last updated:** [May 23, 2014, 7:19pm UTC](https://forum.ansible.com/t/variables-in-check-mode/15306 "2014-05-23T19:19:48Z")

</div>

Variables that are brought into scope through the “register: var” when a task is executed are not available when a playbook is run with the --check mode. The work-around I have been using is to put defaults (for all tho…

---

## [Ansible authentication failure, despite successfull keybased ssh-login](https://forum.ansible.com/t/ansible-authentication-failure-despite-successfull-keybased-ssh-login/15311)

<div class="topic-metadata">

**Author:** [@Joost\_Ringoot](https://forum.ansible.com/u/Joost_Ringoot)\
**Replies:** 15\
**Last updated:** [May 23, 2014, 6:44pm UTC](https://forum.ansible.com/t/ansible-authentication-failure-despite-successfull-keybased-ssh-login/15311 "2014-05-23T18:44:39Z")

</div>

Hi, When I try to connect to a host with ansible, it fails with the user jenkins. Despite keybased sshlogin is succesfull. \[jenkins@geppetto ~\]$ ssh jenkins@cal-25 Last login: Fri May 23 11:19:58 2014 from geppetto.…

---

## [rax.py "pyrax is required for this module"](https://forum.ansible.com/t/rax-py-pyrax-is-required-for-this-module/15320)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 2\
**Last updated:** [May 23, 2014, 5:20pm UTC](https://forum.ansible.com/t/rax-py-pyrax-is-required-for-this-module/15320 "2014-05-23T17:20:01Z")

</div>

This is confusing. I’ve definitely installed the pyrax module. Here is my workflow: \` /opt/wp/Python-2.7.5/bin/virtualenv venv source venv/bin/activate pip install git+git://github.com/rackspace/pyrax.git --upgrade ans…

---

## [Any data file as JSON?](https://forum.ansible.com/t/any-data-file-as-json/15252)

<div class="topic-metadata">

**Author:** [@Markus\_Amalthea\_Magn](https://forum.ansible.com/u/Markus_Amalthea_Magn)\
**Replies:** 14\
**Last updated:** [May 23, 2014, 2:39pm UTC](https://forum.ansible.com/t/any-data-file-as-json/15252 "2014-05-23T14:39:51Z")

</div>

Hey all, What does it mean in the changelog for Ansible 1.6 that “Any data file can also be JSON”? I figured this could be playbooks, but apparently not. What are “data files”? Best regards, Markus

---

## [Need to avoid using a hosts or inventory file using Ansible](https://forum.ansible.com/t/need-to-avoid-using-a-hosts-or-inventory-file-using-ansible/15218)

<div class="topic-metadata">

**Author:** [@Noah\_Parker](https://forum.ansible.com/u/Noah_Parker)\
**Replies:** 21\
**Last updated:** [May 23, 2014, 1:11pm UTC](https://forum.ansible.com/t/need-to-avoid-using-a-hosts-or-inventory-file-using-ansible/15218 "2014-05-23T13:11:04Z")

</div>

Hello, The way I am implementing Ansible will mean that I will not know the IP of the server I am configuring until I am launching the Playbook. I have tried passing in a variable for the IP for Ansible complains with: …

---

## [Thinking about more modules -- what monitoring systems do you use?](https://forum.ansible.com/t/thinking-about-more-modules-what-monitoring-systems-do-you-use/12873)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 28\
**Last updated:** [May 23, 2014, 12:38pm UTC](https://forum.ansible.com/t/thinking-about-more-modules-what-monitoring-systems-do-you-use/12873 "2014-05-23T12:38:02Z")

</div>

The push for notification modules yielded IRC, hipchat, Flowdock, and Campfire notification modules, plus mqtt – On the monitoring side, we already have modules in place for nagios, airbrake, and newrelic. I have it on…

---

## [ansible failed in virtualenv](https://forum.ansible.com/t/ansible-failed-in-virtualenv/14790)

<div class="topic-metadata">

**Author:** [@Yapeng\_Wu](https://forum.ansible.com/u/Yapeng_Wu)\
**Replies:** 4\
**Last updated:** [May 23, 2014, 12:33pm UTC](https://forum.ansible.com/t/ansible-failed-in-virtualenv/14790 "2014-05-23T12:33:57Z")

</div>

Hello, I am new to Ansible. I have installed ansible in the virtualenv. But when I load a playbook, it failed in one “command” module: TASK: \[create the tahoe introducer\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \<1…

---

## [Mercurial clone repository hangs](https://forum.ansible.com/t/mercurial-clone-repository-hangs/15309)

<div class="topic-metadata">

**Author:** [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Replies:** 1\
**Last updated:** [May 23, 2014, 12:32pm UTC](https://forum.ansible.com/t/mercurial-clone-repository-hangs/15309 "2014-05-23T12:32:45Z")

</div>

Haven’t used hg, but for git, two solutions: add password in repo url, like: https://bbusername:password@bitbucket.org/username/my-repo setup ssh key, git module has ssh key option. Now I am searching a solution…

---

## [Name of the Ansible language?](https://forum.ansible.com/t/name-of-the-ansible-language/15313)

<div class="topic-metadata">

**Author:** [@arnej](https://forum.ansible.com/u/arnej)\
**Replies:** 2\
**Last updated:** [May 23, 2014, 12:25pm UTC](https://forum.ansible.com/t/name-of-the-ansible-language/15313 "2014-05-23T12:25:27Z")

</div>

Hi, I use Ansible in a research project. For the purpose of documenting my project I was wondering whether the (domain-specific) language that is based upon YAML in which Ansible playbooks are written does have an name? …

---

## [Error Handling in Playbook has strange behaviour](https://forum.ansible.com/t/error-handling-in-playbook-has-strange-behaviour/15266)

<div class="topic-metadata">

**Author:** [@Christian\_Rusa](https://forum.ansible.com/u/Christian_Rusa)\
**Replies:** 6\
**Last updated:** [May 23, 2014, 12:23pm UTC](https://forum.ansible.com/t/error-handling-in-playbook-has-strange-behaviour/15266 "2014-05-23T12:23:09Z")

</div>

Hi, I wrote a playbook to update a group of ubuntu servers and reboot them if required. If I run it against one host using the -l option it works as expected, running against the whole group (3 hosts) it gives some str…

---

## [SSH inside a task](https://forum.ansible.com/t/ssh-inside-a-task/15294)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 7\
**Last updated:** [May 23, 2014, 12:21pm UTC](https://forum.ansible.com/t/ssh-inside-a-task/15294 "2014-05-23T12:21:57Z")

</div>

I'm trying to ssh within an ansible task (sounds silly, but is actually part of a delegate\_to in a playbook that streams a backup from one server to another) but it just hangs. I've broken it down into simple test cas…

---

## [Mercurial clone repository hangs](https://forum.ansible.com/t/mercurial-clone-repository-hangs/15301)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [May 23, 2014, 12:20pm UTC](https://forum.ansible.com/t/mercurial-clone-repository-hangs/15301 "2014-05-23T12:20:41Z")

</div>

I have this issue too. I use SSH repo access, and I think that Ansible just hangs on this: The authenticity of host 'bitbucket.org (131.103.20.167)' can't be established. RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c…

---

## [Weird bug with locale](https://forum.ansible.com/t/weird-bug-with-locale/15147)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 7\
**Last updated:** [May 23, 2014, 12:20pm UTC](https://forum.ansible.com/t/weird-bug-with-locale/15147 "2014-05-23T12:20:18Z")

</div>

I’m trying to set up provisioning for Vagrant VM with Ansible, but constantly get an error: locale: Cannot set LC\_ALL to default locale: No such file or directory Here is the full output. I’ve tried to place this ta…

---

## [Current failure count?](https://forum.ansible.com/t/current-failure-count/15270)

<div class="topic-metadata">

**Author:** [@Mike\_Titus](https://forum.ansible.com/u/Mike_Titus)\
**Replies:** 4\
**Last updated:** [May 23, 2014, 12:12pm UTC](https://forum.ansible.com/t/current-failure-count/15270 "2014-05-23T12:12:09Z")

</div>

Is there any way, during the execution of a playbook, to access the current failure count? The final failure count is displayed in the PLAY RECAP section of the log output: xxx.xx.xx.xxx : ok=37 changed=1 unreachable=0 …

---

## [Module service false fail](https://forum.ansible.com/t/module-service-false-fail/15310)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [May 23, 2014, 10:51am UTC](https://forum.ansible.com/t/module-service-false-fail/15310 "2014-05-23T10:51:07Z")

</div>

I have the problem with service module - it sometimes (!) throws an error, when restarting supervisor. I tried to reproduce this bug in a sandbox project, but wasnt succeed. But in my sandbox supervisor was not handled …

---

## [Mercurial clone repository hangs](https://forum.ansible.com/t/mercurial-clone-repository-hangs/12783)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 2\
**Last updated:** [May 22, 2014, 12:00pm UTC](https://forum.ansible.com/t/mercurial-clone-repository-hangs/12783 "2014-05-22T12:00:53Z")

</div>

Definitely post questions here and not on StackOverflow, everybody’s here, and I don’t post there either. I’m not a bitbucket user (others in community land contributed the module), but I would assume the problem is you…

---

## [Using Spacewalk or Red Hat Satellite - new inventory script](https://forum.ansible.com/t/using-spacewalk-or-red-hat-satellite-new-inventory-script/12845)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 39\
**Last updated:** [May 21, 2014, 10:19pm UTC](https://forum.ansible.com/t/using-spacewalk-or-red-hat-satellite-new-inventory-script/12845 "2014-05-21T22:19:27Z")

</div>

I just merged a pull request for an Ansible inventory source. Testing (and patches) quite welcome. Thanks to Jon Miller for the inventory script! As a reminder, inventory scripts are ways to pull ansible inventory (ho…

---

## [When are vault values resolved during playbook?](https://forum.ansible.com/t/when-are-vault-values-resolved-during-playbook/15292)

<div class="topic-metadata">

**Author:** [@Derptacos](https://forum.ansible.com/u/Derptacos)\
**Replies:** 6\
**Last updated:** [May 21, 2014, 10:15pm UTC](https://forum.ansible.com/t/when-are-vault-values-resolved-during-playbook/15292 "2014-05-21T22:15:14Z")

</div>

I have a playbook that requires a value from a vault - but I am consistently running into issues regarding the existence of this variable (lets call this variable private\_key) In the vault I have: foo: private\_key: | …

---

## [service module error: "msg: stop: Unable to connect to system bus"](https://forum.ansible.com/t/service-module-error-msg-stop-unable-to-connect-to-system-bus/15296)

<div class="topic-metadata">

**Author:** [@Mike\_Titus](https://forum.ansible.com/u/Mike_Titus)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 10:14pm UTC](https://forum.ansible.com/t/service-module-error-msg-stop-unable-to-connect-to-system-bus/15296 "2014-05-21T22:14:00Z")

</div>

Hi, This task is failing: name: restart phantom queue processes service: name=queue enabled=yes state=restarted sudo: yes sudo\_user: phantom Ansible v1.5.4 on Ubunutu 12.04 (note that I get the same error when omi…

---

## [Question with group\_vars](https://forum.ansible.com/t/question-with-group-vars/15283)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [May 21, 2014, 10:08pm UTC](https://forum.ansible.com/t/question-with-group-vars/15283 "2014-05-21T22:08:43Z")

</div>

In my local.yml I’m able to run the playbook and reference variables within group\_vars/all however I’m not able to access variables within group\_vars/phl-stage. Let’s assume the following. ansible-playbook -i phl-stage …

---

## [Read variable stored in host file inside Ansible module developed in BASH](https://forum.ansible.com/t/read-variable-stored-in-host-file-inside-ansible-module-developed-in-bash/15278)

<div class="topic-metadata">

**Author:** [@Uri\_Miller](https://forum.ansible.com/u/Uri_Miller)\
**Replies:** 2\
**Last updated:** [May 21, 2014, 10:05pm UTC](https://forum.ansible.com/t/read-variable-stored-in-host-file-inside-ansible-module-developed-in-bash/15278 "2014-05-21T22:05:01Z")

</div>

Hi, I have developed a module in BASH, and I am able to run in using external arguments given from command line: \[root@ansible ansible\]# ansible ap0tv01ras02pbsw0 -m ansible\_startBladeAgent -a “serverName=ap0tv01ras02p…

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

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