# Latest

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

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

**Page:** 931

---

## [Is there a way to make my var less ugly?](https://forum.ansible.com/t/is-there-a-way-to-make-my-var-less-ugly/16426)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 2\
**Last updated:** [October 5, 2014, 9:07pm UTC](https://forum.ansible.com/t/is-there-a-way-to-make-my-var-less-ugly/16426 "2014-10-05T21:07:36Z")

</div>

So I created some tasks in one of my roles today that queries Jenkins to find the latest build of a project and then uses that build number to go get a zip file onto one of my managed servers. The relevant part of my ta…

---

## [(Opinion) Should role defaults be set for development or production?](https://forum.ansible.com/t/opinion-should-role-defaults-be-set-for-development-or-production/16434)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 4\
**Last updated:** [October 5, 2014, 6:57pm UTC](https://forum.ansible.com/t/opinion-should-role-defaults-be-set-for-development-or-production/16434 "2014-10-05T18:57:14Z")

</div>

I’m currently working on some roles and I’m not sure is it better to set role defaults so that they are development friendly, or production friendly. Let me give you an example, so that you can understand what I mean. A…

---

## [Last pre-submodules commit](https://forum.ansible.com/t/last-pre-submodules-commit/16428)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://forum.ansible.com/u/Sam_Pierson)\
**Replies:** 2\
**Last updated:** [October 5, 2014, 6:06pm UTC](https://forum.ansible.com/t/last-pre-submodules-commit/16428 "2014-10-05T18:06:29Z")

</div>

I can’t really use the post-submodules devel branch right now (embedded module issues etc). Which is the last commit, pre-submodules? It would be useful if you could tag that commit, for posterity. Thanks, -Sam. Sam…

---

## [Raising AnsibleError exceptions inside the run() method of LookupModule class does not work as expected](https://forum.ansible.com/t/raising-ansibleerror-exceptions-inside-the-run-method-of-lookupmodule-class-does-not-work-as-expected/16323)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 3\
**Last updated:** [October 5, 2014, 6:05pm UTC](https://forum.ansible.com/t/raising-ansibleerror-exceptions-inside-the-run-method-of-lookupmodule-class-does-not-work-as-expected/16323 "2014-10-05T18:05:33Z")

</div>

Hi Petros, We’d need to see code about what you are referring to to know whether this was a thing or not. Thanks! –Michael

---

## [IMPORTANT HEADS UP: If running from devel branch, now using submodules](https://forum.ansible.com/t/important-heads-up-if-running-from-devel-branch-now-using-submodules/16362)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 17\
**Last updated:** [October 5, 2014, 6:00pm UTC](https://forum.ansible.com/t/important-heads-up-if-running-from-devel-branch-now-using-submodules/16362 "2014-10-05T18:00:42Z")

</div>

Hi everyone, This email is to developer-types who are not subscribed to ansible-devel and did not read this already. If you consume stable releases of ansible only, and do not submit pull requests, you can MOSTLY skip t…

---

## [Ansible facts missing nfs mounts](https://forum.ansible.com/t/ansible-facts-missing-nfs-mounts/16407)

<div class="topic-metadata">

**Author:** [@Mzp45](https://forum.ansible.com/u/Mzp45)\
**Replies:** 5\
**Last updated:** [October 5, 2014, 5:51pm UTC](https://forum.ansible.com/t/ansible-facts-missing-nfs-mounts/16407 "2014-10-05T17:51:13Z")

</div>

Hi, The facts that are returned from a machine are missing the hard mounted nfs mounts. So something like this in fstab is not available as a fact :/vol/vol1/ / nfs bg,ro,hard,intr,tcp 0 0 Looking at the facts collect…

---

## [Accelerate mode failing with multiple control nodes on CentOS 6.x](https://forum.ansible.com/t/accelerate-mode-failing-with-multiple-control-nodes-on-centos-6-x/16433)

<div class="topic-metadata">

**Author:** [@Sunny\_Saxena](https://forum.ansible.com/u/Sunny_Saxena)\
**Replies:** 1\
**Last updated:** [October 5, 2014, 5:50pm UTC](https://forum.ansible.com/t/accelerate-mode-failing-with-multiple-control-nodes-on-centos-6-x/16433 "2014-10-05T17:50:32Z")

</div>

Hi, We are on EL6 with CentOS 6.x. We want to improve the performance of ansible over SSH and we are hitting a roadblock with the accelerate mode. We use multiple control nodes, so we are using the following configurat…

---

## [Decent way on windows to verify there are no CPU-hogging processes?](https://forum.ansible.com/t/decent-way-on-windows-to-verify-there-are-no-cpu-hogging-processes/16431)

<div class="topic-metadata">

**Author:** [@Peter\_Mounce](https://forum.ansible.com/u/Peter_Mounce)\
**Replies:** 0\
**Last updated:** [October 4, 2014, 5:09pm UTC](https://forum.ansible.com/t/decent-way-on-windows-to-verify-there-are-no-cpu-hogging-processes/16431 "2014-10-04T17:09:02Z")

</div>

I’m baking AMIs in EC2 with Ansible. Last step involves a call to sysprep. Before that, I want to wait for any post-install steps to have finished (.NET Framework 4.5 I’m looking at you and your mscorsvw.exe). If they’r…

---

## [reboot on RHEL7](https://forum.ansible.com/t/reboot-on-rhel7/16413)

<div class="topic-metadata">

**Author:** [@shirou](https://forum.ansible.com/u/shirou)\
**Replies:** 2\
**Last updated:** [October 4, 2014, 1:33pm UTC](https://forum.ansible.com/t/reboot-on-rhel7/16413 "2014-10-04T13:33:01Z")

</div>

Hi all, I used ansible-1.7.2, and I created this playbook to reboot and wait until wakeup. - name: reboot shell: /sbin/reboot - name: wait for the server to go down local\_action: wait\_for host={…

---

## [Ansible win\_msi creates: does it work?](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414)

<div class="topic-metadata">

**Author:** [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Replies:** 4\
**Last updated:** [October 4, 2014, 3:40am UTC](https://forum.ansible.com/t/ansible-win-msi-creates-does-it-work/16414 "2014-10-04T03:40:16Z")

</div>

I’m using ansible 1.7.2, here’s my very basic playbook:

---

## [Git clone failing](https://forum.ansible.com/t/git-clone-failing/16417)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 5\
**Last updated:** [October 3, 2014, 10:32pm UTC](https://forum.ansible.com/t/git-clone-failing/16417 "2014-10-03T22:32:10Z")

</div>

Brand new clone of ansible git project: git clone --recursive https://github.com/ansible/ansible.git Fails with the following error: fatal: reference is not a tree: f624689bad24cb3a7b2ef43d5280b5f4fbabb5bd Unable t…

---

## [Modules embedding in roles is broken](https://forum.ansible.com/t/modules-embedding-in-roles-is-broken/16425)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://forum.ansible.com/u/Sam_Pierson)\
**Replies:** 1\
**Last updated:** [October 3, 2014, 10:31pm UTC](https://forum.ansible.com/t/modules-embedding-in-roles-is-broken/16425 "2014-10-03T22:31:15Z")

</div>

Since the submodule refactor, embedded modules do not work, unless they are used in the first play in a playbook. I just spent half a day narrowing this down, and I have created a simple example of this behavior at https…

---

## [is it possible to maintain order within with\_ loops?](https://forum.ansible.com/t/is-it-possible-to-maintain-order-within-with-loops/16415)

<div class="topic-metadata">

**Author:** [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Replies:** 6\
**Last updated:** [October 3, 2014, 9:40pm UTC](https://forum.ansible.com/t/is-it-possible-to-maintain-order-within-with-loops/16415 "2014-10-03T21:40:01Z")

</div>

Hi! I have a custom iterator that needs to execute in the order specified in the data structure being passed to it. It seems, however, that the order is getting lost when it enters the looping code and gets converted to …

---

## [Host vars, group vars, Inventory vars?](https://forum.ansible.com/t/host-vars-group-vars-inventory-vars/16422)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 3\
**Last updated:** [October 3, 2014, 8:10pm UTC](https://forum.ansible.com/t/host-vars-group-vars-inventory-vars/16422 "2014-10-03T20:10:09Z")

</div>

I know you can specify group ‘foo’ and then declare variables for everything with \[foo:vars\]. Is there any way to apply variables to every host in the inventory? I was thinking: \[\*:vars\] would work but it does not appea…

---

## [fetch module working fine in 1.5.3, hangs in 1.6.6](https://forum.ansible.com/t/fetch-module-working-fine-in-1-5-3-hangs-in-1-6-6/16423)

<div class="topic-metadata">

**Author:** [@Bruce\_Pennypacker](https://forum.ansible.com/u/Bruce_Pennypacker)\
**Replies:** 1\
**Last updated:** [October 3, 2014, 7:41pm UTC](https://forum.ansible.com/t/fetch-module-working-fine-in-1-5-3-hangs-in-1-6-6/16423 "2014-10-03T19:41:43Z")

</div>

I have an extremely simple playbook that uses the fetch module to allow our developers, qa, etc. fetch logs from production servers that they otherwise don’t have any access to. The entire playbook consists of: hosts: …

---

## [Variables in playbook names in "include" statement](https://forum.ansible.com/t/variables-in-playbook-names-in-include-statement/16402)

<div class="topic-metadata">

**Author:** [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Replies:** 1\
**Last updated:** [October 3, 2014, 6:56pm UTC](https://forum.ansible.com/t/variables-in-playbook-names-in-include-statement/16402 "2014-10-03T18:56:12Z")

</div>

Hi, I have a playbook where I want to include another playbook which name is depended on variable passed in --extra\_vars: $ ansible-playbook test.yaml --extra\_vars=“variable=XYZ” Inside test.yaml: TASK1 TASK2 -incl…

---

## [Variables in include statements](https://forum.ansible.com/t/variables-in-include-statements/16398)

<div class="topic-metadata">

**Author:** [@Alexey\_Malov](https://forum.ansible.com/u/Alexey_Malov)\
**Replies:** 1\
**Last updated:** [October 3, 2014, 6:54pm UTC](https://forum.ansible.com/t/variables-in-include-statements/16398 "2014-10-03T18:54:14Z")

</div>

Hello all, Hope you are doing well. Could you please tell me if it’s possible to use variables in the include statement? I’m trying to do next thing: Have some role, for example ‘superrole’. And have some tasks insi…

---

## [file created by ansible seems to have strangely mangled permissions (looks OK as root but looking generates errors as regular user)](https://forum.ansible.com/t/file-created-by-ansible-seems-to-have-strangely-mangled-permissions-looks-ok-as-root-but-looking-generates-errors-as-regular-user/16389)

<div class="topic-metadata">

**Author:** [@Paul\_Hardwick](https://forum.ansible.com/u/Paul_Hardwick)\
**Replies:** 5\
**Last updated:** [October 3, 2014, 6:43pm UTC](https://forum.ansible.com/t/file-created-by-ansible-seems-to-have-strangely-mangled-permissions-looks-ok-as-root-but-looking-generates-errors-as-regular-user/16389 "2014-10-03T18:43:45Z")

</div>

Issue with files created by Ansible I’m looking at using to setup some new servers at a new ISP and I’ve been doing some basic steps to test first. I am new but have done some testing on diff servers at another ISP whic…

---

## [Option to ignore executable inventory files?](https://forum.ansible.com/t/option-to-ignore-executable-inventory-files/16419)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 0\
**Last updated:** [October 3, 2014, 4:45pm UTC](https://forum.ansible.com/t/option-to-ignore-executable-inventory-files/16419 "2014-10-03T16:45:47Z")

</div>

When Vagrant (or VirtualBox?) shares folder from Windows host, all files inside are made executable (because Windows uses different filesystem). This makes it impossible to run Ansible with invetory file that is located …

---

## [DevOps/Testing/Coolness in Austin?](https://forum.ansible.com/t/devops-testing-coolness-in-austin/16418)

<div class="topic-metadata">

**Author:** [@Paul\_Julius](https://forum.ansible.com/u/Paul_Julius)\
**Replies:** 0\
**Last updated:** [October 3, 2014, 3:10pm UTC](https://forum.ansible.com/t/devops-testing-coolness-in-austin/16418 "2014-10-03T15:10:07Z")

</div>

Greetings, A quick reminder that the coolest DevOps/Agile/Testing conference in the world (CITCON) will be in Austin in 2 weeks! It’s free! http://citconf.com/austin2014/ We bring together the brightest minds in the i…

---

## [ssh-keys](https://forum.ansible.com/t/ssh-keys/16404)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 2\
**Last updated:** [October 3, 2014, 11:44am UTC](https://forum.ansible.com/t/ssh-keys/16404 "2014-10-03T11:44:50Z")

</div>

Hi, In my setup, I have a master host that contains all accounts, these accounts are to be kept in sync across a bunch of isolated remote environments. The account creation/deletion is not a problem, however I can’t se…

---

## [Execute sudo as a different user](https://forum.ansible.com/t/execute-sudo-as-a-different-user/16337)

<div class="topic-metadata">

**Author:** [@Andreas\_Calvo](https://forum.ansible.com/u/Andreas_Calvo)\
**Replies:** 10\
**Last updated:** [October 3, 2014, 9:06am UTC](https://forum.ansible.com/t/execute-sudo-as-a-different-user/16337 "2014-10-03T09:06:40Z")

</div>

Hi, To manage a large farm of servers while maintaining security we do not provide a privileged-enable user by SSH, but want to have a non-ssh user to perform sudo operations. However, while adopting Ansible, we have n…

---

## [PROPOSAL: 'description' parameter](https://forum.ansible.com/t/proposal-description-parameter/16391)

<div class="topic-metadata">

**Author:** [@shirou](https://forum.ansible.com/u/shirou)\
**Replies:** 5\
**Last updated:** [October 3, 2014, 8:32am UTC](https://forum.ansible.com/t/proposal-description-parameter/16391 "2014-10-03T08:32:55Z")

</div>

Hi list, I'd like to open a discussion about "description" parameter. Ansible does nothing about on it. It just describing what is it. I know YAML can have a comment and name is good to know what this task do. But c…

---

## [which is a correct way to reuse code from roles?](https://forum.ansible.com/t/which-is-a-correct-way-to-reuse-code-from-roles/16412)

<div class="topic-metadata">

**Author:** [@Igor\_Homyakov](https://forum.ansible.com/u/Igor_Homyakov)\
**Replies:** 0\
**Last updated:** [October 3, 2014, 6:44am UTC](https://forum.ansible.com/t/which-is-a-correct-way-to-reuse-code-from-roles/16412 "2014-10-03T06:44:04Z")

</div>

Hi Dmitry, I would suggest you to use my approach bellow: # Load a variable file based on the OS type, or a default if not found. - include\_vars: "{{ item }}" with\_first\_found: - "{{ ansible\_di…

---

## [matching on facts in templates](https://forum.ansible.com/t/matching-on-facts-in-templates/16411)

<div class="topic-metadata">

**Author:** [@Barry\_Morrison](https://forum.ansible.com/u/Barry_Morrison)\
**Replies:** 1\
**Last updated:** [October 2, 2014, 11:13pm UTC](https://forum.ansible.com/t/matching-on-facts-in-templates/16411 "2014-10-02T23:13:22Z")

</div>

I have some legacy servers, and I have some servers that aren’t legacy and being built a new way with new network interfaces. The playbook/template worked matching on the old template and facts, but now that a new inter…

---

## [Allow a more advanced serialized deploy for multiple clusters at once](https://forum.ansible.com/t/allow-a-more-advanced-serialized-deploy-for-multiple-clusters-at-once/16394)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 5\
**Last updated:** [October 2, 2014, 10:18pm UTC](https://forum.ansible.com/t/allow-a-more-advanced-serialized-deploy-for-multiple-clusters-at-once/16394 "2014-10-02T22:18:04Z")

</div>

(I’m reposting this comment, I noted within another thread (on -devel), but where it was slightly off topic and overlooked.) I would like to be able to more easily target multiple sets of clusters within the same playbo…

---

## [File permission problems with copy module over cygwin ssh.](https://forum.ansible.com/t/file-permission-problems-with-copy-module-over-cygwin-ssh/16406)

<div class="topic-metadata">

**Author:** [@Heath\_Henjum](https://forum.ansible.com/u/Heath_Henjum)\
**Replies:** 2\
**Last updated:** [October 2, 2014, 10:12pm UTC](https://forum.ansible.com/t/file-permission-problems-with-copy-module-over-cygwin-ssh/16406 "2014-10-02T22:12:58Z")

</div>

Control server is linux… I’m trying to copy a file to a windows server using the template module (the file exists on windows too so I’m trying to overwrite), but I always get a permission denied error if I don’t explici…

---

## [Docker module does not restart containers when docker parameters have changed](https://forum.ansible.com/t/docker-module-does-not-restart-containers-when-docker-parameters-have-changed/16322)

<div class="topic-metadata">

**Author:** [@Aaron\_Feng](https://forum.ansible.com/u/Aaron_Feng)\
**Replies:** 6\
**Last updated:** [October 2, 2014, 9:54pm UTC](https://forum.ansible.com/t/docker-module-does-not-restart-containers-when-docker-parameters-have-changed/16322 "2014-10-02T21:54:02Z")

</div>

Currently the docker module only restarts the container if the name parameter is specified and the image has changed. Are there plans to also check if other docker parameters have changed such as env, port and volume? I…

---

## [Totally Stuck...](https://forum.ansible.com/t/totally-stuck/16375)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 4\
**Last updated:** [October 2, 2014, 9:20pm UTC](https://forum.ansible.com/t/totally-stuck/16375 "2014-10-02T21:20:50Z")

</div>

This is a real blocker. SSH works but Ansible does not. In the debug output I see '‘PasswordAuthentication=no’ and that looks wrong. Any ideas? Thanks

---

## [Any chance for a 'stable' Ansible branch in main GitHub repository?](https://forum.ansible.com/t/any-chance-for-a-stable-ansible-branch-in-main-github-repository/16403)

<div class="topic-metadata">

**Author:** [@drybjed](https://forum.ansible.com/u/drybjed)\
**Replies:** 10\
**Last updated:** [October 2, 2014, 9:14pm UTC](https://forum.ansible.com/t/any-chance-for-a-stable-ansible-branch-in-main-github-repository/16403 "2014-10-02T21:14:30Z")

</div>

Hello, I'm testing my Ansible roles (58 at the moment) on Travis-CI using RoleSpec framework (https://github.com/nickjj/rolespec/). Testing is currently done by cloning Ansible from its main GitHub repository and enab…

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

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