# Latest

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

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

**Page:** 945

---

## [Using json in docker environment variables](https://forum.ansible.com/t/using-json-in-docker-environment-variables/15941)

<div class="topic-metadata">

**Author:** [@Dane\_Lipscombe](https://forum.ansible.com/u/Dane_Lipscombe)\
**Replies:** 4\
**Last updated:** [August 20, 2014, 6:56pm UTC](https://forum.ansible.com/t/using-json-in-docker-environment-variables/15941 "2014-08-20T18:56:57Z")

</div>

I use json to compact my docker environment variables, the problem is that the docker module parser splits on ‘,’ character to signify a new key/value pair, meaning that more than one key doesn’t work. eg docker: env=‘o…

---

## [User management by ansible - any ideas ?](https://forum.ansible.com/t/user-management-by-ansible-any-ideas/15919)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 10\
**Last updated:** [August 20, 2014, 4:33pm UTC](https://forum.ansible.com/t/user-management-by-ansible-any-ideas/15919 "2014-08-20T16:33:28Z")

</div>

I would like to use ansible for our user management (I know there are software for it like LDAP but not for now …). This is typical definition of users and their groups: Groups and users: group1 user1 user2 …

---

## [Package Management](https://forum.ansible.com/t/package-management/15982)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 8\
**Last updated:** [August 20, 2014, 1:07pm UTC](https://forum.ansible.com/t/package-management/15982 "2014-08-20T13:07:43Z")

</div>

Hi, I need to install some packages across different Linux distros (mainly CentOS/Redhat and Ubuntu right now). However, since there isn’t a unified package manager (at least not bundled with core), I’m trying to find th…

---

## [Including tasks from another role](https://forum.ansible.com/t/including-tasks-from-another-role/15989)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 2\
**Last updated:** [August 20, 2014, 1:06pm UTC](https://forum.ansible.com/t/including-tasks-from-another-role/15989 "2014-08-20T13:06:48Z")

</div>

Hello! Is there any way to include tasks from another role other than: - include: ../../common/tasks/rake\_db\_migrate.yml project\_dir={{deployed\_to}} I would like to see that either - include: common/tasks/rake\_db\_mig…

---

## [run\_once and serial](https://forum.ansible.com/t/run-once-and-serial/15778)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 4\
**Last updated:** [August 20, 2014, 12:00pm UTC](https://forum.ansible.com/t/run-once-and-serial/15778 "2014-08-20T12:00:38Z")

</div>

I'm testing out the new run\_once feature and overall it's working great. But I then tried it in an upgrade playbook using serial. The task is no longer run just once per-play, it's run once per-host-group. So for a se…

---

## [Reversed sorted inventory](https://forum.ansible.com/t/reversed-sorted-inventory/15957)

<div class="topic-metadata">

**Author:** [@Yorick\_Gersie](https://forum.ansible.com/u/Yorick_Gersie)\
**Replies:** 6\
**Last updated:** [August 20, 2014, 11:49am UTC](https://forum.ansible.com/t/reversed-sorted-inventory/15957 "2014-08-20T11:49:32Z")

</div>

I have an issue when I want to reboot hosts in a sequence. I am using serial: 1 to make sure the playbook runs on 1 host at a time which works perfectly, but Ansible runs the inventory in reversed order. This was tested…

---

## [Delegate a task to a different host on the remote machine?](https://forum.ansible.com/t/delegate-a-task-to-a-different-host-on-the-remote-machine/15981)

<div class="topic-metadata">

**Author:** [@Mike\_Trienis](https://forum.ansible.com/u/Mike_Trienis)\
**Replies:** 3\
**Last updated:** [August 20, 2014, 7:46am UTC](https://forum.ansible.com/t/delegate-a-task-to-a-different-host-on-the-remote-machine/15981 "2014-08-20T07:46:18Z")

</div>

Hi All, I am running a playbook that connects to remote host A, and would like to know if it is possible to run a delegate\_to: command on the remote host A. The use case is that I have two different types of environment…

---

## [Ansible - Define Inventory at run time](https://forum.ansible.com/t/ansible-define-inventory-at-run-time/15974)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 2\
**Last updated:** [August 20, 2014, 7:16am UTC](https://forum.ansible.com/t/ansible-define-inventory-at-run-time/15974 "2014-08-20T07:16:14Z")

</div>

I am liitle new to ansible so bear with me if my questions are a bit basic. Scenario: I have a few group of Remote hosts such as \[EPCs\] \[Clients\] and \[Testers\] I am able to configure them just the way I want them to be…

---

## [Ansible -Calling a playbook inside a playbook with vars\_prompt giving error : ERROR: vars\_prompt is not a legal parameter in an Ansible task or handler](https://forum.ansible.com/t/ansible-calling-a-playbook-inside-a-playbook-with-vars-prompt-giving-error-error-vars-prompt-is-not-a-legal-parameter-in-an-ansible-task-or-handler/15979)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 3\
**Last updated:** [August 20, 2014, 5:08am UTC](https://forum.ansible.com/t/ansible-calling-a-playbook-inside-a-playbook-with-vars-prompt-giving-error-error-vars-prompt-is-not-a-legal-parameter-in-an-ansible-task-or-handler/15979 "2014-08-20T05:08:00Z")

</div>

Looks like you are missing a tasks section and also have some indent issues.

---

## [Generate unique identifier?](https://forum.ansible.com/t/generate-unique-identifier/15150)

<div class="topic-metadata">

**Author:** [@Mike\_Trienis](https://forum.ansible.com/u/Mike_Trienis)\
**Replies:** 7\
**Last updated:** [August 20, 2014, 1:45am UTC](https://forum.ansible.com/t/generate-unique-identifier/15150 "2014-08-20T01:45:18Z")

</div>

Hi All, I was wondering if ansible has a way to generate a unique identifier? Thanks, Mike.

---

## [Including timestamps in PLAY \[host\] \*\*\* messages](https://forum.ansible.com/t/including-timestamps-in-play-host-messages/15987)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 1\
**Last updated:** [August 20, 2014, 1:42am UTC](https://forum.ansible.com/t/including-timestamps-in-play-host-messages/15987 "2014-08-20T01:42:56Z")

</div>

Hi all, Is there a way to include timestamps in the playbook and task header messages: PLAY \[hostname\] \[2014-08-20 16:54:22\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ... TASK: \[Prepare users\] …

---

## [Ansible Tower 2.0 now available!](https://forum.ansible.com/t/ansible-tower-2-0-now-available/15988)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [August 20, 2014, 1:38am UTC](https://forum.ansible.com/t/ansible-tower-2-0-now-available/15988 "2014-08-20T01:38:58Z")

</div>

Hi all, Just wanted to share that Ansible Tower 2.0 is now available. If you’ve tried Tower before, 2.0 is a BIG deal, as it features streaming playbook events, a whole new look and feel, a new dashboard, and increased…

---

## [\[newbie\]Start/stop EC2 instances based on tags](https://forum.ansible.com/t/newbie-start-stop-ec2-instances-based-on-tags/14729)

<div class="topic-metadata">

**Author:** [@ghexsel](https://forum.ansible.com/u/ghexsel)\
**Replies:** 16\
**Last updated:** [August 19, 2014, 8:54pm UTC](https://forum.ansible.com/t/newbie-start-stop-ec2-instances-based-on-tags/14729 "2014-08-19T20:54:15Z")

</div>

Hey all, I’m trying to use the EC2 module to start/stop instances, but I don’t have the specific IDs ahead of time. I’ve been trying to get it to run one task to grab the IDs from the EC2 inventory, and one to actually …

---

## [allow\_duplicates does not appear to be working in my use case](https://forum.ansible.com/t/allow-duplicates-does-not-appear-to-be-working-in-my-use-case/15924)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 4\
**Last updated:** [August 19, 2014, 7:26pm UTC](https://forum.ansible.com/t/allow-duplicates-does-not-appear-to-be-working-in-my-use-case/15924 "2014-08-19T19:26:38Z")

</div>

Hello, See https://github.com/ansible/ansible/issues/8559 for additional details, but in brief I have 3 roles: roles/apache2/meta/main.yml: allow\_duplicates: yes roles/apache2-php/meta/main.yml: allow\_duplicate…

---

## [ec2\_ami\_search](https://forum.ansible.com/t/ec2-ami-search/15975)

<div class="topic-metadata">

**Author:** [@Dan\_Benson](https://forum.ansible.com/u/Dan_Benson)\
**Replies:** 2\
**Last updated:** [August 19, 2014, 6:44pm UTC](https://forum.ansible.com/t/ec2-ami-search/15975 "2014-08-19T18:44:36Z")

</div>

Greetings, I’m a bit new to ansible, but learning the ropes as I go. The other day I was hoping to use the ec2\_ami\_search module to grab the appropriate AMI for the ec2 module to use during instance creation. I quickly …

---

## [Git Module Repo Scheme Change?](https://forum.ansible.com/t/git-module-repo-scheme-change/15942)

<div class="topic-metadata">

**Author:** [@James\_Gatannah](https://forum.ansible.com/u/James_Gatannah)\
**Replies:** 7\
**Last updated:** [August 19, 2014, 6:35pm UTC](https://forum.ansible.com/t/git-module-repo-scheme-change/15942 "2014-08-19T18:35:35Z")

</div>

I’m updating a project (setting up a disposable dev environment) from ansible 1.6.2 to 1.7. (Installed and upgraded using pip into a venv). I’ve been setting up a user on the host that I’m configuring, with a full set o…

---

## [In development branch, network modules now available on Galaxy](https://forum.ansible.com/t/in-development-branch-network-modules-now-available-on-galaxy/15984)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 4\
**Last updated:** [August 19, 2014, 3:56pm UTC](https://forum.ansible.com/t/in-development-branch-network-modules-now-available-on-galaxy/15984 "2014-08-19T15:56:38Z")

</div>

Hi folks, As I mentioned previously to allow network hardware vendors to more easily manage their own content, we’re going to be hosting things moving forward for these vendors on Galaxy. Here’s a blog about Arista’s m…

---

## [when condition not being evaluated with include statement](https://forum.ansible.com/t/when-condition-not-being-evaluated-with-include-statement/15978)

<div class="topic-metadata">

**Author:** [@Imran\_Khan1](https://forum.ansible.com/u/Imran_Khan1)\
**Replies:** 6\
**Last updated:** [August 19, 2014, 7:49am UTC](https://forum.ansible.com/t/when-condition-not-being-evaluated-with-include-statement/15978 "2014-08-19T07:49:11Z")

</div>

I have a tikitaka3.yml (main yml file) and a tikitaka3a.yml (playbook to be included) . When I prompt the user for a variable and then in the tasks section when I call it, like so:

---

## [Three and more conditions in playbook](https://forum.ansible.com/t/three-and-more-conditions-in-playbook/15958)

<div class="topic-metadata">

**Author:** [@Sergei\_Antipov](https://forum.ansible.com/u/Sergei_Antipov)\
**Replies:** 4\
**Last updated:** [August 19, 2014, 3:08am UTC](https://forum.ansible.com/t/three-and-more-conditions-in-playbook/15958 "2014-08-19T03:08:22Z")

</div>

Hello. This is possible to add more than 2 conditions like this? shell: ifdown {{ item.item.device }}; ifup {{ item.item.device }} with\_items: ether\_result.results when: ether\_result is defined and and item.changed …

---

## [Wouldn't be nice to be able to get\_url + uncompress in a single operation?](https://forum.ansible.com/t/wouldnt-be-nice-to-be-able-to-get-url-uncompress-in-a-single-operation/15980)

<div class="topic-metadata">

**Author:** [@Filipe\_Felisbino](https://forum.ansible.com/u/Filipe_Felisbino)\
**Replies:** 2\
**Last updated:** [August 18, 2014, 3:00pm UTC](https://forum.ansible.com/t/wouldnt-be-nice-to-be-able-to-get-url-uncompress-in-a-single-operation/15980 "2014-08-18T15:00:42Z")

</div>

I think it could make the life of ansible users a little bit easier if we could just have a additional parameter to get\_url specifying if we want to decompress the file after the download is done. Something like: name:…

---

## [Including mulitple files](https://forum.ansible.com/t/including-mulitple-files/15971)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 6\
**Last updated:** [August 18, 2014, 12:53pm UTC](https://forum.ansible.com/t/including-mulitple-files/15971 "2014-08-18T12:53:54Z")

</div>

Hello! I’m struggling with importing the functionality of deploy\_revision from chef to ansible. In case of ruby this means the following steps: checkout git repo to /revisions/sha1 run bundle install in there create …

---

## [First command (ping) failure](https://forum.ansible.com/t/first-command-ping-failure/12487)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 3\
**Last updated:** [August 18, 2014, 12:40pm UTC](https://forum.ansible.com/t/first-command-ping-failure/12487 "2014-08-18T12:40:42Z")

</div>

I just solved similar issue, the problem is probably that you are executing an older python (2.4) and importing the newer simplejson (2.7). Try setting ansible\_python\_interpreter to the python2.7 executable.

---

## [Module postgresql\_row](https://forum.ansible.com/t/module-postgresql-row/15973)

<div class="topic-metadata">

**Author:** [@Bernhard\_Weitzhofer](https://forum.ansible.com/u/Bernhard_Weitzhofer)\
**Replies:** 1\
**Last updated:** [August 18, 2014, 12:38pm UTC](https://forum.ansible.com/t/module-postgresql-row/15973 "2014-08-18T12:38:45Z")

</div>

Hi, looking at our /library-Folder there is another module I’d like to mention here: To configure applications that are configured via database tables I’ve written a module “postgresql\_row” that (as the name hopefully i…

---

## [Error in setting Java\_HOME and Java\_path to make java available for the system](https://forum.ansible.com/t/error-in-setting-java-home-and-java-path-to-make-java-available-for-the-system/15690)

<div class="topic-metadata">

**Author:** [@Nandha\_Kumar](https://forum.ansible.com/u/Nandha_Kumar)\
**Replies:** 2\
**Last updated:** [August 18, 2014, 12:38pm UTC](https://forum.ansible.com/t/error-in-setting-java-home-and-java-path-to-make-java-available-for-the-system/15690 "2014-08-18T12:38:02Z")

</div>

Hi, I want to know , how to set java home and java path through ansible playbook or else is there any other way to make java available to the system. I have tried using lineinfile and copy the src file and template str…

---

## [with\_dict and Jinja templates - Error](https://forum.ansible.com/t/with-dict-and-jinja-templates-error/15967)

<div class="topic-metadata">

**Author:** [@Matt\_Silverlock](https://forum.ansible.com/u/Matt_Silverlock)\
**Replies:** 3\
**Last updated:** [August 17, 2014, 12:59pm UTC](https://forum.ansible.com/t/with-dict-and-jinja-templates-error/15967 "2014-08-17T12:59:55Z")

</div>

Hi all, Trying to pull together my understanding of Jinja’s looping constructs, Ansible’s with\_dict and from what I’ve seen out in the wild (i.e. on GitHub). I’ve taken a look around at some other examples but can’t see…

---

## [Can't get returned IPs from EC2](https://forum.ansible.com/t/cant-get-returned-ips-from-ec2/15965)

<div class="topic-metadata">

**Author:** [@Matthew\_Morgan](https://forum.ansible.com/u/Matthew_Morgan)\
**Replies:** 4\
**Last updated:** [August 17, 2014, 3:28am UTC](https://forum.ansible.com/t/cant-get-returned-ips-from-ec2/15965 "2014-08-17T03:28:26Z")

</div>

So, I’m super stuck on this problem. I created a pastie of all the info. http://pastie.org/private/po3yakcngchu8wzjiwhsa What am I doing wrong in the playbook that I can’t get those IPs into my hosts file? Any help wo…

---

## [win\_ping not getting executed](https://forum.ansible.com/t/win-ping-not-getting-executed/15964)

<div class="topic-metadata">

**Author:** [@Vinit\_Khandagle](https://forum.ansible.com/u/Vinit_Khandagle)\
**Replies:** 3\
**Last updated:** [August 16, 2014, 8:22pm UTC](https://forum.ansible.com/t/win-ping-not-getting-executed/15964 "2014-08-16T20:22:18Z")

</div>

Hello , I am trying to use win\_ping module to connect to a windows server. but it keeps defaulting to SSH → ansible --version ansible 1.7.1 linbynd@linbynd-Inspiron:~/packer\_prac → ansible -i hosts win -m win\_ping…

---

## [Strategy or guides / tutorials for migrating existing LAMP websites?](https://forum.ansible.com/t/strategy-or-guides-tutorials-for-migrating-existing-lamp-websites/15959)

<div class="topic-metadata">

**Author:** [@Samuel\_Lampa](https://forum.ansible.com/u/Samuel_Lampa)\
**Replies:** 2\
**Last updated:** [August 16, 2014, 7:47pm UTC](https://forum.ansible.com/t/strategy-or-guides-tutorials-for-migrating-existing-lamp-websites/15959 "2014-08-16T19:47:20Z")

</div>

Hi all, I’m looking for pointers or links to relevant tutorials/guides regarding migration of existing LAMP sites. To give some background, we’re moving a bunch of websites from our dedicated LAMP server to a number of…

---

## [Templated file used as variable?](https://forum.ansible.com/t/templated-file-used-as-variable/15862)

<div class="topic-metadata">

**Author:** [@AJ\_Daws](https://forum.ansible.com/u/AJ_Daws)\
**Replies:** 14\
**Last updated:** [August 16, 2014, 3:02pm UTC](https://forum.ansible.com/t/templated-file-used-as-variable/15862 "2014-08-16T15:02:35Z")

</div>

How can I use the results from jinja2-templated file into a variable without some hack to write a file out and read it in again? I’m using the ec2 module to create new EC2 instances. For this module, you can specify a m…

---

## [centralizing groups of groups, strategy that works for both dynamic and static inventory](https://forum.ansible.com/t/centralizing-groups-of-groups-strategy-that-works-for-both-dynamic-and-static-inventory/15933)

<div class="topic-metadata">

**Author:** [@Matthew\_Simon](https://forum.ansible.com/u/Matthew_Simon)\
**Replies:** 4\
**Last updated:** [August 16, 2014, 2:54pm UTC](https://forum.ansible.com/t/centralizing-groups-of-groups-strategy-that-works-for-both-dynamic-and-static-inventory/15933 "2014-08-16T14:54:59Z")

</div>

Hello All! For many of my plays, I use groups of groups to handle items common to several systems. For example, given an inventory file such as: \[jenkins\_masters\] host1 \[jenkins\_slaves\] slave1 slave2 slave3 \[jenk…

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

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