# Latest

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

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

**Page:** 979

---

## [Ansible conditions and logics](https://forum.ansible.com/t/ansible-conditions-and-logics/14896)

<div class="topic-metadata">

**Author:** [@Maxim\_Odinintsev](https://forum.ansible.com/u/Maxim_Odinintsev)\
**Replies:** 7\
**Last updated:** [April 4, 2014, 3:15pm UTC](https://forum.ansible.com/t/ansible-conditions-and-logics/14896 "2014-04-04T15:15:15Z")

</div>

Hello, I’m trying migrate out my infrastructure under ansible control, but stopped on simple things realization with ansible. I would be very grateful if some one can explain, best way for moving on this simple shell s…

---

## [Delegated cronjobs with time vars per target host](https://forum.ansible.com/t/delegated-cronjobs-with-time-vars-per-target-host/14929)

<div class="topic-metadata">

**Author:** [@Martin\_Bozic](https://forum.ansible.com/u/Martin_Bozic)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 3:08pm UTC](https://forum.ansible.com/t/delegated-cronjobs-with-time-vars-per-target-host/14929 "2014-04-04T15:08:13Z")

</div>

Hi, I want to dynamically every new host to the backup server with rsnapshot. I have no problems putting SSH keys on backup target hosts and putting a template and exclude config for the target host into /etc/rsnapshot.…

---

## [Can ansible do dshbak-like output?](https://forum.ansible.com/t/can-ansible-do-dshbak-like-output/13964)

<div class="topic-metadata">

**Author:** [@jason1](https://forum.ansible.com/u/jason1)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 3:06pm UTC](https://forum.ansible.com/t/can-ansible-do-dshbak-like-output/13964 "2014-04-04T15:06:27Z")

</div>

Hello, I use “ansible -m shell” quite a bit. I would like ansible to not show me the output multiple times if it is identical on several machines. The dshbak tool for pdsh \[0\] and clush -b from clustershell \[1\] are exam…

---

## [Another way to set the mysql root password](https://forum.ansible.com/t/another-way-to-set-the-mysql-root-password/14905)

<div class="topic-metadata">

**Author:** [@Patrick\_Ogenstad](https://forum.ansible.com/u/Patrick_Ogenstad)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 1:55pm UTC](https://forum.ansible.com/t/another-way-to-set-the-mysql-root-password/14905 "2014-04-04T13:55:42Z")

</div>

I’ve just gotten started with Ansible. I must say it’s ridiculously simple. :slight\_smile: I’ve created a few playbooks and was setting up mysql. The module documentation mentions editing ~/.my.cnf and some links on the…

---

## [generate ascii graph of topology based on inventory](https://forum.ansible.com/t/generate-ascii-graph-of-topology-based-on-inventory/14669)

<div class="topic-metadata">

**Author:** [@Trevor\_Hartman](https://forum.ansible.com/u/Trevor_Hartman)\
**Replies:** 32\
**Last updated:** [April 4, 2014, 7:07am UTC](https://forum.ansible.com/t/generate-ascii-graph-of-topology-based-on-inventory/14669 "2014-04-04T07:07:04Z")

</div>

I think it’d be useful/interesting to generate an ascii graph of topology based on the configured inventory. Assuming this doesn’t exist already, if I contributed this feature, what are the chances it’d be accepted?

---

## [Add vars\_prompt: to pause module](https://forum.ansible.com/t/add-vars-prompt-to-pause-module/13556)

<div class="topic-metadata">

**Author:** [@Javier\_Candeira](https://forum.ansible.com/u/Javier_Candeira)\
**Replies:** 5\
**Last updated:** [April 3, 2014, 10:23pm UTC](https://forum.ansible.com/t/add-vars-prompt-to-pause-module/13556 "2014-04-03T22:23:44Z")

</div>

I was about to open an issue that the prompt to vars\_prompt did not interpolate my variables. Then, after doing a couple more tests, I realised it is because vars\_prompt runs very early, before even setup does. There…

---

## [How do I stage a configuration change?](https://forum.ansible.com/t/how-do-i-stage-a-configuration-change/14909)

<div class="topic-metadata">

**Author:** [@Alex\_King](https://forum.ansible.com/u/Alex_King)\
**Replies:** 3\
**Last updated:** [April 3, 2014, 10:14pm UTC](https://forum.ansible.com/t/how-do-i-stage-a-configuration-change/14909 "2014-04-03T22:14:45Z")

</div>

Hi, I’m new to ansible but liking what I see so far. I’m using it to configure a bunch of machines acting as routers across a region, and I like the model so far. Now I’m trying to set up a couple of machines as a stagi…

---

## [Facts Broken EC2 hostname Changed Format](https://forum.ansible.com/t/facts-broken-ec2-hostname-changed-format/14928)

<div class="topic-metadata">

**Author:** [@Demetri\_Mouratis](https://forum.ansible.com/u/Demetri_Mouratis)\
**Replies:** 3\
**Last updated:** [April 3, 2014, 10:09pm UTC](https://forum.ansible.com/t/facts-broken-ec2-hostname-changed-format/14928 "2014-04-03T22:09:39Z")

</div>

I have been using Peter Sankauskas’s excellent netflixoss-ansible repo successfully for the past few months. Starting sometime yesterday, the ansible-playbook invocations started failing with the following error: TASK: …

---

## [Authentication or permission failure](https://forum.ansible.com/t/authentication-or-permission-failure/14927)

<div class="topic-metadata">

**Author:** [@Nicolas\_Rodriguez](https://forum.ansible.com/u/Nicolas_Rodriguez)\
**Replies:** 1\
**Last updated:** [April 3, 2014, 10:08pm UTC](https://forum.ansible.com/t/authentication-or-permission-failure/14927 "2014-04-03T22:08:47Z")

</div>

Hi! I’ve updated Ansible from 1.4.4 to 1.5.4 and now I’ve got this new error : \` fatal: \[xxx.xxx.xxx\] =\> Authentication or permission failure. In some cases, you may have been able to authenticate and did not have p…

---

## [provisioning attempts on VPS and VirtualBox (vagrant) Ubuntu distros leads to different results](https://forum.ansible.com/t/provisioning-attempts-on-vps-and-virtualbox-vagrant-ubuntu-distros-leads-to-different-results/14906)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 2\
**Last updated:** [April 3, 2014, 7:19pm UTC](https://forum.ansible.com/t/provisioning-attempts-on-vps-and-virtualbox-vagrant-ubuntu-distros-leads-to-different-results/14906 "2014-04-03T19:19:08Z")

</div>

I’m experimenting with Ansible (1.5) on VirtualBox (using Vagrant) and on a VPS. For this, I’ve been using a role from Ansible Galaxy (sgmac.rbenv - galaxy.ansible.com/list#/roles/335.) The role installs without error o…

---

## [Deleting files based on a name pattern](https://forum.ansible.com/t/deleting-files-based-on-a-name-pattern/14921)

<div class="topic-metadata">

**Author:** [@James\_Carroll](https://forum.ansible.com/u/James_Carroll)\
**Replies:** 3\
**Last updated:** [April 3, 2014, 5:45pm UTC](https://forum.ansible.com/t/deleting-files-based-on-a-name-pattern/14921 "2014-04-03T17:45:01Z")

</div>

I’m trying to clear a directory with certain file names based on a pattern and it doesn’t seem to work: name: Remove any extant jars file: name=“{{app\_home}}/server/deploy/{{item}}” state=absent with\_items: “token.ja…

---

## [Improved bash modules support](https://forum.ansible.com/t/improved-bash-modules-support/14886)

<div class="topic-metadata">

**Author:** [@Guy\_Sabourin](https://forum.ansible.com/u/Guy_Sabourin)\
**Replies:** 6\
**Last updated:** [April 3, 2014, 4:58pm UTC](https://forum.ansible.com/t/improved-bash-modules-support/14886 "2014-04-03T16:58:42Z")

</div>

In order to appeal to sysadmins that really want modules in bash instead of python, I made some local changes to ansible to improve bash support. Because these changes are working out well I’d like to share them with the…

---

## [What is the best way to run a playbook after provisioning?](https://forum.ansible.com/t/what-is-the-best-way-to-run-a-playbook-after-provisioning/14930)

<div class="topic-metadata">

**Author:** [@Michael\_Lieberman](https://forum.ansible.com/u/Michael_Lieberman)\
**Replies:** 1\
**Last updated:** [April 3, 2014, 4:51pm UTC](https://forum.ansible.com/t/what-is-the-best-way-to-run-a-playbook-after-provisioning/14930 "2014-04-03T16:51:26Z")

</div>

I have a provision playbook: https://gist.github.com/mlieberman85/c144fcc384cfcdc992d8 and the last line of it doesn’t work because roles can’t be variables I guess. Also there’s no way to conditionally include playbook…

---

## [Run role based on local facts - if variable is not defined.](https://forum.ansible.com/t/run-role-based-on-local-facts-if-variable-is-not-defined/14917)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 6\
**Last updated:** [April 3, 2014, 3:01pm UTC](https://forum.ansible.com/t/run-role-based-on-local-facts-if-variable-is-not-defined/14917 "2014-04-03T15:01:16Z")

</div>

Good morning. I am trying using local facts for tracking version of the role, and run this role only if version increased (version kept locally within role comparing with version from local fatcs). So this is how is wo…

---

## [Different group vars based on the inventory, aka staging vs prod](https://forum.ansible.com/t/different-group-vars-based-on-the-inventory-aka-staging-vs-prod/14924)

<div class="topic-metadata">

**Author:** [@Kalman\_Speier](https://forum.ansible.com/u/Kalman_Speier)\
**Replies:** 6\
**Last updated:** [April 3, 2014, 1:54pm UTC](https://forum.ansible.com/t/different-group-vars-based-on-the-inventory-aka-staging-vs-prod/14924 "2014-04-03T13:54:27Z")

</div>

Hi, I have a repository with the same structure as the best practices in the docs, with two inventory files (staging and production). My question is that how can I control the differences between those environments (st…

---

## [Openstack modules](https://forum.ansible.com/t/openstack-modules/14573)

<div class="topic-metadata">

**Author:** [@Koert\_van\_der\_Veer](https://forum.ansible.com/u/Koert_van_der_Veer)\
**Replies:** 16\
**Last updated:** [April 3, 2014, 1:16pm UTC](https://forum.ansible.com/t/openstack-modules/14573 "2014-04-03T13:16:14Z")

</div>

I’d like to overhaul the openstack modules, fixing bugs, adding features and making them easier to use. Before I do so, however, I’d like to discuss my proposed changes so they don’t conflict with existing roadmaps (if a…

---

## [Problem with the ec2\_tag module](https://forum.ansible.com/t/problem-with-the-ec2-tag-module/14923)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 2\
**Last updated:** [April 2, 2014, 11:36pm UTC](https://forum.ansible.com/t/problem-with-the-ec2-tag-module/14923 "2014-04-02T23:36:27Z")

</div>

I’m having trouble with boto and the ec2\_tags module I’m hoping someone will know what is up. I’m spinning up an ec2 instance and then immediately calling the ec2\_facts and ec2\_tags to grab data to configure the instan…

---

## [dealing with Redis and it's rewritten configuration files](https://forum.ansible.com/t/dealing-with-redis-and-its-rewritten-configuration-files/14919)

<div class="topic-metadata">

**Author:** [@Bryan\_Larsen](https://forum.ansible.com/u/Bryan_Larsen)\
**Replies:** 3\
**Last updated:** [April 2, 2014, 10:56pm UTC](https://forum.ansible.com/t/dealing-with-redis-and-its-rewritten-configuration-files/14919 "2014-04-02T22:56:09Z")

</div>

How do people generally set up Redis through ansible? Right now we’re using the fairly standard approach of templating the configuration files, and using a notify handler to restart redis whenever the configuration file…

---

## [mysql\_user priv problem](https://forum.ansible.com/t/mysql-user-priv-problem/14916)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 4\
**Last updated:** [April 2, 2014, 9:28pm UTC](https://forum.ansible.com/t/mysql-user-priv-problem/14916 "2014-04-02T21:28:37Z")

</div>

Hello, I have a task that reads user and db and grants permisions on specific db for specific user. https://gist.github.com/markotitel/9931850 Problem is that only last DB from list is granted for specific user. I ha…

---

## [GPG support in ansible-vault](https://forum.ansible.com/t/gpg-support-in-ansible-vault/14806)

<div class="topic-metadata">

**Author:** [@Sam\_Wilson](https://forum.ansible.com/u/Sam_Wilson)\
**Replies:** 6\
**Last updated:** [April 2, 2014, 8:35pm UTC](https://forum.ansible.com/t/gpg-support-in-ansible-vault/14806 "2014-04-02T20:35:18Z")

</div>

Hi list! After seeing the 1.5 release of ansible-vault I immediately wanted it to support GPG so that we can avoid sharing a pre-shared key amongst admins and instead use the existing GPG keys. As such I have spent a f…

---

## [Best way to debug developing ansible modules](https://forum.ansible.com/t/best-way-to-debug-developing-ansible-modules/14925)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 8:26pm UTC](https://forum.ansible.com/t/best-way-to-debug-developing-ansible-modules/14925 "2014-04-02T20:26:47Z")

</div>

Hi all, I’m relatively new to ansible though I have been working on the nova\_compute module and trying to try some ideas that I want to implement and have been trying to find the best way to debug code. Probably not the…

---

## [Distro specific integration tests](https://forum.ansible.com/t/distro-specific-integration-tests/14926)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 8:21pm UTC](https://forum.ansible.com/t/distro-specific-integration-tests/14926 "2014-04-02T20:21:48Z")

</div>

Hi, I was going to put together some tests for the new debconf module. These will be Debian/Ubuntu specific. Should I put them in the non-destructive integration tests and make them skip if the distro isn’t Debian base…

---

## [ssh\_args as group\_vars?](https://forum.ansible.com/t/ssh-args-as-group-vars/14912)

<div class="topic-metadata">

**Author:** [@Tobias\_Wolter](https://forum.ansible.com/u/Tobias_Wolter)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 8:05pm UTC](https://forum.ansible.com/t/ssh-args-as-group-vars/14912 "2014-04-02T20:05:39Z")

</div>

Hey there, does someone know if it’s possible to define ssh\_args as a group\_var or something similar? The issue I’m currently facing is that I want to selectively enable SSH agent forwarding, without maintaining any a…

---

## [Tagging a newly created VPC](https://forum.ansible.com/t/tagging-a-newly-created-vpc/14915)

<div class="topic-metadata">

**Author:** [@Chinmaya\_Patanaik](https://forum.ansible.com/u/Chinmaya_Patanaik)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 5:06pm UTC](https://forum.ansible.com/t/tagging-a-newly-created-vpc/14915 "2014-04-02T17:06:03Z")

</div>

Hi, I created a vpc using ec2\_vpc module. Now after the VPC is being created, I would like to tag it using ec2\_tag module.

---

## [Git module, can prompt for entering password ?](https://forum.ansible.com/t/git-module-can-prompt-for-entering-password/14914)

<div class="topic-metadata">

**Author:** [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 3:50pm UTC](https://forum.ansible.com/t/git-module-can-prompt-for-entering-password/14914 "2014-04-02T15:50:26Z")

</div>

Hi, For security issue, I want to enter password when clone git repository. Like -k parameters for ansible-playbook command, is it possible? Thanks, Linbo

---

## [how to refactor a play consisting of multiple roles into a single role?](https://forum.ansible.com/t/how-to-refactor-a-play-consisting-of-multiple-roles-into-a-single-role/14920)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 3:46pm UTC](https://forum.ansible.com/t/how-to-refactor-a-play-consisting-of-multiple-roles-into-a-single-role/14920 "2014-04-02T15:46:45Z")

</div>

I’d like to convert a playbook consisting of several (3) roles into a role (the playbook: github.com/leucos/ansible-rbenv-playbook). It seems odd that I would flatten the several roles back into plays, but I haven’t see…

---

## [Ansible 1.5.4 Security Update](https://forum.ansible.com/t/ansible-1-5-4-security-update/14910)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [April 2, 2014, 2:55pm UTC](https://forum.ansible.com/t/ansible-1-5-4-security-update/14910 "2014-04-02T14:55:35Z")

</div>

Today we have released Ansible 1.5.4, which contains a security fix unrelated to previous updates. This fix increases the security of certain strings evaluated by Ansible, which could possibly be forced in some scenarios…

---

## [FYI on Ubuntu 14.04 and synchronize module](https://forum.ansible.com/t/fyi-on-ubuntu-14-04-and-synchronize-module/14898)

<div class="topic-metadata">

**Author:** [@Simon\_Green](https://forum.ansible.com/u/Simon_Green)\
**Replies:** 3\
**Last updated:** [April 2, 2014, 12:29pm UTC](https://forum.ansible.com/t/fyi-on-ubuntu-14-04-and-synchronize-module/14898 "2014-04-02T12:29:28Z")

</div>

rsync 3.1.0 on Ubuntu 14.04 has a bug that causes an error when coming from rsync 3.0.9 (common on all versions of Ubuntu prior to 14.04)

---

## [Indempotency goal hard to reach, can this be done with dict, lists, nested lists?](https://forum.ansible.com/t/indempotency-goal-hard-to-reach-can-this-be-done-with-dict-lists-nested-lists/14913)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 0\
**Last updated:** [April 2, 2014, 7:56am UTC](https://forum.ansible.com/t/indempotency-goal-hard-to-reach-can-this-be-done-with-dict-lists-nested-lists/14913 "2014-04-02T07:56:36Z")

</div>

Hi I came into a problem while I was trying to make this role work. name: add db mysql\_db: name={{ item.user }} state=present with\_items: users name: add user mysql\_user: name={{ item.user }} host=localhost pas…

---

## [Working with dicts](https://forum.ansible.com/t/working-with-dicts/14902)

<div class="topic-metadata">

**Author:** [@Premanand\_Chandrasek](https://forum.ansible.com/u/Premanand_Chandrasek)\
**Replies:** 2\
**Last updated:** [April 2, 2014, 1:51am UTC](https://forum.ansible.com/t/working-with-dicts/14902 "2014-04-02T01:51:47Z")

</div>

Hello, I am an ansible newbie and I am trying to understand how to work with dicts. The following playbook produces a syntax error, and we’re not sure why: ansible-playbook --version ansible-playbook 1.5.3 ansible-p…

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

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