# Latest

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

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

**Page:** 976

---

## [Enhanced behaviour for mount](https://forum.ansible.com/t/enhanced-behaviour-for-mount/15035)

<div class="topic-metadata">

**Author:** [@Beau\_Simensen](https://forum.ansible.com/u/Beau_Simensen)\
**Replies:** 3\
**Last updated:** [April 17, 2014, 12:46am UTC](https://forum.ansible.com/t/enhanced-behaviour-for-mount/15035 "2014-04-17T00:46:08Z")

</div>

Hi all! I just spent a few hours trying to get mount to work like I wanted it to. I am not mounting anything special, I just want to add the “acl” option to whatever disk is mounted at “/”. This means that I do not know…

---

## [How to retrieve facts about host B inside a playbook which run for host A](https://forum.ansible.com/t/how-to-retrieve-facts-about-host-b-inside-a-playbook-which-run-for-host-a/15032)

<div class="topic-metadata">

**Author:** [@Servermanaged](https://forum.ansible.com/u/Servermanaged)\
**Replies:** 8\
**Last updated:** [April 16, 2014, 11:45pm UTC](https://forum.ansible.com/t/how-to-retrieve-facts-about-host-b-inside-a-playbook-which-run-for-host-a/15032 "2014-04-16T23:45:07Z")

</div>

Hello friends! Almost sure that this is my fault but at this time is still obscure for me how to retrieve facts about host B inside a playbook which run for host A. This is the real case: I want to populate Icinga host…

---

## [Need assist with syntax to launch with EC2 profile](https://forum.ansible.com/t/need-assist-with-syntax-to-launch-with-ec2-profile/15026)

<div class="topic-metadata">

**Author:** [@mark\_david\_mcCreary](https://forum.ansible.com/u/mark_david_mcCreary)\
**Replies:** 2\
**Last updated:** [April 16, 2014, 8:22pm UTC](https://forum.ansible.com/t/need-assist-with-syntax-to-launch-with-ec2-profile/15026 "2014-04-16T20:22:48Z")

</div>

name: Launch instance local\_action: ec2 keypair={{ keypair }} instance\_type={{ instance\_type }} image={{ image }} region={{ region }} aws\_access\_key={{ aws\_access\_key }} aws\_secret\_key={{ aws\_secret\_key }} group={{…

---

## [Security-related fix for users of the apt\_repository module when used with private repos](https://forum.ansible.com/t/security-related-fix-for-users-of-the-apt-repository-module-when-used-with-private-repos/15034)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [April 16, 2014, 7:44pm UTC](https://forum.ansible.com/t/security-related-fix-for-users-of-the-apt-repository-module-when-used-with-private-repos/15034 "2014-04-16T19:44:18Z")

</div>

Hi everyone, We received a bug report (https://github.com/ansible/ansible/issues/6908) which indicates that if a private apt repository reference is created with the apt\_repository module, and if the URL of that reposit…

---

## [1.5.4: apt dist-upgrade fails with "No such file or directory"](https://forum.ansible.com/t/1-5-4-apt-dist-upgrade-fails-with-no-such-file-or-directory/14967)

<div class="topic-metadata">

**Author:** [@Jens-Christian\_Fisch](https://forum.ansible.com/u/Jens-Christian_Fisch)\
**Replies:** 6\
**Last updated:** [April 16, 2014, 5:44pm UTC](https://forum.ansible.com/t/1-5-4-apt-dist-upgrade-fails-with-no-such-file-or-directory/14967 "2014-04-16T17:44:56Z")

</div>

I am trying to upgrade all our (ubuntu) servers with the following playbook: hosts: all serial: 2 tasks: name: apt-get update apt: update\_cache=yes name: apt-get dist-upgrade apt: upgrade=dist dpkg\_options=‘f…

---

## [timestamps in output](https://forum.ansible.com/t/timestamps-in-output/15031)

<div class="topic-metadata">

**Author:** [@Bas\_Meijer](https://forum.ansible.com/u/Bas_Meijer)\
**Replies:** 1\
**Last updated:** [April 16, 2014, 2:11pm UTC](https://forum.ansible.com/t/timestamps-in-output/15031 "2014-04-16T14:11:11Z")

</div>

Has it been considered to have timestamps for metrics/audits in the output of ansible-playbook similar to below example? TASK: \[make sure package openssl is installed and latest\] \*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[server1\] 2014-…

---

## [ec2\_group with port range?](https://forum.ansible.com/t/ec2-group-with-port-range/14992)

<div class="topic-metadata">

**Author:** [@ghexsel](https://forum.ansible.com/u/ghexsel)\
**Replies:** 2\
**Last updated:** [April 16, 2014, 2:03am UTC](https://forum.ansible.com/t/ec2-group-with-port-range/14992 "2014-04-16T02:03:45Z")

</div>

Is there a way to define an ec2\_group with port ranges, or maybe allow all ports for the security group? There is one example with a protocol of “all” which the code seems to map to -1, but if I use it, I get the followi…

---

## [Understanding sudo\_user](https://forum.ansible.com/t/understanding-sudo-user/15030)

<div class="topic-metadata">

**Author:** [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Replies:** 1\
**Last updated:** [April 16, 2014, 12:43am UTC](https://forum.ansible.com/t/understanding-sudo-user/15030 "2014-04-16T00:43:44Z")

</div>

Hey All, I’m looking for a quick clarification… When running a task and setting the sudo\_user field, does the user itself have to have sudo access, or is it more like running sudo su {{user}}? I ask cause I’m trying t…

---

## [Trouble syncing bunch of files using synchronize / sudo rsync](https://forum.ansible.com/t/trouble-syncing-bunch-of-files-using-synchronize-sudo-rsync/15019)

<div class="topic-metadata">

**Author:** [@Sibin\_Arsenijevic](https://forum.ansible.com/u/Sibin_Arsenijevic)\
**Replies:** 5\
**Last updated:** [April 15, 2014, 11:03pm UTC](https://forum.ansible.com/t/trouble-syncing-bunch-of-files-using-synchronize-sudo-rsync/15019 "2014-04-15T23:03:30Z")

</div>

First of all i want to tell you how amazed i am with Ansible! The more i learn it the more amazed i am, it is a great peace of software. But now, as always, i have a problem :slight\_smile: I’ve been having problems wit…

---

## [Digest for ansible-devel@googlegroups.com - 1 update in 1 topic](https://forum.ansible.com/t/digest-for-ansible-devel-googlegroups-com-1-update-in-1-topic/15029)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 10:49pm UTC](https://forum.ansible.com/t/digest-for-ansible-devel-googlegroups-com-1-update-in-1-topic/15029 "2014-04-15T22:49:24Z")

</div>

This is not a question for the development list - please could you ask it on the ansible-project list which has many more readers and therefore contributors. When pasting output, run the ansible-playbook with -vvv. And …

---

## [Docker Inventory Module + Configuration](https://forum.ansible.com/t/docker-inventory-module-configuration/15027)

<div class="topic-metadata">

**Author:** [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 10:28pm UTC](https://forum.ansible.com/t/docker-inventory-module-configuration/15027 "2014-04-15T22:28:19Z")

</div>

Hey guys, I’m in the process of wrapping up on a Docker inventory plugin, but before I open a pull request, I wanted to check about something. Here’s a link for those interested: https://github.com/angstwad/ansible/tre…

---

## [Create a RDS mysql user using mysql\_user module](https://forum.ansible.com/t/create-a-rds-mysql-user-using-mysql-user-module/15000)

<div class="topic-metadata">

**Author:** [@prateek\_gupta](https://forum.ansible.com/u/prateek_gupta)\
**Replies:** 3\
**Last updated:** [April 15, 2014, 9:45pm UTC](https://forum.ansible.com/t/create-a-rds-mysql-user-using-mysql-user-module/15000 "2014-04-15T21:45:45Z")

</div>

Im trying to create a mysql user for the following #creating a sql user hosts: localhost tasks: #- name: test mysql\_user: host=abcde.us-west-2.rds.amazonaws.com login\_user=klm login\_password=msr123 name=sally passw…

---

## [No host limitation of ansible-pull](https://forum.ansible.com/t/no-host-limitation-of-ansible-pull/14996)

<div class="topic-metadata">

**Author:** [@Chang-Ching\_Yeh](https://forum.ansible.com/u/Chang-Ching_Yeh)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 9:44pm UTC](https://forum.ansible.com/t/no-host-limitation-of-ansible-pull/14996 "2014-04-15T21:44:57Z")

</div>

Hi everyone, I wrote a play and put it on a private repository. I try to execute it through ansible-pull -U http://gitlab.mydomain.com/jim/ansible-books.git -i hosts unittest\_automation.yml But I got an error return:…

---

## [Lookup plugin that uses SSH agent for decrypting data](https://forum.ansible.com/t/lookup-plugin-that-uses-ssh-agent-for-decrypting-data/14965)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 8\
**Last updated:** [April 15, 2014, 9:41pm UTC](https://forum.ansible.com/t/lookup-plugin-that-uses-ssh-agent-for-decrypting-data/14965 "2014-04-15T21:41:33Z")

</div>

Hi, Is it technically possible to encrypt some sensitive data using available SSH public key, so that only the owner of private key could read them with the help of SSH agent? Why? No need to remember one more passwo…

---

## [Making sure an EC2 instance is running](https://forum.ansible.com/t/making-sure-an-ec2-instance-is-running/15020)

<div class="topic-metadata">

**Author:** [@James\_Carroll](https://forum.ansible.com/u/James_Carroll)\
**Replies:** 2\
**Last updated:** [April 15, 2014, 9:36pm UTC](https://forum.ansible.com/t/making-sure-an-ec2-instance-is-running/15020 "2014-04-15T21:36:15Z")

</div>

Howdy all, I’m trying to create a playbook that would insure that a certain set of EC2 instances is running before initiating a process. I’ve played with the EC2 dynamic inventory but it seems to return only instances t…

---

## [configure/make best practices?](https://forum.ansible.com/t/configure-make-best-practices/14978)

<div class="topic-metadata">

**Author:** [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Replies:** 3\
**Last updated:** [April 15, 2014, 9:32pm UTC](https://forum.ansible.com/t/configure-make-best-practices/14978 "2014-04-15T21:32:58Z")

</div>

What’s the Ansible best practice for doing a typical source compile of multiple packages? So, let’s say you have three source packages that all require the same three steps: configure, make, and make install. The thre…

---

## [Using a sigle 'when' for multiple tasks](https://forum.ansible.com/t/using-a-sigle-when-for-multiple-tasks/14977)

<div class="topic-metadata">

**Author:** [@Stephan\_S](https://forum.ansible.com/u/Stephan_S)\
**Replies:** 3\
**Last updated:** [April 15, 2014, 9:31pm UTC](https://forum.ansible.com/t/using-a-sigle-when-for-multiple-tasks/14977 "2014-04-15T21:31:56Z")

</div>

Hello, i have a playbook which contains 10 tasks. I want to run those tasks only if a when clause if filled. My first approach was to put on every task the when. E.g.: - name: My command command: sudo install… when:…

---

## [Troubles with the ansible's git module concerning to git submodules](https://forum.ansible.com/t/troubles-with-the-ansibles-git-module-concerning-to-git-submodules/14805)

<div class="topic-metadata">

**Author:** [@Jose\_Pinheiro\_Neta](https://forum.ansible.com/u/Jose_Pinheiro_Neta)\
**Replies:** 2\
**Last updated:** [April 15, 2014, 9:11pm UTC](https://forum.ansible.com/t/troubles-with-the-ansibles-git-module-concerning-to-git-submodules/14805 "2014-04-15T21:11:54Z")

</div>

Hi! In a Roles’ task I’m trying to clone a repo in develop branch. That repo has git submodules. During the task which use the ansible’s git module, ansible is hanging up. If I ssh to the box while ansible is hanged u…

---

## [Ansible pattern for API-based config management](https://forum.ansible.com/t/ansible-pattern-for-api-based-config-management/14982)

<div class="topic-metadata">

**Author:** [@Salman\_Haq](https://forum.ansible.com/u/Salman_Haq)\
**Replies:** 4\
**Last updated:** [April 15, 2014, 9:00pm UTC](https://forum.ansible.com/t/ansible-pattern-for-api-based-config-management/14982 "2014-04-15T21:00:53Z")

</div>

I am exploring automation of a Hadoop cluster. The vendor (Cloudera) requires that all configuration happen through a REST API. See \[1\] for Cloudera Python API client. My question is: Is there a prior example of an Ans…

---

## [Single when for multiple tasks](https://forum.ansible.com/t/single-when-for-multiple-tasks/14987)

<div class="topic-metadata">

**Author:** [@Stephan\_S](https://forum.ansible.com/u/Stephan_S)\
**Replies:** 2\
**Last updated:** [April 15, 2014, 8:56pm UTC](https://forum.ansible.com/t/single-when-for-multiple-tasks/14987 "2014-04-15T20:56:36Z")

</div>

Hello. I would like to know if it is possible to enclose multiple tasks with one when clause. I am trying to avoid to use the same when statement for all of my tasks in the same playbook. Furthermore, as a requirement…

---

## [Avoid running pre/post tasks without roles/tasks](https://forum.ansible.com/t/avoid-running-pre-post-tasks-without-roles-tasks/14986)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 8:55pm UTC](https://forum.ansible.com/t/avoid-running-pre-post-tasks-without-roles-tasks/14986 "2014-04-15T20:55:34Z")

</div>

Hi all. I have a master deployment playbook that more or less includes all of my servers, which I use with tags to deploy only the apps/configs I want at the time. Hosts are grouped into hostgroups by roles and each hos…

---

## [Pre-Conditions for a role to execute tasks](https://forum.ansible.com/t/pre-conditions-for-a-role-to-execute-tasks/14985)

<div class="topic-metadata">

**Author:** [@Rui\_Yang](https://forum.ansible.com/u/Rui_Yang)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 8:49pm UTC](https://forum.ansible.com/t/pre-conditions-for-a-role-to-execute-tasks/14985 "2014-04-15T20:49:30Z")

</div>

Hi, Suppose I have a role called Ruby. I will install build tools download ruby source compile install Because it takes long time to do all these tings and I don’t want to it it the expected Ruby already installed. H…

---

## [Reliably wait\_for SSH connection to go up](https://forum.ansible.com/t/reliably-wait-for-ssh-connection-to-go-up/14974)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 6\
**Last updated:** [April 15, 2014, 8:47pm UTC](https://forum.ansible.com/t/reliably-wait-for-ssh-connection-to-go-up/14974 "2014-04-15T20:47:44Z")

</div>

---

## [using lineinfile module for modifying XML file issue](https://forum.ansible.com/t/using-lineinfile-module-for-modifying-xml-file-issue/14983)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 8:43pm UTC](https://forum.ansible.com/t/using-lineinfile-module-for-modifying-xml-file-issue/14983 "2014-04-15T20:43:06Z")

</div>

Hi, We are using ansible 1.5.3, and trying to replace/add a line to a xml file. But after lineinfile task is executed, the file format got changed from the Linux to windows, we observed that the end of line for all the …

---

## [Execute pause module only after EC2 provisioning?](https://forum.ansible.com/t/execute-pause-module-only-after-ec2-provisioning/14966)

<div class="topic-metadata">

**Author:** [@Christian\_Kaps](https://forum.ansible.com/u/Christian_Kaps)\
**Replies:** 6\
**Last updated:** [April 15, 2014, 8:34pm UTC](https://forum.ansible.com/t/execute-pause-module-only-after-ec2-provisioning/14966 "2014-04-15T20:34:13Z")

</div>

Hi, in the most Playbooks about EC2 provisioning there exists a task which executes the pause module to wait for the instance to be available. Now that the EC2 module supports idempotency it is possible to run a playboo…

---

## [We could be wrong, but this one looks like it might be an issue with missing quotes.](https://forum.ansible.com/t/we-could-be-wrong-but-this-one-looks-like-it-might-be-an-issue-with-missing-quotes/15021)

<div class="topic-metadata">

**Author:** [@Andrew\_Holway](https://forum.ansible.com/u/Andrew_Holway)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 6:12pm UTC](https://forum.ansible.com/t/we-could-be-wrong-but-this-one-looks-like-it-might-be-an-issue-with-missing-quotes/15021 "2014-04-15T18:12:23Z")

</div>

Hello, I am stuck with the following problem. I have tried various combinations of quotes but always get the same error. Thanks, Andrew \[root@ansible ansible-catn-freeipa\]# ansible-playbook freeipa.yml -i hosts ERRO…

---

## [mysql\_user module doesnt create user for RDS](https://forum.ansible.com/t/mysql-user-module-doesnt-create-user-for-rds/15016)

<div class="topic-metadata">

**Author:** [@prateek\_gupta](https://forum.ansible.com/u/prateek_gupta)\
**Replies:** 1\
**Last updated:** [April 15, 2014, 4:09pm UTC](https://forum.ansible.com/t/mysql-user-module-doesnt-create-user-for-rds/15016 "2014-04-15T16:09:00Z")

</div>

im trying to create a user for mysql DB rds and just trying to execute the following

---

## [mysql\_user module doesnt work for RDS](https://forum.ansible.com/t/mysql-user-module-doesnt-work-for-rds/15017)

<div class="topic-metadata">

**Author:** [@prateek\_gupta](https://forum.ansible.com/u/prateek_gupta)\
**Replies:** 0\
**Last updated:** [April 15, 2014, 11:21am UTC](https://forum.ansible.com/t/mysql-user-module-doesnt-work-for-rds/15017 "2014-04-15T11:21:15Z")

</div>

hi this my following code and output but the user is not getting created in the RDS

---

## [mysql\_user module and LOCK TABLES](https://forum.ansible.com/t/mysql-user-module-and-lock-tables/13596)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rowlands](https://forum.ansible.com/u/Jonathan_Rowlands)\
**Replies:** 5\
**Last updated:** [April 15, 2014, 10:53am UTC](https://forum.ansible.com/t/mysql-user-module-and-lock-tables/13596 "2014-04-15T10:53:37Z")

</div>

I am trying to run the following: name: gitlab | mysql | ensure database user gitlab has necessary privleges mysql\_user: state=present name=gitlab priv=gitlabhq\_production.\*:SELECT,LOCK TABLES,INSERT,UPDATE,DELETE,CRE…

---

## [operating on multiple MySQL databases...](https://forum.ansible.com/t/operating-on-multiple-mysql-databases/13111)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 11\
**Last updated:** [April 15, 2014, 10:29am UTC](https://forum.ansible.com/t/operating-on-multiple-mysql-databases/13111 "2014-04-15T10:29:33Z")

</div>

Hi, my current usecase is to walk around multiple MySQL DB hosts and remove user from them. Sounds like a nice usecase for mysql\_user module. Bit of complication: all hosts have different root credentials. I do not want…

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

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