# Latest

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

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

**Page:** 992

---

## ["common" roles on ansible galaxy](https://forum.ansible.com/t/common-roles-on-ansible-galaxy/14543)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 4\
**Last updated:** [February 12, 2014, 2:16am UTC](https://forum.ansible.com/t/common-roles-on-ansible-galaxy/14543 "2014-02-12T02:16:32Z")

</div>

As I noted on an early message – I’m working on some riak related roles for galaxy – a number of the roles do some similar operations – setting up some repositories, doing some simple configurations, etc. Is it better t…

---

## [acl module improvements](https://forum.ansible.com/t/acl-module-improvements/14546)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 2\
**Last updated:** [February 12, 2014, 1:30am UTC](https://forum.ansible.com/t/acl-module-improvements/14546 "2014-02-12T01:30:54Z")

</div>

I had a discussion start on my ansible forked repo as a PR, I think this might be of interest to more so I’m moving the discussion here. Linking this as a reference, please do not post on it (#githubwhishlist): https:/…

---

## [galaxy and playbooks](https://forum.ansible.com/t/galaxy-and-playbooks/14540)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 1\
**Last updated:** [February 12, 2014, 1:27am UTC](https://forum.ansible.com/t/galaxy-and-playbooks/14540 "2014-02-12T01:27:09Z")

</div>

I’m putting some finishing touches on a number of riak related roles. Since riak is a distributed system, these roles really don’t shine unless they are used on a number of hosts. I’d like to provide some example playboo…

---

## [How to organize roles with a common set of tasks](https://forum.ansible.com/t/how-to-organize-roles-with-a-common-set-of-tasks/14547)

<div class="topic-metadata">

**Author:** [@Stephane\_Bailliez](https://forum.ansible.com/u/Stephane_Bailliez)\
**Replies:** 0\
**Last updated:** [February 12, 2014, 1:09am UTC](https://forum.ansible.com/t/how-to-organize-roles-with-a-common-set-of-tasks/14547 "2014-02-12T01:09:45Z")

</div>

Hi, I’m new to ansible, did a good amount of simple things with it in the last couple of days, but I’m still trying to figure out the best way to do what I need, I have looked at the examples, some are close to it, but …

---

## [Creating users that already exist in NIS using shell: luseradd](https://forum.ansible.com/t/creating-users-that-already-exist-in-nis-using-shell-luseradd/14542)

<div class="topic-metadata">

**Author:** [@Kai\_Blin](https://forum.ansible.com/u/Kai_Blin)\
**Replies:** 0\
**Last updated:** [February 11, 2014, 5:55pm UTC](https://forum.ansible.com/t/creating-users-that-already-exist-in-nis-using-shell-luseradd/14542 "2014-02-11T17:55:41Z")

</div>

Hi folks, let me start by thanking the great people on the ansible IRC channel, notably jtanner, for pointing me into the right direction. A quick word about the system I’m dealing with: I’ve recently inherited a comp…

---

## [is it possible for a task to use a different template depending of the role ?](https://forum.ansible.com/t/is-it-possible-for-a-task-to-use-a-different-template-depending-of-the-role/14541)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [February 11, 2014, 5:34pm UTC](https://forum.ansible.com/t/is-it-possible-for-a-task-to-use-a-different-template-depending-of-the-role/14541 "2014-02-11T17:34:35Z")

</div>

Hi, I have agent-install.yml that installs our application agent and deploys the agent-config template, since agent-install.yml is shared by many roles it’s located under the common role tasks : role/common/tasks/agent…

---

## [How do I get the REMOTE\_USER variable while in a sudo playbook?](https://forum.ansible.com/t/how-do-i-get-the-remote-user-variable-while-in-a-sudo-playbook/12587)

<div class="topic-metadata">

**Author:** [@Steve\_Weber](https://forum.ansible.com/u/Steve_Weber)\
**Replies:** 10\
**Last updated:** [February 11, 2014, 1:18pm UTC](https://forum.ansible.com/t/how-do-i-get-the-remote-user-variable-while-in-a-sudo-playbook/12587 "2014-02-11T13:18:58Z")

</div>

\[14:04\] how do i access the ansible\_ssh\_user , or user variable? \[14:05\] I cant use ansible\_user\_id because my playbook changes to root \[14:06\] I was able to do hacks passing the ssh username like extra-vars="defau…

---

## [create transport map - all lines the same but one](https://forum.ansible.com/t/create-transport-map-all-lines-the-same-but-one/14539)

<div class="topic-metadata">

**Author:** [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Replies:** 1\
**Last updated:** [February 11, 2014, 12:54pm UTC](https://forum.ansible.com/t/create-transport-map-all-lines-the-same-but-one/14539 "2014-02-11T12:54:51Z")

</div>

Hi, I have a postfix transport table on all the mailservers. The file is pretty the same, but the line pointing the the very server this file is on, is deactivated (by comment or by deleting). What would be the sanest…

---

## [modelling inventory variables](https://forum.ansible.com/t/modelling-inventory-variables/14396)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 11\
**Last updated:** [February 11, 2014, 7:54am UTC](https://forum.ansible.com/t/modelling-inventory-variables/14396 "2014-02-11T07:54:25Z")

</div>

Hi list, ​TL;DR: I’d like to know how people model their inventory data for a large set of hosts (+500 vm’s) that are given the mostly the same role, but with many varying applications parameters, to the extent where a …

---

## [MD5 failure](https://forum.ansible.com/t/md5-failure/14537)

<div class="topic-metadata">

**Author:** [@Aristomenis\_Pikeas](https://forum.ansible.com/u/Aristomenis_Pikeas)\
**Replies:** 1\
**Last updated:** [February 11, 2014, 1:05am UTC](https://forum.ansible.com/t/md5-failure/14537 "2014-02-11T01:05:33Z")

</div>

Ubuntu 12.04 LTS, Ansible version 1.5 (devel 5cbe24913f). Ansible error when copying some files to the remote machine: warning: md5sum command failed unusually, please report this to the list so it can be fixed comman…

---

## [Ansible Tower 1.4.5 (formerly AWX) released](https://forum.ansible.com/t/ansible-tower-1-4-5-formerly-awx-released/14536)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [February 10, 2014, 9:48pm UTC](https://forum.ansible.com/t/ansible-tower-1-4-5-formerly-awx-released/14536 "2014-02-10T21:48:19Z")

</div>

Hi all, We’ve just published a new version of Ansible Tower, our central server, GUI, and REST API endpoint for Ansible. For details, read the blog post here: http://blog.ansibleworks.com/2014/02/10/tower-1-4-5-former…

---

## [rhn\_channel task failing - internal error 500 returned from Satellite server](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531)

<div class="topic-metadata">

**Author:** [@David\_Fox](https://forum.ansible.com/u/David_Fox)\
**Replies:** 2\
**Last updated:** [February 10, 2014, 6:22pm UTC](https://forum.ansible.com/t/rhn-channel-task-failing-internal-error-500-returned-from-satellite-server/14531 "2014-02-10T18:22:34Z")

</div>

I’m having problems using rhn\_channel to subscribe to channels name: enable rhn chans rhn\_channel: name={{ item }} url=https://internal.sat.server/rpc/api user=xxx password=xxx sysname={{ ansible\_hostname }} with\_ite…

---

## [Hard to automate reading output from one cmd and using as input for another - best practices?](https://forum.ansible.com/t/hard-to-automate-reading-output-from-one-cmd-and-using-as-input-for-another-best-practices/14532)

<div class="topic-metadata">

**Author:** [@Marcus\_Philip](https://forum.ansible.com/u/Marcus_Philip)\
**Replies:** 2\
**Last updated:** [February 10, 2014, 5:41pm UTC](https://forum.ansible.com/t/hard-to-automate-reading-output-from-one-cmd-and-using-as-input-for-another-best-practices/14532 "2014-02-10T17:41:49Z")

</div>

I’ve been using Ansible for more than a year now and it’s great. I mainly use it in playbook mode, and it’s mainly called by the build server as part of a pipeline. My concern is this: Several times I have gotten stuck …

---

## [copy module: task is getting marked as 'changed' on every run](https://forum.ansible.com/t/copy-module-task-is-getting-marked-as-changed-on-every-run/14534)

<div class="topic-metadata">

**Author:** [@Hernandes\_Sousa](https://forum.ansible.com/u/Hernandes_Sousa)\
**Replies:** 2\
**Last updated:** [February 10, 2014, 5:20pm UTC](https://forum.ansible.com/t/copy-module-task-is-getting-marked-as-changed-on-every-run/14534 "2014-02-10T17:20:56Z")

</div>

Hi, I have this task: name: set Location for timezone copy: src=timezone dest=/etc/timezone owner=root group=root mode=0644 notify: update timezone My problem is it is updating the file on every run even though …

---

## [Getting vagrant to supply correct arguments to Ansible to support SSH agent forwarding](https://forum.ansible.com/t/getting-vagrant-to-supply-correct-arguments-to-ansible-to-support-ssh-agent-forwarding/14533)

<div class="topic-metadata">

**Author:** [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Replies:** 0\
**Last updated:** [February 10, 2014, 4:22pm UTC](https://forum.ansible.com/t/getting-vagrant-to-supply-correct-arguments-to-ansible-to-support-ssh-agent-forwarding/14533 "2014-02-10T16:22:22Z")

</div>

Hi there, We’ve got a pull request for improving Ansible support open on the Vagrant project. The idea is to pass the correct arguments to Ansible so that when it is invoked, SSH agent forwarding will work. https://gi…

---

## [Simple Test Failing](https://forum.ansible.com/t/simple-test-failing/14528)

<div class="topic-metadata">

**Author:** [@Sam6](https://forum.ansible.com/u/Sam6)\
**Replies:** 3\
**Last updated:** [February 10, 2014, 2:15pm UTC](https://forum.ansible.com/t/simple-test-failing/14528 "2014-02-10T14:15:39Z")

</div>

Hello. Just trying out Ansible, but unfortunately failing. Python is installed in /opt/local/bin. Python isn’t installed elsewhere on the system. Config files are in /opt/local/etc/ansible. /opt/local/etc/ansible/hos…

---

## [Ansible hangs while executing a python script](https://forum.ansible.com/t/ansible-hangs-while-executing-a-python-script/14450)

<div class="topic-metadata">

**Author:** [@Arulraj\_J](https://forum.ansible.com/u/Arulraj_J)\
**Replies:** 4\
**Last updated:** [February 10, 2014, 1:31pm UTC](https://forum.ansible.com/t/ansible-hangs-while-executing-a-python-script/14450 "2014-02-10T13:31:18Z")

</div>

Along with ansible tasks i was calling a python script named ‘rbupgrade.py’. During this python script execution anisble hangs and couldn’t move further. \[root@cu028 ~\]# ps -ef|grep py root 19725 19588 0 09:22 pts/0 00…

---

## [Nameserver Facts Patch](https://forum.ansible.com/t/nameserver-facts-patch/14498)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 3\
**Last updated:** [February 10, 2014, 1:00pm UTC](https://forum.ansible.com/t/nameserver-facts-patch/14498 "2014-02-10T13:00:11Z")

</div>

Hi Chris, We’ve got a very large backlog due to massive levels of interest in Ansible and are working through the pull request queue. It may be some time before we get to this one, and I can’t make assurances that this …

---

## [Start of a coding guidelines document](https://forum.ansible.com/t/start-of-a-coding-guidelines-document/14432)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 5\
**Last updated:** [February 10, 2014, 8:03am UTC](https://forum.ansible.com/t/start-of-a-coding-guidelines-document/14432 "2014-02-10T08:03:13Z")

</div>

As we’re getting larger I was finding myself sharing some tips repeatedly (and leaving some others unexpressed), so I decided to start up a document. https://github.com/ansible/ansible/blob/devel/CODING\_GUIDELINES.md C…

---

## [Should move shell module from sh to bash?](https://forum.ansible.com/t/should-move-shell-module-from-sh-to-bash/14526)

<div class="topic-metadata">

**Author:** [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Replies:** 3\
**Last updated:** [February 10, 2014, 3:18am UTC](https://forum.ansible.com/t/should-move-shell-module-from-sh-to-bash/14526 "2014-02-10T03:18:00Z")

</div>

Hi, Refer to shell module doc, current it use /bin/sh to execute shell command, most time it works fine, but for following example, the result from Ubuntu is different. shell: command -v nwef Since in Ubuntu, /bin/sh…

---

## [cannot stat command with \* and \`](https://forum.ansible.com/t/cannot-stat-command-with-and/14527)

<div class="topic-metadata">

**Author:** [@Naoko\_Reeves](https://forum.ansible.com/u/Naoko_Reeves)\
**Replies:** 5\
**Last updated:** [February 9, 2014, 9:39pm UTC](https://forum.ansible.com/t/cannot-stat-command-with-and/14527 "2014-02-09T21:39:46Z")

</div>

I am trying to rename folder that is unpacked. So I can only get file name accurately with grep (or some sort of regex expression) via ansible, the following command fails with the error message: stderr: mv: cannot stat…

---

## [Include only\_if](https://forum.ansible.com/t/include-only-if/14515)

<div class="topic-metadata">

**Author:** [@phillip.corchary](https://forum.ansible.com/u/phillip.corchary)\
**Replies:** 3\
**Last updated:** [February 9, 2014, 9:16pm UTC](https://forum.ansible.com/t/include-only-if/14515 "2014-02-09T21:16:36Z")

</div>

Hello all - This question is for Ansible 1.2 only (required). Can I do an include with only\_if: is\_set(${some\_var})? The idea is that if a top-level var is set then the playbook will be included and executed, and other…

---

## [Handlers and failures](https://forum.ansible.com/t/handlers-and-failures/14520)

<div class="topic-metadata">

**Author:** [@Nadav\_Samet](https://forum.ansible.com/u/Nadav_Samet)\
**Replies:** 5\
**Last updated:** [February 9, 2014, 12:51am UTC](https://forum.ansible.com/t/handlers-and-failures/14520 "2014-02-09T00:51:28Z")

</div>

Hey, I have a play where I make edits to apache configs which includes a notify “restart apache”. That all works well, except in the following scenario: Task A changes apache configs. Task B runs after task A fails a…

---

## [Apache Libcloud looks interesting](https://forum.ansible.com/t/apache-libcloud-looks-interesting/14524)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [February 8, 2014, 8:26pm UTC](https://forum.ansible.com/t/apache-libcloud-looks-interesting/14524 "2014-02-08T20:26:32Z")

</div>

libcloud has been around for quite some time now. Several modules in ansible use it (The Google Compute Engine modules). For a unified API it is pretty nice, but it often lacks full functionality for the APIs usually du…

---

## [Auto accept license pkgin](https://forum.ansible.com/t/auto-accept-license-pkgin/14523)

<div class="topic-metadata">

**Author:** [@Paul\_Wolstenholme](https://forum.ansible.com/u/Paul_Wolstenholme)\
**Replies:** 6\
**Last updated:** [February 8, 2014, 1:00am UTC](https://forum.ansible.com/t/auto-accept-license-pkgin/14523 "2014-02-08T01:00:49Z")

</div>

Are there any tricks to installing a package with a license acceptance requirement. I’m using pkgin to install sun-jre and it is failing. I was just wondering if anyone has any suggestions for auto-accepting the sun lice…

---

## [can't start service on systemd with ampersand (openvpn@server)](https://forum.ansible.com/t/cant-start-service-on-systemd-with-ampersand-openvpn-server/14211)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 6\
**Last updated:** [February 7, 2014, 11:41pm UTC](https://forum.ansible.com/t/cant-start-service-on-systemd-with-ampersand-openvpn-server/14211 "2014-02-07T23:41:44Z")

</div>

I’m trying to control openvpn on an arch linux server. I am able to successfully start the service on the box with systemctl start openvpn@server but when I try to do some from ansible I get: failed: \[laprouter\] =\>…

---

## [Grant PROXY to MySQL User](https://forum.ansible.com/t/grant-proxy-to-mysql-user/14525)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 0\
**Last updated:** [February 7, 2014, 11:31pm UTC](https://forum.ansible.com/t/grant-proxy-to-mysql-user/14525 "2014-02-07T23:31:36Z")

</div>

Hello, I am working on a playbook to create a new MySQL user and grant it specific privileges. This task works successfully: name: Create new database user mysql\_user: login\_user={{ mysql\_root\_user }} login\_password=…

---

## [Ansible playbook not working trying to run make & configure with complex switches](https://forum.ansible.com/t/ansible-playbook-not-working-trying-to-run-make-configure-with-complex-switches/14521)

<div class="topic-metadata">

**Author:** [@Duncan\_Lock](https://forum.ansible.com/u/Duncan_Lock)\
**Replies:** 2\
**Last updated:** [February 7, 2014, 9:03pm UTC](https://forum.ansible.com/t/ansible-playbook-not-working-trying-to-run-make-configure-with-complex-switches/14521 "2014-02-07T21:03:20Z")

</div>

I’m trying to use Ansible to provision a Vagrant VM. The VM is running CentOS 6.4. I’m using the following (abbreviated) ansible playbook: hosts: default vars: home: ‘/home/vagrant’ curl\_version: ‘7\_19\_7’ curl\_url:…

---

## [module "file" - error in an example ?](https://forum.ansible.com/t/module-file-error-in-an-example/14517)

<div class="topic-metadata">

**Author:** [@Laurent\_CREPET](https://forum.ansible.com/u/Laurent_CREPET)\
**Replies:** 2\
**Last updated:** [February 7, 2014, 8:31pm UTC](https://forum.ansible.com/t/module-file-error-in-an-example/14517 "2014-02-07T20:31:15Z")

</div>

Hi, In the documentation of module “file” (http://docs.ansible.com/file\_module.html), the following example refers to parameter “dest”: file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link T…

---

## [getting the fqdns of all the hosts in a group](https://forum.ansible.com/t/getting-the-fqdns-of-all-the-hosts-in-a-group/14172)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 3\
**Last updated:** [February 7, 2014, 4:09pm UTC](https://forum.ansible.com/t/getting-the-fqdns-of-all-the-hosts-in-a-group/14172 "2014-02-07T16:09:41Z")

</div>

I have a command that needs the fqdn's of all servers within an inventory group as input. - name: run special command command: mycommand "foo.host bar.host baz.host" Is there a simple way to create such a string wi…

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

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