# Latest

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

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

**Page:** 1035

---

## [old 'cached' playbook seems getting executed and new playbooks fail without sudo](https://forum.ansible.com/t/old-cached-playbook-seems-getting-executed-and-new-playbooks-fail-without-sudo/13161)

<div class="topic-metadata">

**Author:** [@Maarten](https://forum.ansible.com/u/Maarten)\
**Replies:** 4\
**Last updated:** [July 20, 2013, 5:24pm UTC](https://forum.ansible.com/t/old-cached-playbook-seems-getting-executed-and-new-playbooks-fail-without-sudo/13161 "2013-07-20T17:24:42Z")

</div>

Hello, It seems some cached playbook keeps getting executed while playing an new playbook. Because ‘the old playbook’ needs root permissions any playbook on this host fails. I understand host.example.com:/home/maarten/…

---

## [Are 'include:' loops possivel with output of a command?](https://forum.ansible.com/t/are-include-loops-possivel-with-output-of-a-command/13165)

<div class="topic-metadata">

**Author:** [@lucc](https://forum.ansible.com/u/lucc)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 10:26pm UTC](https://forum.ansible.com/t/are-include-loops-possivel-with-output-of-a-command/13165 "2013-07-19T22:26:28Z")

</div>

Hello, I could neither make it work, nor find a clear explanation, on whether it is possible to make a include loop with with\_items: taking a list values produced as the output of another command. The following works: …

---

## [Getting data from json format](https://forum.ansible.com/t/getting-data-from-json-format/13162)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 11\
**Last updated:** [July 19, 2013, 8:13pm UTC](https://forum.ansible.com/t/getting-data-from-json-format/13162 "2013-07-19T20:13:16Z")

</div>

Hi all, I have just discovered ansible and I must admit in certain tasks it this way easier to use ansible than puppet :slight\_smile: It is really stunning how easy are some tasks - thanks guys :slight\_smile: I am try…

---

## [post\_tasks not getting executed](https://forum.ansible.com/t/post-tasks-not-getting-executed/13164)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 3:01pm UTC](https://forum.ansible.com/t/post-tasks-not-getting-executed/13164 "2013-07-19T15:01:54Z")

</div>

Hi All, I have the bellow playbook : site.yml : . . . hosts: web-servers user: root vars\_files: private\_vars/secret-vars.yml group\_vars/all.yml group\_vars/us-east.yml roles: { role : common , tags:…

---

## [spaces in variable values](https://forum.ansible.com/t/spaces-in-variable-values/13163)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 2:04pm UTC](https://forum.ansible.com/t/spaces-in-variable-values/13163 "2013-07-19T14:04:40Z")

</div>

ansible 1.2 mac os x

---

## [rules and missing variable](https://forum.ansible.com/t/rules-and-missing-variable/13159)

<div class="topic-metadata">

**Author:** [@Filip\_Slunecko](https://forum.ansible.com/u/Filip_Slunecko)\
**Replies:** 4\
**Last updated:** [July 19, 2013, 11:54am UTC](https://forum.ansible.com/t/rules-and-missing-variable/13159 "2013-07-19T11:54:12Z")

</div>

Hi, 2 servers - Master and Slave Playbook looks like this: {role: A, when: srv\_role == “master”} {role: B, when: srv\_role == “slave”} role A: name: foo1 shell: bar1 register: foobar1 name: foo2 shell: bar2 …

---

## ["facts" don't evaluate](https://forum.ansible.com/t/facts-dont-evaluate/13156)

<div class="topic-metadata">

**Author:** [@Riccardo\_Galli](https://forum.ansible.com/u/Riccardo_Galli)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 9:52am UTC](https://forum.ansible.com/t/facts-dont-evaluate/13156 "2013-07-19T09:52:46Z")

</div>

Hi, I’m new to ansible and I’m trying to figure out how to use “facts”. I have this playbook

---

## [mysql\_db : how to specify the server port](https://forum.ansible.com/t/mysql-db-how-to-specify-the-server-port/13155)

<div class="topic-metadata">

**Author:** [@Marian\_ZUREK](https://forum.ansible.com/u/Marian_ZUREK)\
**Replies:** 5\
**Last updated:** [July 19, 2013, 9:48am UTC](https://forum.ansible.com/t/mysql-db-how-to-specify-the-server-port/13155 "2013-07-19T09:48:54Z")

</div>

I am trying to use the mysql\_db module for the database creation in a following way: name: Create Application Database mysql\_db: name={{ dbname }} state=present login\_host={{ db\_server }} login\_password={{ admin\_passw…

---

## [a few tasks one after the other](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 8:51am UTC](https://forum.ansible.com/t/a-few-tasks-one-after-the-other/13157 "2013-07-19T08:51:41Z")

</div>

Hi, I am new in ansible world so please excuse my lack of knowledge. I’d like to copy script to several remote systems, run it, read its output and then delete the script. How could I do it in ansible ? Especially run…

---

## [wrong SELinux security contexts](https://forum.ansible.com/t/wrong-selinux-security-contexts/13151)

<div class="topic-metadata">

**Author:** [@Filip\_Slunecko](https://forum.ansible.com/u/Filip_Slunecko)\
**Replies:** 9\
**Last updated:** [July 19, 2013, 4:51am UTC](https://forum.ansible.com/t/wrong-selinux-security-contexts/13151 "2013-07-19T04:51:47Z")

</div>

Hi, This command: name: create file httpd.conf template: src=httpd.conf dest=/etc/httpd/conf/httpd.conf owner=root group=root mode=0644 create the httpd.conf file with wrong security contexts. unconfined\_u:object\_r…

---

## [mysql\_secret](https://forum.ansible.com/t/mysql-secret/13160)

<div class="topic-metadata">

**Author:** [@Michael\_Ni](https://forum.ansible.com/u/Michael_Ni)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 1:40am UTC](https://forum.ansible.com/t/mysql-secret/13160 "2013-07-19T01:40:22Z")

</div>

According to As of MySQL 5.6.8, if using rpm installation, mysql is automatically setup with a random password stored in $HOME/.mysql\_secret the file contains text like the following The random password set for the …

---

## [applying sudo\_user to a list of tasks](https://forum.ansible.com/t/applying-sudo-user-to-a-list-of-tasks/13036)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 14\
**Last updated:** [July 19, 2013, 12:54am UTC](https://forum.ansible.com/t/applying-sudo-user-to-a-list-of-tasks/13036 "2013-07-19T00:54:32Z")

</div>

Hello, My playbook is run with sudo: yes Inside this playbook, I would like to run a task list several times. Each time it would be for a different user. for simplification, the task list could be: tasks: ping: pin…

---

## [ssh connection closed waiting for password prompt](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-password-prompt/13152)

<div class="topic-metadata">

**Author:** [@Andy\_Wilde](https://forum.ansible.com/u/Andy_Wilde)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 9:08pm UTC](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-password-prompt/13152 "2013-07-18T21:08:27Z")

</div>

Hi I’ve just started experimenting with Ansible to see if it’s possible to configure a number of Jenkins slaves. My first experiment to ping machineB from machineA was successful: eanwwie@machineA:/home/eanwwie$ ansibl…

---

## [First release of "Elasticluster" is out!](https://forum.ansible.com/t/first-release-of-elasticluster-is-out/13144)

<div class="topic-metadata">

**Author:** [@Curtis](https://forum.ansible.com/u/Curtis)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 9:07pm UTC](https://forum.ansible.com/t/first-release-of-elasticluster-is-out/13144 "2013-07-18T21:07:31Z")

</div>

I think it's based on ansible so might not be that off topic. Not sure. The website says it runs ansible playbooks and setup.py requires ansible.

---

## [Is it possible to include playbook and pass a host to it ?](https://forum.ansible.com/t/is-it-possible-to-include-playbook-and-pass-a-host-to-it/13153)

<div class="topic-metadata">

**Author:** [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 8:57pm UTC](https://forum.ansible.com/t/is-it-possible-to-include-playbook-and-pass-a-host-to-it/13153 "2013-07-18T20:57:55Z")

</div>

Hello community, I’m a outer playbook like this hosts: $SERVER user: root connection: ssh vars\_prompt: name: “SERVER” prompt: “\\nEnter servername\\n” private: no tasks: name: do stuff my inner playbook sho…

---

## [3 simple questions](https://forum.ansible.com/t/3-simple-questions/13154)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 2:55pm UTC](https://forum.ansible.com/t/3-simple-questions/13154 "2013-07-18T14:55:16Z")

</div>

Sorry if this is obvious but I’m having problems finding this info For playbooks is there an easy way, without changing the verbose level, to echo to stdout the value of a variable or variable structure (json) what is…

---

## [How to append to an existing collection](https://forum.ansible.com/t/how-to-append-to-an-existing-collection/13150)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 12:05pm UTC](https://forum.ansible.com/t/how-to-append-to-an-existing-collection/13150 "2013-07-18T12:05:48Z")

</div>

Talking about variables, I would like to add new items to an existing collection of value. Use case: There is a group with a variable in their group\_vars file which defines a series of cronjobs that will be installed o…

---

## [Clarification on the "elasticluster" announcement](https://forum.ansible.com/t/clarification-on-the-elasticluster-announcement/13149)

<div class="topic-metadata">

**Author:** [@Antonio\_Messina](https://forum.ansible.com/u/Antonio_Messina)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 11:42am UTC](https://forum.ansible.com/t/clarification-on-the-elasticluster-announcement/13149 "2013-07-18T11:42:34Z")

</div>

Hi all, I think I have to apologize for my previous email sent to the mailing list: it was not supposed to appear as SPAM, so if this is what's happened then I wrote the wrong message to the wrong mailing list, I wil…

---

## [ec2\_facts not returning root device type: instance store or ebs](https://forum.ansible.com/t/ec2-facts-not-returning-root-device-type-instance-store-or-ebs/13114)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 4\
**Last updated:** [July 18, 2013, 11:07am UTC](https://forum.ansible.com/t/ec2-facts-not-returning-root-device-type-instance-store-or-ebs/13114 "2013-07-18T11:07:14Z")

</div>

Hi All, It seems ec2\_facts does not return if the instance root volume is an instance store or ebs. Is that not available? Had a look at the module, and it does not exclude any data that I can see. Would be useful to h…

---

## [Getting register value](https://forum.ansible.com/t/getting-register-value/13148)

<div class="topic-metadata">

**Author:** [@celine](https://forum.ansible.com/u/celine)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 3:31am UTC](https://forum.ansible.com/t/getting-register-value/13148 "2013-07-18T03:31:18Z")

</div>

How do I get the results from register? name: check permission shell: find {{gPath}} -printf “%m\\n” register: results name: Print results action: debug msg=“{{results.stdout\_lines}}” What i got from results.s…

---

## [is it possible to dynamically set user or sudo of a play / playbook?](https://forum.ansible.com/t/is-it-possible-to-dynamically-set-user-or-sudo-of-a-play-playbook/13126)

<div class="topic-metadata">

**Author:** [@Michael\_Ni](https://forum.ansible.com/u/Michael_Ni)\
**Replies:** 11\
**Last updated:** [July 18, 2013, 1:18am UTC](https://forum.ansible.com/t/is-it-possible-to-dynamically-set-user-or-sudo-of-a-play-playbook/13126 "2013-07-18T01:18:45Z")

</div>

Suppose I have a thousand users, with different sudo settings, When including a play or playbook within a playbook, can i set the user and sudo key dynamically? I want to have 1 template I can use for all 1 thousand us…

---

## [Config Management Camp Gent, February 2014](https://forum.ansible.com/t/config-management-camp-gent-february-2014/13123)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 6\
**Last updated:** [July 18, 2013, 1:07am UTC](https://forum.ansible.com/t/config-management-camp-gent-february-2014/13123 "2013-07-18T01:07:17Z")

</div>

Hi, I'm not sure if this has been posted somewhere else like irc. but I thought I'd post it here. Kris Buytaert (From DevOps fame :slight\_smile: ) helped organizing a Puppet Camp last year, and a lot of people asked…

---

## [Ansible on FLOSS Weekly now online](https://forum.ansible.com/t/ansible-on-floss-weekly-now-online/13146)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 8:57pm UTC](https://forum.ansible.com/t/ansible-on-floss-weekly-now-online/13146 "2013-07-17T20:57:19Z")

</div>

http://twit.tv/show/floss-weekly/257 For those that haven’t had to ensure me talking about Ansible before, you may be interested in this podcast video from today. Thanks to Randal and Gareth for having me!

---

## [port in ansible facts?](https://forum.ansible.com/t/port-in-ansible-facts/13142)

<div class="topic-metadata">

**Author:** [@Pierre\_Thibault](https://forum.ansible.com/u/Pierre_Thibault)\
**Replies:** 5\
**Last updated:** [July 17, 2013, 7:12pm UTC](https://forum.ansible.com/t/port-in-ansible-facts/13142 "2013-07-17T19:12:02Z")

</div>

Hello, Is it possible to know what port has been used for the Ansible connection on the remote node. I don’t know if this information is available.

---

## [Is it intentional to authorize Python escaping in YAML playbooks?](https://forum.ansible.com/t/is-it-intentional-to-authorize-python-escaping-in-yaml-playbooks/12844)

<div class="topic-metadata">

**Author:** [@Nicolas\_Grilly](https://forum.ansible.com/u/Nicolas_Grilly)\
**Replies:** 14\
**Last updated:** [July 17, 2013, 7:03pm UTC](https://forum.ansible.com/t/is-it-intentional-to-authorize-python-escaping-in-yaml-playbooks/12844 "2013-07-17T19:03:28Z")

</div>

I’ve noticed that when I use an escape sequence like “\\n” in my YAML playbooks, it is interpreted by Python modules like a newline, instead of a two separated characters "" and “n”. Is it intended? It seems redundant bec…

---

## [Access the ansible command itself?](https://forum.ansible.com/t/access-the-ansible-command-itself/13143)

<div class="topic-metadata">

**Author:** [@Pierre\_Thibault](https://forum.ansible.com/u/Pierre_Thibault)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 5:39pm UTC](https://forum.ansible.com/t/access-the-ansible-command-itself/13143 "2013-07-17T17:39:37Z")

</div>

Hello, Is it possible to access the Ansible command typed on the command line from Ansible itself? It would like to log the Ansible command when a playbook is run.

---

## [copy without need to specify parent directory](https://forum.ansible.com/t/copy-without-need-to-specify-parent-directory/13141)

<div class="topic-metadata">

**Author:** [@celine](https://forum.ansible.com/u/celine)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 4:43pm UTC](https://forum.ansible.com/t/copy-without-need-to-specify-parent-directory/13141 "2013-07-17T16:43:13Z")

</div>

“copy” action allows us to copy but the parent directory has to be present on server to succesfully execute action. Same for rsync. Is there a way to copy file from client to server even when parent directory has not ye…

---

## [Couldn't read packet: Connection reset by peer](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [July 17, 2013, 3:13pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382 "2013-07-17T15:13:53Z")

</div>

Shouldn't have anything to do with the contents of the playbook. If you're using -c paramiko, can you try with -c ssh to see if that makes a difference? Check ports, see if you can SSH in normally, see if you reall…

---

## [launch a EC2 deployment through Ansible](https://forum.ansible.com/t/launch-a-ec2-deployment-through-ansible/13140)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 1\
**Last updated:** [July 17, 2013, 11:20am UTC](https://forum.ansible.com/t/launch-a-ec2-deployment-through-ansible/13140 "2013-07-17T11:20:40Z")

</div>

Hi All, I was testing the Ansible ec2.py plugin to create an inventory of our EC2 instances, is there a way I could launch a full setup from Ansible without the need to manually boot every ec2 instance one by one and co…

---

## [Migrating from 1.1 to 1.2, problems replacing "only\_if" with "when"](https://forum.ansible.com/t/migrating-from-1-1-to-1-2-problems-replacing-only-if-with-when/13131)

<div class="topic-metadata">

**Author:** [@Antonio\_Messina](https://forum.ansible.com/u/Antonio_Messina)\
**Replies:** 9\
**Last updated:** [July 17, 2013, 11:19am UTC](https://forum.ansible.com/t/migrating-from-1-1-to-1-2-problems-replacing-only-if-with-when/13131 "2013-07-17T11:19:51Z")

</div>

Hi all, I am starting to migrate my playbooks from Ansible 1.1 to Ansible 1.2 and I am getting a few problems. To distinguish between CentOS and Ubuntu distributions, I used to set two variables, "is\_centos" and "is\_…

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

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