# Latest

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

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

**Page:** 871

---

## [Replacing dictionary key values](https://forum.ansible.com/t/replacing-dictionary-key-values/18211)

<div class="topic-metadata">

**Author:** [@John\_McNulty](https://forum.ansible.com/u/John_McNulty)\
**Replies:** 3\
**Last updated:** [May 13, 2015, 4:38pm UTC](https://forum.ansible.com/t/replacing-dictionary-key-values/18211 "2015-05-13T16:38:34Z")

</div>

Hi, can someone explain this to me please. Say I have a dictionary in a role defaults like this … \` at\_service: pkg\_name: at pkg\_state: present svc\_name: atd svc\_enabled: no svc\_state: stopped \` I can replace t…

---

## [Callback plugin output; logging to ansible.log](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 3\
**Last updated:** [May 13, 2015, 2:46pm UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221 "2015-05-13T14:46:26Z")

</div>

We use a couple of callback plugins and one of my colleagues has noticed that their output doesn’t appear in ansible.log Is it possible to change this so we can see callback output? We’re running 1.9.1 Many thanks, J…

---

## [Not able to test variable after it is set in vars\_prompt section to determine if I should execute the next prompt](https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217)

<div class="topic-metadata">

**Author:** [@richard.cardoza](https://forum.ansible.com/u/richard.cardoza)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 12:41pm UTC](https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217 "2015-05-13T12:41:28Z")

</div>

---

## [Grouping of serial tasks](https://forum.ansible.com/t/grouping-of-serial-tasks/18218)

<div class="topic-metadata">

**Author:** [@Abhishek\_Mukherjee](https://forum.ansible.com/u/Abhishek_Mukherjee)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 12:17pm UTC](https://forum.ansible.com/t/grouping-of-serial-tasks/18218 "2015-05-13T12:17:11Z")

</div>

Sorry i’m relatively new to ansible so I may be asking a very obvious question :(. Basically my organization has servers in two tiers, and within those tiers there are groups. What I’m trying to make happen is an ansible…

---

## [ec2.py groups](https://forum.ansible.com/t/ec2-py-groups/14315)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 6\
**Last updated:** [May 13, 2015, 4:10am UTC](https://forum.ansible.com/t/ec2-py-groups/14315 "2015-05-13T04:10:00Z")

</div>

When using dynamic inventory, my understanding is that you group your hosts with EC2 tags. How do you add a host to two groups then, since EC2 can only take one value for a given key? Example: text inventory: \[we…

---

## [Ansible when condition not working with with\_sequence](https://forum.ansible.com/t/ansible-when-condition-not-working-with-with-sequence/17713)

<div class="topic-metadata">

**Author:** [@Leonardo\_Visconti](https://forum.ansible.com/u/Leonardo_Visconti)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 1:18am UTC](https://forum.ansible.com/t/ansible-when-condition-not-working-with-with-sequence/17713 "2015-05-13T01:18:55Z")

</div>

Hi everyone, I’ve been debugging some proof of concepts and got stuck with this. Whenever I use the “when” condition in conjunction with “with\_sequence”, the former won’t work. Am I looking at a bug or is this behavio…

---

## [Call Templar or Template from a Custom Plugin](https://forum.ansible.com/t/call-templar-or-template-from-a-custom-plugin/18204)

<div class="topic-metadata">

**Author:** [@Franklin\_Wise](https://forum.ansible.com/u/Franklin_Wise)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 11:58pm UTC](https://forum.ansible.com/t/call-templar-or-template-from-a-custom-plugin/18204 "2015-05-12T23:58:54Z")

</div>

I’m writing a custom plugin and everything works great, except I’d like to use the built in Template task. However, if I’m unable to reference the template library correctly. I’ve tried: from ansible.plugins.action imp…

---

## [Generating a sequence number](https://forum.ansible.com/t/generating-a-sequence-number/18216)

<div class="topic-metadata">

**Author:** [@Theodore](https://forum.ansible.com/u/Theodore)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 11:29pm UTC](https://forum.ansible.com/t/generating-a-sequence-number/18216 "2015-05-12T23:29:38Z")

</div>

I need to generate hostnames for a concurrent service that contain sequences. So I create 5 AWS instances and I want to call them h001, h002, h003, h004, h005. I create the instances concurrently and then use dynamic in…

---

## [Ansible roles](https://forum.ansible.com/t/ansible-roles/18214)

<div class="topic-metadata">

**Author:** [@Phonthip\_Namkaew](https://forum.ansible.com/u/Phonthip_Namkaew)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 9:02pm UTC](https://forum.ansible.com/t/ansible-roles/18214 "2015-05-12T21:02:59Z")

</div>

Hi There are 100 cassandra hosts (cass01.example.com,…,cass100.example.com) All shall have the same role common and the same role cassandra. In addition, 10 out of the 100 cassandra hosts do have additional host-speci…

---

## [callback module and host variables](https://forum.ansible.com/t/callback-module-and-host-variables/18215)

<div class="topic-metadata">

**Author:** [@Chris\_Fidao](https://forum.ansible.com/u/Chris_Fidao)\
**Replies:** 2\
**Last updated:** [May 12, 2015, 7:38pm UTC](https://forum.ansible.com/t/callback-module-and-host-variables/18215 "2015-05-12T19:38:25Z")

</div>

I haven’t been able to find information on this - I’ve created a callback module to create log output that I can save to a database in order to display the result of a run in an administrative control panel. There are s…

---

## [Failed to lock apt for exclusive operation](https://forum.ansible.com/t/failed-to-lock-apt-for-exclusive-operation/18213)

<div class="topic-metadata">

**Author:** [@trupti\_mali](https://forum.ansible.com/u/trupti_mali)\
**Replies:** 0\
**Last updated:** [May 12, 2015, 6:28pm UTC](https://forum.ansible.com/t/failed-to-lock-apt-for-exclusive-operation/18213 "2015-05-12T18:28:14Z")

</div>

I am using ansible 2.0 - the development version. I have read many threads on the above issue and essentially all suggested to make sure we are doing sudo = True. I tried with Sudo true at playbook level , include level …

---

## [Does ansible -m ec2 works ?](https://forum.ansible.com/t/does-ansible-m-ec2-works/18212)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 5:05pm UTC](https://forum.ansible.com/t/does-ansible-m-ec2-works/18212 "2015-05-12T17:05:55Z")

</div>

Hi, I would like to launch an ec2 instance the same way you can with chef-knife : ansible localhost -m ec2 -a “key\_name=test group=qa instance\_type=t2.micro image=ami-aecd60c7 wait=true exact\_count=1 instance\_tags=test…

---

## [Ansible Community Hangout](https://forum.ansible.com/t/ansible-community-hangout/18161)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 4:57pm UTC](https://forum.ansible.com/t/ansible-community-hangout/18161 "2015-05-12T16:57:05Z")

</div>

Hi all, we’ll be on our hangout again today, if anyone would like to join. I’m going to ditch the “Hangouts On-Air” this time, and just run a public hangout, which can be joined here: https://plus.google.com/hangouts/\_/…

---

## [Throwing "failed" instead of "fatal" when a SSH connection error occurs](https://forum.ansible.com/t/throwing-failed-instead-of-fatal-when-a-ssh-connection-error-occurs/18210)

<div class="topic-metadata">

**Author:** [@Pascal\_Mathis](https://forum.ansible.com/u/Pascal_Mathis)\
**Replies:** 0\
**Last updated:** [May 12, 2015, 1:44pm UTC](https://forum.ansible.com/t/throwing-failed-instead-of-fatal-when-a-ssh-connection-error-occurs/18210 "2015-05-12T13:44:58Z")

</div>

Today I’ve needed an Ansible play which first tries to connect with A (e.g. port 22, user hello) and if that should fail, fall back to B (e.g. port 22, user world). I’ve started scripting and it all looked great until I’…

---

## [Ansible client behind NAT?](https://forum.ansible.com/t/ansible-client-behind-nat/18205)

<div class="topic-metadata">

**Author:** [@Stephen\_R\_van\_den\_Be](https://forum.ansible.com/u/Stephen_R_van_den_Be)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 12:40pm UTC](https://forum.ansible.com/t/ansible-client-behind-nat/18205 "2015-05-12T12:40:14Z")

</div>

I’m planning to deploy clients behind NAT routers which cannot be configured for portforwarding. Does ansible have a solution that makes an active connection to the ansible server?

---

## [Workaround ansible-modules-core 1170 service module with Upstart](https://forum.ansible.com/t/workaround-ansible-modules-core-1170-service-module-with-upstart/18201)

<div class="topic-metadata">

**Author:** [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Replies:** 3\
**Last updated:** [May 12, 2015, 12:26pm UTC](https://forum.ansible.com/t/workaround-ansible-modules-core-1170-service-module-with-upstart/18201 "2015-05-12T12:26:09Z")

</div>

Hey guys, just a workaround to https://github.com/ansible/ansible-modules-core/is…

---

## [ec2\_group, are circular dependencies possible](https://forum.ansible.com/t/ec2-group-are-circular-dependencies-possible/18207)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 2\
**Last updated:** [May 12, 2015, 10:04am UTC](https://forum.ansible.com/t/ec2-group-are-circular-dependencies-possible/18207 "2015-05-12T10:04:52Z")

</div>

I am trying to recreate some SGs (that were created manually) that have circular dependencies. eg, sg1: out sg2 sg2: in sg1 I can’t see how this is possible with ansible.

---

## [ec2\_group documentation?](https://forum.ansible.com/t/ec2-group-documentation/18206)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 1\
**Last updated:** [May 12, 2015, 9:01am UTC](https://forum.ansible.com/t/ec2-group-documentation/18206 "2015-05-12T09:01:07Z")

</div>

Is there someplace where all the ec2\_group options are defined? Even the example in http://docs.ansible.com/ec2\_group\_module.html refers to options that are not defined. Then I ran across purge\* options in some roles tha…

---

## [Different initial remote\_user per host - how best to arrange inventory?](https://forum.ansible.com/t/different-initial-remote-user-per-host-how-best-to-arrange-inventory/14815)

<div class="topic-metadata">

**Author:** [@Adrian\_Simmons](https://forum.ansible.com/u/Adrian_Simmons)\
**Replies:** 7\
**Last updated:** [May 12, 2015, 1:15am UTC](https://forum.ansible.com/t/different-initial-remote-user-per-host-how-best-to-arrange-inventory/14815 "2015-05-12T01:15:59Z")

</div>

Hi, My current ‘hosts’ inventory file has sections for a dev/stage/production workflow, and I don’t imagine it will ever have more than one or two servers in each section. eg \[devel\] 192.0.2.10 hostname=devel fqdn=dev…

---

## ['fetch' module not fetching to where I want](https://forum.ansible.com/t/fetch-module-not-fetching-to-where-i-want/18202)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 3\
**Last updated:** [May 11, 2015, 7:30pm UTC](https://forum.ansible.com/t/fetch-module-not-fetching-to-where-i-want/18202 "2015-05-11T19:30:40Z")

</div>

I’m using a variable to specify a relative path to where I want my output written. It looks like ansible can figure out what I’m telling it, but then cheerily ignores me and writes to /tmp :slight\_smile: vars: local\_de…

---

## [Error when setting MariaDB root credentials](https://forum.ansible.com/t/error-when-setting-mariadb-root-credentials/18199)

<div class="topic-metadata">

**Author:** [@Carlos\_A\_Carnero\_Del](https://forum.ansible.com/u/Carlos_A_Carnero_Del)\
**Replies:** 2\
**Last updated:** [May 11, 2015, 5:29pm UTC](https://forum.ansible.com/t/error-when-setting-mariadb-root-credentials/18199 "2015-05-11T17:29:30Z")

</div>

Hi, I’m having problems with a playbook for setting up MariaDB, using Ansible 1.9.1 against a Centos 7.1.1503 host. I’ll try and go step by step with the playbook, which starts thusly: name: Install MariaDB yum: na…

---

## [simple rails app (login shell command)](https://forum.ansible.com/t/simple-rails-app-login-shell-command/18149)

<div class="topic-metadata">

**Author:** [@Ivan\_Muller](https://forum.ansible.com/u/Ivan_Muller)\
**Replies:** 8\
**Last updated:** [May 11, 2015, 2:32pm UTC](https://forum.ansible.com/t/simple-rails-app-login-shell-command/18149 "2015-05-11T14:32:13Z")

</div>

Hi there before all thanks fot the amazing work that you already done Is only one thing that keep make me noise when I use Ansible, normally I use RVM to handle different versions of ruby and every time that i need to r…

---

## [Error RHEL 5.5](https://forum.ansible.com/t/error-rhel-5-5/18200)

<div class="topic-metadata">

**Author:** [@stenioc1](https://forum.ansible.com/u/stenioc1)\
**Replies:** 3\
**Last updated:** [May 11, 2015, 1:48pm UTC](https://forum.ansible.com/t/error-rhel-5-5/18200 "2015-05-11T13:48:40Z")

</div>

Hi, I have a problem, after I install following the howto (No known installation error): $ git clone git://github.com/ansible/ansible.git --recursive $ cd ./ansible $ make rpm $ sudo rpm -Uvh ./rpmbuild/ansible-\*.no…

---

## [ansible testserver -m ping -vvvv: FAILED =\> SSH Error: debug1: Calling cleanup 0x8078582(0x0)](https://forum.ansible.com/t/ansible-testserver-m-ping-vvvv-failed-ssh-error-debug1-calling-cleanup-0x8078582-0x0/18088)

<div class="topic-metadata">

**Author:** [@Dusan\_Kysel](https://forum.ansible.com/u/Dusan_Kysel)\
**Replies:** 58\
**Last updated:** [May 11, 2015, 1:30pm UTC](https://forum.ansible.com/t/ansible-testserver-m-ping-vvvv-failed-ssh-error-debug1-calling-cleanup-0x8078582-0x0/18088 "2015-05-11T13:30:15Z")

</div>

Please see: https://github.com/ansible/ansible/issues/10837 =Dusan

---

## [Want to use private\_key\_file as varable in template file.](https://forum.ansible.com/t/want-to-use-private-key-file-as-varable-in-template-file/18188)

<div class="topic-metadata">

**Author:** [@t\_goto](https://forum.ansible.com/u/t_goto)\
**Replies:** 4\
**Last updated:** [May 11, 2015, 12:39am UTC](https://forum.ansible.com/t/want-to-use-private-key-file-as-varable-in-template-file/18188 "2015-05-11T00:39:40Z")

</div>

Hello. I want to use private\_key\_file in ansible.cfg as a variable in template file. Say, I have ansible.cfg like this.. \[defaults\] hostfile = hosts remote\_user = ubuntu private\_key\_file = /home/test/.ssh/id\_rsa And …

---

## [detecting version of syslog-ng](https://forum.ansible.com/t/detecting-version-of-syslog-ng/18166)

<div class="topic-metadata">

**Author:** [@Randy\_Bush](https://forum.ansible.com/u/Randy_Bush)\
**Replies:** 4\
**Last updated:** [May 9, 2015, 8:42pm UTC](https://forum.ansible.com/t/detecting-version-of-syslog-ng/18166 "2015-05-09T20:42:53Z")

</div>

have a playbook bit to distribute syslog-ng.conf to a bunch of servers, some running syslog-ng 3.3 and some running 3.5. so there are two different configuration files. is there a way to detect which version a host i…

---

## [Collecting and filtering remote facts](https://forum.ansible.com/t/collecting-and-filtering-remote-facts/18036)

<div class="topic-metadata">

**Author:** [@Raghu\_Udiyar](https://forum.ansible.com/u/Raghu_Udiyar)\
**Replies:** 1\
**Last updated:** [May 9, 2015, 4:31pm UTC](https://forum.ansible.com/t/collecting-and-filtering-remote-facts/18036 "2015-05-09T16:31:57Z")

</div>

Hello Let me start with the use case. I have to retrieve the filename pointed by a symlink, say /etc/current → /etc/version-1.0 and determine if this filename is the same across a bunch of nodes. I figure I have to do …

---

## [fetch module fails checksum when remote user's shell is set to /bin/tcsh](https://forum.ansible.com/t/fetch-module-fails-checksum-when-remote-users-shell-is-set-to-bin-tcsh/18197)

<div class="topic-metadata">

**Author:** [@cohen.ben](https://forum.ansible.com/u/cohen.ben)\
**Replies:** 2\
**Last updated:** [May 9, 2015, 12:41am UTC](https://forum.ansible.com/t/fetch-module-fails-checksum-when-remote-users-shell-is-set-to-bin-tcsh/18197 "2015-05-09T00:41:34Z")

</div>

I created an issue reporting what appears to me to be a bug in the fetch module – the fetch module succeeds in grabbing the remote file and then always fails its checksum test if the remote user’s login shell is set to /…

---

## [Get output of command that includes many quotes?](https://forum.ansible.com/t/get-output-of-command-that-includes-many-quotes/18195)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 3\
**Last updated:** [May 8, 2015, 10:04pm UTC](https://forum.ansible.com/t/get-output-of-command-that-includes-many-quotes/18195 "2015-05-08T22:04:26Z")

</div>

I want to register a variable with my java version. I can get that with: java -version 2\>&1 | head -1 | awk ‘BEGIN { FS = “"” } ; { print $2 }’ That gives me the result I want: 1.8.0\_45 But I cannot make this happen i…

---

## [Output of script & newline](https://forum.ansible.com/t/output-of-script-newline/18196)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [May 8, 2015, 10:03pm UTC](https://forum.ansible.com/t/output-of-script-newline/18196 "2015-05-08T22:03:32Z")

</div>

ansible 1.9.0.1 name: Get java version script: /tmp/javaver.sh register: java\_ver name: Touch test file copy: dest=“/tmp/{{ java\_ver.stdout }}” content=“test” TASK: \[Show output from installer\] \*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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