# Latest

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

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

**Page:** 988

---

## [Mechanics of sudo](https://forum.ansible.com/t/mechanics-of-sudo/14666)

<div class="topic-metadata">

**Author:** [@Deyna\_Cegielski](https://forum.ansible.com/u/Deyna_Cegielski)\
**Replies:** 1\
**Last updated:** [February 28, 2014, 1:53pm UTC](https://forum.ansible.com/t/mechanics-of-sudo/14666 "2014-02-28T13:53:05Z")

</div>

I’ve run into a bit of a brick wall with Ansible. As part of my playbook I’ve created an “application daemon” user. This user is responsible for running any software deployed to the provisioned machine. Its not a sudoer…

---

## [Start of some EC2 integration tests in tests/ dir](https://forum.ansible.com/t/start-of-some-ec2-integration-tests-in-tests-dir/14671)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [February 28, 2014, 2:24am UTC](https://forum.ansible.com/t/start-of-some-ec2-integration-tests-in-tests-dir/14671 "2014-02-28T02:24:34Z")

</div>

We’ve been using a lot of the EC2 modules in some internal things though we’ve been wanting to get more integration tests in the project. You can see the start of some playbooks to test EC2 things live here: https://gi…

---

## [YUM: Much slower in ansible than on the cli](https://forum.ansible.com/t/yum-much-slower-in-ansible-than-on-the-cli/14589)

<div class="topic-metadata">

**Author:** [@Marc\_Trudel](https://forum.ansible.com/u/Marc_Trudel)\
**Replies:** 21\
**Last updated:** [February 27, 2014, 6:43pm UTC](https://forum.ansible.com/t/yum-much-slower-in-ansible-than-on-the-cli/14589 "2014-02-27T18:43:12Z")

</div>

The yum module looks heaps slower than the actual yum command. For instance, when I check if a set of three packages are installed in ansible (timestamps are mine) \[19:44:05\] TASK: \[common | Install presto, fastdownlo…

---

## [deploying jars](https://forum.ansible.com/t/deploying-jars/14665)

<div class="topic-metadata">

**Author:** [@Mark\_Butler](https://forum.ansible.com/u/Mark_Butler)\
**Replies:** 1\
**Last updated:** [February 27, 2014, 4:06am UTC](https://forum.ansible.com/t/deploying-jars/14665 "2014-02-27T04:06:15Z")

</div>

Hi team, i need to download and deploy some jars using Ansible from Jenkins. Some of our jars with dependencies are large (150mb) so this is slow. Is there anyway i can check if and only download if the resource has ch…

---

## [Remove vars directory from ansible-galaxy generated roles?](https://forum.ansible.com/t/remove-vars-directory-from-ansible-galaxy-generated-roles/14662)

<div class="topic-metadata">

**Author:** [@Dalton\_Hubble](https://forum.ansible.com/u/Dalton_Hubble)\
**Replies:** 15\
**Last updated:** [February 27, 2014, 3:42am UTC](https://forum.ansible.com/t/remove-vars-directory-from-ansible-galaxy-generated-roles/14662 "2014-02-27T03:42:19Z")

</div>

Concerning the role generated by ansible-galaxy: I question the inclusion of the /vars directory in the generated role. Populated /vars directories in roles found in the wold are a barrier to reuse. While it is great th…

---

## [Ansible fails with "Authentication or permission failure" due to "Too many links" in $HOME/.ansible/tmp/](https://forum.ansible.com/t/ansible-fails-with-authentication-or-permission-failure-due-to-too-many-links-in-home-ansible-tmp/14664)

<div class="topic-metadata">

**Author:** [@i\_iordanov](https://forum.ansible.com/u/i_iordanov)\
**Replies:** 4\
**Last updated:** [February 27, 2014, 12:58am UTC](https://forum.ansible.com/t/ansible-fails-with-authentication-or-permission-failure-due-to-too-many-links-in-home-ansible-tmp/14664 "2014-02-27T00:58:07Z")

</div>

Here is a sample failure message: fatal: \[u05\] =\> Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on t he remote directory. Consider changing the…

---

## [Ansible Galaxy roles - distro - arch 64](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661)

<div class="topic-metadata">

**Author:** [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Replies:** 3\
**Last updated:** [February 26, 2014, 11:40pm UTC](https://forum.ansible.com/t/ansible-galaxy-roles-distro-arch-64/14661 "2014-02-26T23:40:14Z")

</div>

I created a (trivial) role to install Docker onto Ubuntu Precise, and amended the meta/main.yml file appropriately. There is an issue though, this role only works on Ubuntu Precise 64bit. AFAIK, Docker do not supply 32 …

---

## [RFC: Ephemeral Mounts](https://forum.ansible.com/t/rfc-ephemeral-mounts/14663)

<div class="topic-metadata">

**Author:** [@Dustin\_C\_Hatch](https://forum.ansible.com/u/Dustin_C_Hatch)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 10:29pm UTC](https://forum.ansible.com/t/rfc-ephemeral-mounts/14663 "2014-02-26T22:29:52Z")

</div>

Hi, I have a playbook that requires filesystems to be mounted temporarily, and I do not want to have them recorded in /etc/fstab. I was originally using the command module to call mount and do it by hand, but that re…

---

## [SSH users via ansible](https://forum.ansible.com/t/ssh-users-via-ansible/14652)

<div class="topic-metadata">

**Author:** [@Petr\_Sukharev](https://forum.ansible.com/u/Petr_Sukharev)\
**Replies:** 6\
**Last updated:** [February 26, 2014, 5:11pm UTC](https://forum.ansible.com/t/ssh-users-via-ansible/14652 "2014-02-26T17:11:43Z")

</div>

Hello! I am newby in ansible world, but i like this tool and i try to use in my enviroment… I have some question about user managment, and can’t get solution :frowning: I have several projects (test, developer, produc…

---

## [Why no variable substitution in top level includes?](https://forum.ansible.com/t/why-no-variable-substitution-in-top-level-includes/14624)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 12\
**Last updated:** [February 26, 2014, 4:49pm UTC](https://forum.ansible.com/t/why-no-variable-substitution-in-top-level-includes/14624 "2014-02-26T16:49:52Z")

</div>

From http://docs.ansible.com/playbooks\_roles.html#task-include-files-and-encouraging-reuse Note that you cannot do variable substitution when including one playbook inside another. I actually wanted to do this in my …

---

## [generating multiple files from one template](https://forum.ansible.com/t/generating-multiple-files-from-one-template/14660)

<div class="topic-metadata">

**Author:** [@Andy\_Altepeter](https://forum.ansible.com/u/Andy_Altepeter)\
**Replies:** 2\
**Last updated:** [February 26, 2014, 4:16pm UTC](https://forum.ansible.com/t/generating-multiple-files-from-one-template/14660 "2014-02-26T16:16:31Z")

</div>

Greetings, I have a need to generate multiple configuration files on a single host from one template. Is this possible in ansible? Let’s say I have a variable like: vars: configs: port: 8080 directory: /var/www/ho…

---

## [How to use --extra-vars JSON to replace part of a complex variable data structure](https://forum.ansible.com/t/how-to-use-extra-vars-json-to-replace-part-of-a-complex-variable-data-structure/14654)

<div class="topic-metadata">

**Author:** [@zihaoyu](https://forum.ansible.com/u/zihaoyu)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 12:51pm UTC](https://forum.ansible.com/t/how-to-use-extra-vars-json-to-replace-part-of-a-complex-variable-data-structure/14654 "2014-02-26T12:51:32Z")

</div>

I have in my playbook this var: name: Deploy nodejs app vars: nodejs: name: myapp version: 0.1.1 settings: port: 3000 log: /var/log I want to replace or override version and port in this nodejs variable at runt…

---

## [Regression after upgrade to 1.4.5](https://forum.ansible.com/t/regression-after-upgrade-to-1-4-5/14659)

<div class="topic-metadata">

**Author:** [@Miroslav\_Suchy](https://forum.ansible.com/u/Miroslav_Suchy)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 12:49pm UTC](https://forum.ansible.com/t/regression-after-upgrade-to-1-4-5/14659 "2014-02-26T12:49:04Z")

</div>

I upgrade to new version … well Fedora 19 gave it to me after yum upgrade. So I went from ansible-1.4.3 to ansible-1.4.5 and I experience two regressions I have this in playbook: tasks: … debug: msg=“IP={{ int\_ip.…

---

## [Failed to access license information. GET returned status: 401](https://forum.ansible.com/t/failed-to-access-license-information-get-returned-status-401/14658)

<div class="topic-metadata">

**Author:** [@David\_Chin](https://forum.ansible.com/u/David_Chin)\
**Replies:** 2\
**Last updated:** [February 26, 2014, 12:47pm UTC](https://forum.ansible.com/t/failed-to-access-license-information-get-returned-status-401/14658 "2014-02-26T12:47:49Z")

</div>

Hi guys, I keep on getting these messages when logging in to AWX (Ansible Tower). Failed to access license information. GET returned status: 401 After I dismissed the error, it keeps on prompting me to login again and…

---

## [How do I create a variable shared by a number of tasks in a role in Ansible?](https://forum.ansible.com/t/how-do-i-create-a-variable-shared-by-a-number-of-tasks-in-a-role-in-ansible/14638)

<div class="topic-metadata">

**Author:** [@Mark\_Butler](https://forum.ansible.com/u/Mark_Butler)\
**Replies:** 3\
**Last updated:** [February 26, 2014, 1:08am UTC](https://forum.ansible.com/t/how-do-i-create-a-variable-shared-by-a-number-of-tasks-in-a-role-in-ansible/14638 "2014-02-26T01:08:56Z")

</div>

(I created a SO question about this but maybe it would be better to ask here - http://stackoverflow.com/questions/21972208/how-do-i-create-a-variable-shared-by-a-number-of-tasks-in-a-role-in-ansible) I am creating a ta…

---

## [How to call templates as functions / how to use roles as functions](https://forum.ansible.com/t/how-to-call-templates-as-functions-how-to-use-roles-as-functions/14657)

<div class="topic-metadata">

**Author:** [@Mark\_Butler](https://forum.ansible.com/u/Mark_Butler)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 11:14pm UTC](https://forum.ansible.com/t/how-to-call-templates-as-functions-how-to-use-roles-as-functions/14657 "2014-02-25T23:14:08Z")

</div>

I am generating some supervisor files from templates - but my services (roles) have dependencies on other services. So because the template uses the variable name instead of it picking “theServiceThatServiceADependsOn” a…

---

## [Interfacing ansible with an outside inventory program.](https://forum.ansible.com/t/interfacing-ansible-with-an-outside-inventory-program/14656)

<div class="topic-metadata">

**Author:** [@Stephen\_John\_Smoogen](https://forum.ansible.com/u/Stephen_John_Smoogen)\
**Replies:** 2\
**Last updated:** [February 25, 2014, 11:05pm UTC](https://forum.ansible.com/t/interfacing-ansible-with-an-outside-inventory-program/14656 "2014-02-25T23:05:34Z")

</div>

So I am trying to keep track of a couple of projects assets which is some information that ansible can get but other stuff like rack, warranty, cyclades and cisco port hookups and such are extra info that works better in…

---

## [major ssh slowdown after 1.3.4](https://forum.ansible.com/t/major-ssh-slowdown-after-1-3-4/14486)

<div class="topic-metadata">

**Author:** [@Stefano\_Debenedetti](https://forum.ansible.com/u/Stefano_Debenedetti)\
**Replies:** 2\
**Last updated:** [February 25, 2014, 10:21pm UTC](https://forum.ansible.com/t/major-ssh-slowdown-after-1-3-4/14486 "2014-02-25T22:21:12Z")

</div>

Hi, today I upgraded from Ansible 1.3.4 to 1.4.4 and noticed a major slowdown in my playbooks using ssh between virtual machines on the same VirtualBox host. Here’s a simple test with ping showing what I mean: root@an…

---

## [Managing complex inventory](https://forum.ansible.com/t/managing-complex-inventory/14651)

<div class="topic-metadata">

**Author:** [@tom.usher](https://forum.ansible.com/u/tom.usher)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 10:20pm UTC](https://forum.ansible.com/t/managing-complex-inventory/14651 "2014-02-25T22:20:25Z")

</div>

I’m managing multiple separate applications from my Ansible repo, each with a different set of servers. Each application has multiple instances (dev, stage, prod). To manage all this I have a whole bunch of inventory fi…

---

## [Docker: docker-py updated to 0.3.0 and broke Ansible's docker module - questions about fixing it](https://forum.ansible.com/t/docker-docker-py-updated-to-0-3-0-and-broke-ansibles-docker-module-questions-about-fixing-it/14646)

<div class="topic-metadata">

**Author:** [@Joshua\_Conner](https://forum.ansible.com/u/Joshua_Conner)\
**Replies:** 3\
**Last updated:** [February 25, 2014, 6:52pm UTC](https://forum.ansible.com/t/docker-docker-py-updated-to-0-3-0-and-broke-ansibles-docker-module-questions-about-fixing-it/14646 "2014-02-25T18:52:37Z")

</div>

Hey all! Ansible’s docker module depends on docker-py (Python bindings for the Docker API), and docker-py just pushed a minor-version update bump that contains some changes that break the docker module in Ansible as it …

---

## [wait\_for, check-mode, always\_run](https://forum.ansible.com/t/wait-for-check-mode-always-run/14653)

<div class="topic-metadata">

**Author:** [@Jeremy\_Schulman](https://forum.ansible.com/u/Jeremy_Schulman)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 6:03pm UTC](https://forum.ansible.com/t/wait-for-check-mode-always-run/14653 "2014-02-25T18:03:03Z")

</div>

hi, i would like to run a play/task/action wait\_for with the always\_run clause set to yes. my expected results is that this will execute with --check. using the 1.5 code, the action is still skipped. i dont know if th…

---

## [Large or small roles?](https://forum.ansible.com/t/large-or-small-roles/14650)

<div class="topic-metadata">

**Author:** [@chris\_snyder](https://forum.ansible.com/u/chris_snyder)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 5:50pm UTC](https://forum.ansible.com/t/large-or-small-roles/14650 "2014-02-25T17:50:41Z")

</div>

Looking for feedback on what should go into a role. I’ve created a ‘common’ role that will be applied to ALL my hosts. It contains things like /etc/motd, snmp server settings, and ntp settings. Currently I have defined …

---

## [default galaxy template variables](https://forum.ansible.com/t/default-galaxy-template-variables/14620)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 3:35pm UTC](https://forum.ansible.com/t/default-galaxy-template-variables/14620 "2014-02-25T15:35:37Z")

</div>

When using ansible-galaxy there is template in the source with (for example) a variable {{ author }}. But I can’t see a possibility to add these variables to the ansible-galaxy init call. Is that already possible?

---

## [skip a play in a playbook?](https://forum.ansible.com/t/skip-a-play-in-a-playbook/14648)

<div class="topic-metadata">

**Author:** [@Jeremy\_Schulman](https://forum.ansible.com/u/Jeremy_Schulman)\
**Replies:** 3\
**Last updated:** [February 25, 2014, 3:08pm UTC](https://forum.ansible.com/t/skip-a-play-in-a-playbook/14648 "2014-02-25T15:08:07Z")

</div>

lets say i have a playbook with three plays. i would like to skip the middle play if some condition is met. is this possible without having to add a 'when' condition to each task in the middle play? thank you1

---

## [Pull Req #5916, add userdata to cloud/nova\_compute](https://forum.ansible.com/t/pull-req-5916-add-userdata-to-cloud-nova-compute/14647)

<div class="topic-metadata">

**Author:** [@Matt\_Saunders](https://forum.ansible.com/u/Matt_Saunders)\
**Replies:** 1\
**Last updated:** [February 25, 2014, 12:14pm UTC](https://forum.ansible.com/t/pull-req-5916-add-userdata-to-cloud-nova-compute/14647 "2014-02-25T12:14:40Z")

</div>

Hi, I’d just like to mention a pull request I submitted a few weeks ago which I think greatly increases the usefulness of the nova\_compute module. As it stands you can’t pass userdata (e.g. for cloud-init scripts) to th…

---

## [synchronize module and check\_mode](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644)

<div class="topic-metadata">

**Author:** [@Dimos\_Alevizos](https://forum.ansible.com/u/Dimos_Alevizos)\
**Replies:** 3\
**Last updated:** [February 24, 2014, 9:18pm UTC](https://forum.ansible.com/t/synchronize-module-and-check-mode/14644 "2014-02-24T21:18:33Z")

</div>

Hi, I have a problem with the synchronize module on ansible 1.4. It seems it ignores the --check but I can’t figure out why, the code seems fine to me. I created a simple playbook to experiment with the module : root@…

---

## [Sharing DOCUMENTATION amongst modules](https://forum.ansible.com/t/sharing-documentation-amongst-modules/14511)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 9\
**Last updated:** [February 24, 2014, 9:18pm UTC](https://forum.ansible.com/t/sharing-documentation-amongst-modules/14511 "2014-02-24T21:18:07Z")

</div>

A few weeks ago, I opened a github issue (although I should have sent an email to the list, which I am doing now), to see about addressing an issue that is starting to form, in regards to the AWS and Rax modules and shar…

---

## [with\_nested on only one list](https://forum.ansible.com/t/with-nested-on-only-one-list/14639)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 5\
**Last updated:** [February 24, 2014, 9:17pm UTC](https://forum.ansible.com/t/with-nested-on-only-one-list/14639 "2014-02-24T21:17:52Z")

</div>

Hello, I don’t know if this is normal (feature?) or if it can be considered as a bug that needs to be fixed : name: my task action: … with\_nested: myList does not loop over myList with each item referenced as ite…

---

## [can the mysql\_user module include additional user requirements?](https://forum.ansible.com/t/can-the-mysql-user-module-include-additional-user-requirements/14645)

<div class="topic-metadata">

**Author:** [@Brent\_Langston1](https://forum.ansible.com/u/Brent_Langston1)\
**Replies:** 1\
**Last updated:** [February 24, 2014, 9:00pm UTC](https://forum.ansible.com/t/can-the-mysql-user-module-include-additional-user-requirements/14645 "2014-02-24T21:00:31Z")

</div>

I’d like to use the mysql\_user module to create accounts that look like this: GRANT ALL PRIVILEGES ON . TO ‘bob’@'%’ IDENTIFIED BY ‘pass’ REQUIRE SSL; Looking at the docs, it’s not immediately obvious how to do this. …

---

## [Accelerated Mode Unexpected Disconnect](https://forum.ansible.com/t/accelerated-mode-unexpected-disconnect/14633)

<div class="topic-metadata">

**Author:** [@Christopher\_O\_Connel](https://forum.ansible.com/u/Christopher_O_Connel)\
**Replies:** 3\
**Last updated:** [February 24, 2014, 8:43pm UTC](https://forum.ansible.com/t/accelerated-mode-unexpected-disconnect/14633 "2014-02-24T20:43:01Z")

</div>

We’re having a problem when accelerated mode unexpectedly disconnects for whatever reason. This happens often when running test playbooks from poor connections, e.g. in-flight wifi. It can also happen when running a big …

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

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