# Latest

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

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

**Page:** 897

---

## [uri module - POST files](https://forum.ansible.com/t/uri-module-post-files/17447)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver1](https://forum.ansible.com/u/Mark_Olliver1)\
**Replies:** 4\
**Last updated:** [February 5, 2015, 7:28pm UTC](https://forum.ansible.com/t/uri-module-post-files/17447 "2015-02-05T19:28:30Z")

</div>

Hi, I have the following line but i fear the uri module is not encoding the file first and thus fails to send the file. I tried to set a variable via a command and uuencode but that also failed - any ideas or do i need …

---

## [Nested looping with dict/sub-list](https://forum.ansible.com/t/nested-looping-with-dict-sub-list/17456)

<div class="topic-metadata">

**Author:** [@Duncan\_Hutty](https://forum.ansible.com/u/Duncan_Hutty)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 5:07pm UTC](https://forum.ansible.com/t/nested-looping-with-dict-sub-list/17456 "2015-02-05T17:07:05Z")

</div>

I'm having a bit of difficulty with getting the behaviour that I want in as concise a way as I think should be possible. Here's the point: I'm having trouble with iterating over a hash where the value for one of the ke…

---

## [How to use conditions in Playbook itself](https://forum.ansible.com/t/how-to-use-conditions-in-playbook-itself/17342)

<div class="topic-metadata">

**Author:** [@Suraj](https://forum.ansible.com/u/Suraj)\
**Replies:** 6\
**Last updated:** [February 5, 2015, 3:56pm UTC](https://forum.ansible.com/t/how-to-use-conditions-in-playbook-itself/17342 "2015-02-05T15:56:55Z")

</div>

Hi Folks, I am trying to create single playbook for every service we have. So here we need to deploy multiple roles on different service instance. What I want is that, I want to just define variable in different group …

---

## [run only selected tags](https://forum.ansible.com/t/run-only-selected-tags/17455)

<div class="topic-metadata">

**Author:** [@Denis\_J\_Cirulis](https://forum.ansible.com/u/Denis_J_Cirulis)\
**Replies:** 3\
**Last updated:** [February 5, 2015, 3:11pm UTC](https://forum.ansible.com/t/run-only-selected-tags/17455 "2015-02-05T15:11:21Z")

</div>

Hello, As I composed one role which partially can be reused in some others I tried the following syntax in playbook: hosts: test sudo: True roles: common { role: big, tags: \[ ‘aaa’, ‘bbb’ \]} But looks like tags fu…

---

## [error message when trying to create mariadb databse](https://forum.ansible.com/t/error-message-when-trying-to-create-mariadb-databse/17449)

<div class="topic-metadata">

**Author:** [@Eff\_Ggl](https://forum.ansible.com/u/Eff_Ggl)\
**Replies:** 1\
**Last updated:** [February 5, 2015, 10:47am UTC](https://forum.ansible.com/t/error-message-when-trying-to-create-mariadb-databse/17449 "2015-02-05T10:47:33Z")

</div>

I am trying to install mysql using ANSIBLE on CentOS7(i have no idea why every documention in the world now ONLY talks ablotu Ubuntu and NO CentOS anymore…really SAD!) here is my create\_db.yml file

---

## ['messaging/rabbitmq\_policy' fails to set up policy parameters requiring integer as the input](https://forum.ansible.com/t/messaging-rabbitmq-policy-fails-to-set-up-policy-parameters-requiring-integer-as-the-input/17454)

<div class="topic-metadata">

**Author:** [@Huaxing\_Sun](https://forum.ansible.com/u/Huaxing_Sun)\
**Replies:** 2\
**Last updated:** [February 5, 2015, 9:56am UTC](https://forum.ansible.com/t/messaging-rabbitmq-policy-fails-to-set-up-policy-parameters-requiring-integer-as-the-input/17454 "2015-02-05T09:56:06Z")

</div>

I keep getting error with the following ansible command. \` … name: create policy rabbitmq\_policy: name={{ item.name }} vhost={{ item.vhost | default(‘/’, false) }} pattern={{ item.pattern }} priority={{ item.pri…

---

## [Ansible vs CloudFormation vs Terraform](https://forum.ansible.com/t/ansible-vs-cloudformation-vs-terraform/17450)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 1\
**Last updated:** [February 5, 2015, 9:03am UTC](https://forum.ansible.com/t/ansible-vs-cloudformation-vs-terraform/17450 "2015-02-05T09:03:56Z")

</div>

Hi, I am just getting started with my career in DevOps and have been researching of various technologies to automate infrastructure creation and deployment. Since I have been working on AWS a lot , my question is more …

---

## [Access to hostvars from Ansible callback](https://forum.ansible.com/t/access-to-hostvars-from-ansible-callback/17439)

<div class="topic-metadata">

**Author:** [@maxime.gerges](https://forum.ansible.com/u/maxime.gerges)\
**Replies:** 3\
**Last updated:** [February 5, 2015, 6:47am UTC](https://forum.ansible.com/t/access-to-hostvars-from-ansible-callback/17439 "2015-02-05T06:47:25Z")

</div>

Hello guys, I have a question regarding ansible callback\_plugins and hostvars in the runner\_ok() method. I can retrieve facts on a specific host from this method by using the ‘res’ argument provided. However I’d like …

---

## [Refer other host to get facts when running in a host](https://forum.ansible.com/t/refer-other-host-to-get-facts-when-running-in-a-host/17442)

<div class="topic-metadata">

**Author:** [@Le\_Van](https://forum.ansible.com/u/Le_Van)\
**Replies:** 1\
**Last updated:** [February 5, 2015, 3:12am UTC](https://forum.ansible.com/t/refer-other-host-to-get-facts-when-running-in-a-host/17442 "2015-02-05T03:12:55Z")

</div>

Hi, I’m using Ansible to provision an application deployment. here is my structure hosts \[dbservers\] db.local \[memcached\] mc.local \[appservers\] app1.local #app2.local I’m using Tomcat and have a context like t…

---

## [127.0.0.1 and localhost in synchronize module](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module/15726)

<div class="topic-metadata">

**Author:** [@Michael\_Dur](https://forum.ansible.com/u/Michael_Dur)\
**Replies:** 5\
**Last updated:** [February 4, 2015, 9:35pm UTC](https://forum.ansible.com/t/127-0-0-1-and-localhost-in-synchronize-module/15726 "2015-02-04T21:35:02Z")

</div>

Why is localhost and 127.0.0.1 a special case in the synchronize module?

---

## [\[OT\] AnsibleFest London](https://forum.ansible.com/t/ot-ansiblefest-london/17415)

<div class="topic-metadata">

**Author:** [@Matthew\_Macdonald-Wa](https://forum.ansible.com/u/Matthew_Macdonald-Wa)\
**Replies:** 9\
**Last updated:** [February 4, 2015, 8:50pm UTC](https://forum.ansible.com/t/ot-ansiblefest-london/17415 "2015-02-04T20:50:34Z")

</div>

Hi all, Just wondering who’s going to be in town on Wednesday night before the meetup and might fancy a beer. I’m staying at the conference venue but I’m happy to yomp for a bit around London for a chat if anyone fanci…

---

## [Is it possible to created a numbered list from a with\_sequence loop?](https://forum.ansible.com/t/is-it-possible-to-created-a-numbered-list-from-a-with-sequence-loop/17446)

<div class="topic-metadata">

**Author:** [@doug1](https://forum.ansible.com/u/doug1)\
**Replies:** 1\
**Last updated:** [February 4, 2015, 8:36pm UTC](https://forum.ansible.com/t/is-it-possible-to-created-a-numbered-list-from-a-with-sequence-loop/17446 "2015-02-04T20:36:35Z")

</div>

I’m attempting to create a playbook for zookeeper. The playbook is designed as a part of a role which is deployed after an AWS provisioning takes place. Due to the configuration of zookeeper, each host requires a zookeep…

---

## [Values with leading zeroes (file mode)](https://forum.ansible.com/t/values-with-leading-zeroes-file-mode/17412)

<div class="topic-metadata">

**Author:** [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Replies:** 6\
**Last updated:** [February 4, 2015, 4:37pm UTC](https://forum.ansible.com/t/values-with-leading-zeroes-file-mode/17412 "2015-02-04T16:37:19Z")

</div>

Hi, When specifying a variable for file/directory mode, if there is a zero in front of the numbers (e.g. 0775) then it gets treated as an octal. The workaround is to quote the number, then the file module will correc…

---

## [Ansible Tower Not Loading](https://forum.ansible.com/t/ansible-tower-not-loading/17444)

<div class="topic-metadata">

**Author:** [@Bill\_Nottingham](https://forum.ansible.com/u/Bill_Nottingham)\
**Replies:** 0\
**Last updated:** [February 4, 2015, 3:31pm UTC](https://forum.ansible.com/t/ansible-tower-not-loading/17444 "2015-02-04T15:31:23Z")

</div>

Tom Hobein (tom.hobein@gmail.com) said: I've successfully installed Ansible and Ansible Tower. When I go to access Ansible Tower, by typing the IP address of the machine I installed it on in the browser, it simply lo…

---

## [Need help with ssh connection](https://forum.ansible.com/t/need-help-with-ssh-connection/17425)

<div class="topic-metadata">

**Author:** [@Drew\_Marold](https://forum.ansible.com/u/Drew_Marold)\
**Replies:** 6\
**Last updated:** [February 4, 2015, 3:09pm UTC](https://forum.ansible.com/t/need-help-with-ssh-connection/17425 "2015-02-04T15:09:02Z")

</div>

I’m trying to use Ansible for remotely controlling outlets on a networked power distribution unit in a rack. I can manually ssh to it fine, but whenever I try to do it with Ansible, it can’t connect, and the -vvvv is not…

---

## [Iterate on more than one task: shell and pause](https://forum.ansible.com/t/iterate-on-more-than-one-task-shell-and-pause/17437)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan](https://forum.ansible.com/u/Tzach_Livyatan)\
**Replies:** 2\
**Last updated:** [February 4, 2015, 2:40pm UTC](https://forum.ansible.com/t/iterate-on-more-than-one-task-shell-and-pause/17437 "2015-02-04T14:40:37Z")

</div>

Hello again I have a command to execute X times, pausing for a few second after each iteration. One (working) way to do it is: \` shell: sleep 60; the-command with\_sequence: count={{X}} \` But its look ugly to me: …

---

## [switch to all the users and run the same command](https://forum.ansible.com/t/switch-to-all-the-users-and-run-the-same-command/17418)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 4\
**Last updated:** [February 4, 2015, 10:50am UTC](https://forum.ansible.com/t/switch-to-all-the-users-and-run-the-same-command/17418 "2015-02-04T10:50:57Z")

</div>

Hi I am new to ansible and stuck here, where i want to run this same command but using the each user from the list. for example: in vars/main.yml vpc\_users: abc xyz qes in tasks/main.yml name: VNC | vncserver com…

---

## [ansible tag](https://forum.ansible.com/t/ansible-tag/17441)

<div class="topic-metadata">

**Author:** [@Anthony\_salvado](https://forum.ansible.com/u/Anthony_salvado)\
**Replies:** 0\
**Last updated:** [February 4, 2015, 10:22am UTC](https://forum.ansible.com/t/ansible-tag/17441 "2015-02-04T10:22:54Z")

</div>

test

---

## [ansible tags](https://forum.ansible.com/t/ansible-tags/17440)

<div class="topic-metadata">

**Author:** [@Anthony\_salvado](https://forum.ansible.com/u/Anthony_salvado)\
**Replies:** 0\
**Last updated:** [February 4, 2015, 10:19am UTC](https://forum.ansible.com/t/ansible-tags/17440 "2015-02-04T10:19:16Z")

</div>

Bonjour, je voulais savoir si il été possible d’utiliser le tag pour faire ça : jouer sur un Host des taches tagué d’un rôle et sur un autre Host jouer d’autres taches tagué du même rôle : hosts: nimbus roles: { rol…

---

## [The vars\_prompt prompt hangs just hangs after entering details (at least when used with vagrant)](https://forum.ansible.com/t/the-vars-prompt-prompt-hangs-just-hangs-after-entering-details-at-least-when-used-with-vagrant/17435)

<div class="topic-metadata">

**Author:** [@Samuel\_Lampa](https://forum.ansible.com/u/Samuel_Lampa)\
**Replies:** 1\
**Last updated:** [February 3, 2015, 8:30pm UTC](https://forum.ansible.com/t/the-vars-prompt-prompt-hangs-just-hangs-after-entering-details-at-least-when-used-with-vagrant/17435 "2015-02-03T20:30:18Z")

</div>

Hi, I’m trying to pull in some sensitive information using the vars\_prompt construct. My playbook looks something like this (see \[1\] for full source):

---

## [Ansible Tower Not Loading](https://forum.ansible.com/t/ansible-tower-not-loading/17436)

<div class="topic-metadata">

**Author:** [@Tom\_Hobein](https://forum.ansible.com/u/Tom_Hobein)\
**Replies:** 0\
**Last updated:** [February 3, 2015, 7:57pm UTC](https://forum.ansible.com/t/ansible-tower-not-loading/17436 "2015-02-03T19:57:27Z")

</div>

Hi, I’ve installed Ansible and Ansible Tower successfully but when I go to access the Ansible tower log in page I get an empty “Index of /” page. I’m simply entering the IP address into the browser of the server I’ve i…

---

## [ec2\_tag does not take AWS credential keys from environment variable](https://forum.ansible.com/t/ec2-tag-does-not-take-aws-credential-keys-from-environment-variable/17434)

<div class="topic-metadata">

**Author:** [@Pradeep\_Bhadani](https://forum.ansible.com/u/Pradeep_Bhadani)\
**Replies:** 2\
**Last updated:** [February 3, 2015, 5:10pm UTC](https://forum.ansible.com/t/ec2-tag-does-not-take-aws-credential-keys-from-environment-variable/17434 "2015-02-03T17:10:25Z")

</div>

I am trying to use ec2\_tag in my playbook and it failes with Authetication error " No handler was ready to authenticate. 1 handlers were checked. \[‘QuerySignatureV2AuthHandler’\] Check your credentials". I have set my AW…

---

## [conditional for Ansible to exit success (sys.exit(0))](https://forum.ansible.com/t/conditional-for-ansible-to-exit-success-sys-exit-0/17428)

<div class="topic-metadata">

**Author:** [@Robb\_Wagoner](https://forum.ansible.com/u/Robb_Wagoner)\
**Replies:** 2\
**Last updated:** [February 3, 2015, 4:21pm UTC](https://forum.ansible.com/t/conditional-for-ansible-to-exit-success-sys-exit-0/17428 "2015-02-03T16:21:43Z")

</div>

I have a condition under which I need Ansible to exit without an error (i.e. sys.exit(0)). Is there a means by which to do this? I.e. the complement to the fail module. Thanks! Robb

---

## [Set variable according to result of another variable?](https://forum.ansible.com/t/set-variable-according-to-result-of-another-variable/17424)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [February 3, 2015, 11:42am UTC](https://forum.ansible.com/t/set-variable-according-to-result-of-another-variable/17424 "2015-02-03T11:42:55Z")

</div>

If I: name: Copy SSL cert copy: src={{ ansible\_hostname if ansible\_hostname in valid\_hosts else (‘test’) }}.crt dest=/etc/pki/tls/certs/ mode=0644 How can I capture the name of the certificate that was actually cop…

---

## [select hosts via multiple && tags](https://forum.ansible.com/t/select-hosts-via-multiple-tags/17426)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver2](https://forum.ansible.com/u/Mark_Olliver2)\
**Replies:** 1\
**Last updated:** [February 3, 2015, 11:33am UTC](https://forum.ansible.com/t/select-hosts-via-multiple-tags/17426 "2015-02-03T11:33:57Z")

</div>

Hi, I am using the AWS inventory script but I need a way to select groups of hosts based on a shared set of tags. I.e many hosts might share the same Project tag but of that group only a few would share the same Product…

---

## [dumping all variables to a file for a reproducible run](https://forum.ansible.com/t/dumping-all-variables-to-a-file-for-a-reproducible-run/17417)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan](https://forum.ansible.com/u/Tzach_Livyatan)\
**Replies:** 2\
**Last updated:** [February 3, 2015, 11:00am UTC](https://forum.ansible.com/t/dumping-all-variables-to-a-file-for-a-reproducible-run/17417 "2015-02-03T11:00:59Z")

</div>

Hi all I’m using Ansible playbooks to run tests on EC2. Most of my variables are define at group\_vars/all, but I do override some of them using -e CLI option. To make the test reproducible, I want to dump all the vars…

---

## [ansible-docker add-hosts option](https://forum.ansible.com/t/ansible-docker-add-hosts-option/17430)

<div class="topic-metadata">

**Author:** [@JJ1](https://forum.ansible.com/u/JJ1)\
**Replies:** 0\
**Last updated:** [February 3, 2015, 3:06am UTC](https://forum.ansible.com/t/ansible-docker-add-hosts-option/17430 "2015-02-03T03:06:22Z")

</div>

Hi, Using ansible-docker module, how do I user the docker command “add-host” ? Thanks, Josh

---

## [Further adventures in variable resolution.](https://forum.ansible.com/t/further-adventures-in-variable-resolution/17429)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 0\
**Last updated:** [February 3, 2015, 1:58am UTC](https://forum.ansible.com/t/further-adventures-in-variable-resolution/17429 "2015-02-03T01:58:04Z")

</div>

I’m looking for some guidance about variable resolution of passed in extra variables when used with include files. I’ve brought up this issue before and made a fix but it has languished in the backlog. The code in the r…

---

## [Route53: Ability to set routing policy?](https://forum.ansible.com/t/route53-ability-to-set-routing-policy/17427)

<div class="topic-metadata">

**Author:** [@Nate\_Smith](https://forum.ansible.com/u/Nate_Smith)\
**Replies:** 0\
**Last updated:** [February 2, 2015, 11:59pm UTC](https://forum.ansible.com/t/route53-ability-to-set-routing-policy/17427 "2015-02-02T23:59:43Z")

</div>

Hi all, Does anyone know if it is possible to set the routing policy for a DNS record using the route53 core module? From the source, it appears that it is not possible, but it’s strange that this would be the case. It …

---

## [ansible "when:" directive: check file exists, and other nifty things?](https://forum.ansible.com/t/ansible-when-directive-check-file-exists-and-other-nifty-things/17423)

<div class="topic-metadata">

**Author:** [@Eric\_Feliksik1](https://forum.ansible.com/u/Eric_Feliksik1)\
**Replies:** 1\
**Last updated:** [February 2, 2015, 8:05pm UTC](https://forum.ansible.com/t/ansible-when-directive-check-file-exists-and-other-nifty-things/17423 "2015-02-02T20:05:20Z")

</div>

I can run a task conditionally, depending on the existence of a file, as follows: name: check if the file exists stat: path=/my/file register: file\_register name: do the actual task include: my\_subtask.yml when: no…

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

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