# Latest

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

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

**Page:** 1016

---

## [configuration file versioning](https://forum.ansible.com/t/configuration-file-versioning/13748)

<div class="topic-metadata">

**Author:** [@rhanna](https://forum.ansible.com/u/rhanna)\
**Replies:** 5\
**Last updated:** [October 27, 2013, 12:24pm UTC](https://forum.ansible.com/t/configuration-file-versioning/13748 "2013-10-27T12:24:05Z")

</div>

one of the uses I have for ansible is to deploy our app to the production servers we are currently using deb packages for the delivery the app also has a set of conf files that need to be copied over which are not part…

---

## [Packages marked for installation on aptitude after removing from ansible](https://forum.ansible.com/t/packages-marked-for-installation-on-aptitude-after-removing-from-ansible/13767)

<div class="topic-metadata">

**Author:** [@Felipe\_Fink\_Grael](https://forum.ansible.com/u/Felipe_Fink_Grael)\
**Replies:** 3\
**Last updated:** [October 27, 2013, 4:13am UTC](https://forum.ansible.com/t/packages-marked-for-installation-on-aptitude-after-removing-from-ansible/13767 "2013-10-27T04:13:10Z")

</div>

Hi, I am uninstalling several packages with the apt module, explicitly marking them as purged, as seen on the snippet below. Ansible successfully removes these packages. However, when I log into the machine and open apt…

---

## [Galaxy and a Feature Idea for remembering values passed to vars\_prompt](https://forum.ansible.com/t/galaxy-and-a-feature-idea-for-remembering-values-passed-to-vars-prompt/13770)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 6\
**Last updated:** [October 26, 2013, 3:26pm UTC](https://forum.ansible.com/t/galaxy-and-a-feature-idea-for-remembering-values-passed-to-vars-prompt/13770 "2013-10-26T15:26:50Z")

</div>

I was very excited to learn about the Ansible crew’s intention for Galaxy; kind of a marketplace for re-usable roles from what I understand. This can be very successful and useful, and I’m looking forward to see what sta…

---

## [What is the proper way to check multiple conditions before running a task?](https://forum.ansible.com/t/what-is-the-proper-way-to-check-multiple-conditions-before-running-a-task/13734)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 3\
**Last updated:** [October 25, 2013, 11:53pm UTC](https://forum.ansible.com/t/what-is-the-proper-way-to-check-multiple-conditions-before-running-a-task/13734 "2013-10-25T23:53:27Z")

</div>

I have this task: name: ensure nfs mountpoints exist file: path={{ item\[1\].path }} state=directory group={{ item\[1\].group }} owner={{ item\[1\].owner }} mode={{ item\[1\].mode }} when: nfs\_automount\_use AND item\[1\].path…

---

## [listing all defined variables](https://forum.ansible.com/t/listing-all-defined-variables/13768)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 1\
**Last updated:** [October 25, 2013, 11:44pm UTC](https://forum.ansible.com/t/listing-all-defined-variables/13768 "2013-10-25T23:44:01Z")

</div>

Is there a way to list all defined variables during a playbook run? Something similar to: pprint.pprint(locals()) in python? I'd basically like to get a snapshot of all defined variables -- host vars, things set with…

---

## [trying to use mysql\_db same task for a mysql server and Amazon RDS](https://forum.ansible.com/t/trying-to-use-mysql-db-same-task-for-a-mysql-server-and-amazon-rds/13764)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 3\
**Last updated:** [October 25, 2013, 11:43pm UTC](https://forum.ansible.com/t/trying-to-use-mysql-db-same-task-for-a-mysql-server-and-amazon-rds/13764 "2013-10-25T23:43:11Z")

</div>

Hi, I have the bellow task that I’m trying to modify in order to work with a MySQL server AND Amazon RDS : “”" hosts: mydb connection: local user: root gather\_facts: false vars\_files: myvars.yml name: impor…

---

## [synchronize module.](https://forum.ansible.com/t/synchronize-module/13766)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 1\
**Last updated:** [October 25, 2013, 11:41pm UTC](https://forum.ansible.com/t/synchronize-module/13766 "2013-10-25T23:41:10Z")

</div>

Any more feedback or bugs on this synchronize module pull request? https://github.com/ansible/ansible/pull/4167 Trying to avoid it missing another release.

---

## [bug?  Ignoring jinja variable substitution in templates](https://forum.ansible.com/t/bug-ignoring-jinja-variable-substitution-in-templates/13736)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 5\
**Last updated:** [October 25, 2013, 11:39pm UTC](https://forum.ansible.com/t/bug-ignoring-jinja-variable-substitution-in-templates/13736 "2013-10-25T23:39:03Z")

</div>

Is it possible to ignore variable substitution in templates? I’ve attempted {% raw %}, {% verbatim %}, slash escaping, and using jinja to output braces. Reason: I am writing a playbook that generates playbooks; so need …

---

## [synchronize module.](https://forum.ansible.com/t/synchronize-module/13772)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 1\
**Last updated:** [October 25, 2013, 9:43pm UTC](https://forum.ansible.com/t/synchronize-module/13772 "2013-10-25T21:43:23Z")

</div>

Any more feedback or bugs on this synchronize module pull request? https://github.com/ansible/ansible/pull/4167 Trying to avoid it missing another release.

---

## [Getting variables from a host script to use with playbooks](https://forum.ansible.com/t/getting-variables-from-a-host-script-to-use-with-playbooks/13771)

<div class="topic-metadata">

**Author:** [@Norman\_Kraft](https://forum.ansible.com/u/Norman_Kraft)\
**Replies:** 4\
**Last updated:** [October 25, 2013, 6:10pm UTC](https://forum.ansible.com/t/getting-variables-from-a-host-script-to-use-with-playbooks/13771 "2013-10-25T18:10:07Z")

</div>

I’m relatively new to Ansible, and still working these things out. I have a setup where a Python script on the calling host runs a script against a configuration database, and returns a JSON hash of values. These values…

---

## [mis-using ansible\_ssh\_host= ?](https://forum.ansible.com/t/mis-using-ansible-ssh-host/13762)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [October 25, 2013, 6:21am UTC](https://forum.ansible.com/t/mis-using-ansible-ssh-host/13762 "2013-10-25T06:21:34Z")

</div>

Dear List, We have more then one “test environment” (of our production environment) installed on 1 giant machine. Simply put, the program is installed multiple times, under a different user account inside different dire…

---

## [Conditional based on a set of strings contained in the hostname](https://forum.ansible.com/t/conditional-based-on-a-set-of-strings-contained-in-the-hostname/13756)

<div class="topic-metadata">

**Author:** [@David\_Brossard](https://forum.ansible.com/u/David_Brossard)\
**Replies:** 3\
**Last updated:** [October 24, 2013, 9:58pm UTC](https://forum.ansible.com/t/conditional-based-on-a-set-of-strings-contained-in-the-hostname/13756 "2013-10-24T21:58:48Z")

</div>

I’ve been racking my brain on this one but I haven’t been able to come up with an answer. My Devs have named machines based on their task. I know you can set a conditional based on the hostname such as: name: Testing …

---

## [Mixing "module: rax" with "with\_sequence", mixed results.](https://forum.ansible.com/t/mixing-module-rax-with-with-sequence-mixed-results/13765)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 2\
**Last updated:** [October 24, 2013, 9:53pm UTC](https://forum.ansible.com/t/mixing-module-rax-with-with-sequence-mixed-results/13765 "2013-10-24T21:53:24Z")

</div>

I’ve been hacking at the openshift example to try and create a rig where you can create or remove virtual hosts in either ec2 or rax, controlled by just giving an additional “-e” var on the command line. (though what I h…

---

## [{'msg': 'FAILED: not a valid DSA private key file', 'failed': True} when configuring newly created EC2 instances](https://forum.ansible.com/t/msg-failed-not-a-valid-dsa-private-key-file-failed-true-when-configuring-newly-created-ec2-instances/13755)

<div class="topic-metadata">

**Author:** [@Teg\_Ryan](https://forum.ansible.com/u/Teg_Ryan)\
**Replies:** 3\
**Last updated:** [October 24, 2013, 5:20pm UTC](https://forum.ansible.com/t/msg-failed-not-a-valid-dsa-private-key-file-failed-true-when-configuring-newly-created-ec2-instances/13755 "2013-10-24T17:20:16Z")

</div>

When I provision a new EC2 instance and then try to connect using the IP or DNS name, I get the error message above. When I call the same configuration play using the DNS name in the inventory file it works fine. More …

---

## [pass sudo password in playbook command](https://forum.ansible.com/t/pass-sudo-password-in-playbook-command/13763)

<div class="topic-metadata">

**Author:** [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Replies:** 1\
**Last updated:** [October 24, 2013, 5:17pm UTC](https://forum.ansible.com/t/pass-sudo-password-in-playbook-command/13763 "2013-10-24T17:17:15Z")

</div>

Hi, I have a playbook(test.yml) which installs some packages on a server. name: playbook to install lamp stack hosts: test user: root sudo: yes tasks: name: Install Apache action: apt pkg=apache2 state=present N…

---

## [1.2 to 1.3 when\_failed error](https://forum.ansible.com/t/1-2-to-1-3-when-failed-error/13747)

<div class="topic-metadata">

**Author:** [@Phil\_Siegrist](https://forum.ansible.com/u/Phil_Siegrist)\
**Replies:** 3\
**Last updated:** [October 24, 2013, 3:02pm UTC](https://forum.ansible.com/t/1-2-to-1-3-when-failed-error/13747 "2013-10-24T15:02:09Z")

</div>

Hi all, There are a few posts going around on this but I’m a wee bit stick The following example worked on 1.2 name: “check for gelf download” shell: /usr/bin/test -f /opt/mx/bin/logback-gelf-0.9.6p2-jar-with-depend…

---

## [Running playbooks with sudo vs root](https://forum.ansible.com/t/running-playbooks-with-sudo-vs-root/13758)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 2\
**Last updated:** [October 24, 2013, 1:38pm UTC](https://forum.ansible.com/t/running-playbooks-with-sudo-vs-root/13758 "2013-10-24T13:38:28Z")

</div>

Hello, I am working on setting up ansible in my environment and would like to know if there is a strong advantage to using sudo with playbooks rather than logging in directly as root? Some advantages that come to mind a…

---

## [Inventory hosts and host vars](https://forum.ansible.com/t/inventory-hosts-and-host-vars/13751)

<div class="topic-metadata">

**Author:** [@cbird](https://forum.ansible.com/u/cbird)\
**Replies:** 2\
**Last updated:** [October 24, 2013, 9:07am UTC](https://forum.ansible.com/t/inventory-hosts-and-host-vars/13751 "2013-10-24T09:07:03Z")

</div>

Hey All, I’m currently using the rax.py file to handle my inventory which is working great. But I’ve now hit a problem, the plugin provides the inventory with the public IP of the instance so if i want to create host\_va…

---

## [What's wrong with this ansible playbook ?](https://forum.ansible.com/t/whats-wrong-with-this-ansible-playbook/13752)

<div class="topic-metadata">

**Author:** [@Soumya\_Simanta](https://forum.ansible.com/u/Soumya_Simanta)\
**Replies:** 10\
**Last updated:** [October 23, 2013, 11:53pm UTC](https://forum.ansible.com/t/whats-wrong-with-this-ansible-playbook/13752 "2013-10-23T23:53:31Z")

</div>

I’m new to Ansibile and having trouble with a playbook. I’ve resolved many issues with the help of members on this list. Thank you. However, I’m yet to have complete success. Here is my current issue. I’m trying to laun…

---

## [Bug in copy module (ansible 1.3.2)](https://forum.ansible.com/t/bug-in-copy-module-ansible-1-3-2/13753)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 1\
**Last updated:** [October 23, 2013, 6:49pm UTC](https://forum.ansible.com/t/bug-in-copy-module-ansible-1-3-2/13753 "2013-10-23T18:49:45Z")

</div>

I appear to have come across a bug in the copy module in ansible 1.3.2. The following task in one of my playbooks fails: name: cron job to clean up raw files copy: src=clean\_up\_rawfiles dest=/etc/cron.daily owner=root…

---

## [Inconsistency between cli and API](https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750)

<div class="topic-metadata">

**Author:** [@Miroslav\_Suchy](https://forum.ansible.com/u/Miroslav_Suchy)\
**Replies:** 1\
**Last updated:** [October 23, 2013, 6:49pm UTC](https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750 "2013-10-23T18:49:01Z")

</div>

Hi, I’m getting different results, when using cli command ansible-playbook and directly use python API. I’m not sure if this is PEBKAC or bug in ansible. Here is my minimal reproducer: reproducer.yml:

---

## [Trying to make a playbook extensible by dropping files in](https://forum.ansible.com/t/trying-to-make-a-playbook-extensible-by-dropping-files-in/13746)

<div class="topic-metadata">

**Author:** [@Benjamin\_Podszun](https://forum.ansible.com/u/Benjamin_Podszun)\
**Replies:** 1\
**Last updated:** [October 23, 2013, 6:44pm UTC](https://forum.ansible.com/t/trying-to-make-a-playbook-extensible-by-dropping-files-in/13746 "2013-10-23T18:44:27Z")

</div>

Hi there. I bothered some people on IRC already, but I understand that this is a niche case and people (understandably..) turned away after providing the same suggestions over and over again. Overview, goal: I want to …

---

## [script output variable causes an error (\\r\\n)](https://forum.ansible.com/t/script-output-variable-causes-an-error-r-n/13082)

<div class="topic-metadata">

**Author:** [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Replies:** 3\
**Last updated:** [October 23, 2013, 6:38pm UTC](https://forum.ansible.com/t/script-output-variable-causes-an-error-r-n/13082 "2013-10-23T18:38:02Z")

</div>

Dear community, I’m using ansible in version 1.2 in combination with debian 6.0 In one playbook I’m doing a step that does grep the name of the user who owns this domain: name: get domain and db user action: script …

---

## [Cron module question / request](https://forum.ansible.com/t/cron-module-question-request/13745)

<div class="topic-metadata">

**Author:** [@Dale\_Campbell](https://forum.ansible.com/u/Dale_Campbell)\
**Replies:** 1\
**Last updated:** [October 23, 2013, 6:37pm UTC](https://forum.ansible.com/t/cron-module-question-request/13745 "2013-10-23T18:37:07Z")

</div>

Hello All, I am writing a playbook for one of pure staging servers and I need to add 5 cron jobs. However for the first two I need to add them commented, Is there a way to accomplish this with ansible currently? Maybe s…

---

## [playbook for role creation with best practice in mind](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744)

<div class="topic-metadata">

**Author:** [@Luke\_Tislow](https://forum.ansible.com/u/Luke_Tislow)\
**Replies:** 2\
**Last updated:** [October 23, 2013, 6:35pm UTC](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744 "2013-10-23T18:35:17Z")

</div>

Heyo - 1/4 of the way through a bash script… I figured out I should just write a playbook to setup a role structure with initial files and such. Here you go - https://github.com/lowwalker/ansible\_role\_scaffold Also, t…

---

## [Getting variable from a database](https://forum.ansible.com/t/getting-variable-from-a-database/13749)

<div class="topic-metadata">

**Author:** [@Smain\_Kahlouch](https://forum.ansible.com/u/Smain_Kahlouch)\
**Replies:** 2\
**Last updated:** [October 23, 2013, 1:40pm UTC](https://forum.ansible.com/t/getting-variable-from-a-database/13749 "2013-10-23T13:40:06Z")

</div>

Hello, Well my question is pretty straight forward: Actually we have tons of information stored on a db and i would like to know if it’s possible to get those and pass them to ansible as hosts/groups vars ? It’s curre…

---

## [openshift example broken?](https://forum.ansible.com/t/openshift-example-broken/13738)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 5\
**Last updated:** [October 22, 2013, 6:17pm UTC](https://forum.ansible.com/t/openshift-example-broken/13738 "2013-10-22T18:17:17Z")

</div>

Hello everyone, Unless there is some higher order thing going on which I’m not familiar with, I think something bad happened to the openshift example ( https://github.com/ansible/ansible-examples/tree/master/openshift )…

---

## [\--start-at-task not working in devel](https://forum.ansible.com/t/start-at-task-not-working-in-devel/13741)

<div class="topic-metadata">

**Author:** [@Byron\_Schlemmer](https://forum.ansible.com/u/Byron_Schlemmer)\
**Replies:** 3\
**Last updated:** [October 22, 2013, 5:37pm UTC](https://forum.ansible.com/t/start-at-task-not-working-in-devel/13741 "2013-10-22T17:37:26Z")

</div>

Hi, It seems that --start-at-task for ansible-playbook isn’t working in: ./ansible-playbook --version ansible-playbook 1.4 (devel 4f13967386) last updated 2013/10/22 11:38:51 (GMT +100) but works fine in : ansible-pl…

---

## [How to file good bug reports](https://forum.ansible.com/t/how-to-file-good-bug-reports/13724)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [October 22, 2013, 4:05pm UTC](https://forum.ansible.com/t/how-to-file-good-bug-reports/13724 "2013-10-22T16:05:19Z")

</div>

Hi all, I wanted to share a quick reminder about what we look for in filing tickets in GitHub. Bugs should be reported on github - http://github.com/ansible/ansible, not the mailing list. The mailing list is not a bug …

---

## [authorized\_key not working on the latest devel](https://forum.ansible.com/t/authorized-key-not-working-on-the-latest-devel/13743)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [October 22, 2013, 3:17pm UTC](https://forum.ansible.com/t/authorized-key-not-working-on-the-latest-devel/13743 "2013-10-22T15:17:39Z")

</div>

Hi, In ansible 1.4 (devel 4f13967386) last updated 2013/10/22 13:48:49 (GMT +000) the bellow tasks has stopped working : \`\`1 name: Deploying user(s) ssh key(s) authorized\_key: user=${item.user} key=“{{ lookup(‘file’…

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

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