# Latest

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

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

**Page:** 980

---

## [\#6796 - fix for mysql\_db import and dumps.](https://forum.ansible.com/t/6796-fix-for-mysql-db-import-and-dumps/14911)

<div class="topic-metadata">

**Author:** [@Chao\_Luan](https://forum.ansible.com/u/Chao_Luan)\
**Replies:** 0\
**Last updated:** [April 1, 2014, 10:55pm UTC](https://forum.ansible.com/t/6796-fix-for-mysql-db-import-and-dumps/14911 "2014-04-01T22:55:49Z")

</div>

Hi, Ran into an issue with the latest 1.5.3 ansible release where the mysql\_db module was failing for database dumps and imports. After some head scratching, I found that the password was being quoted twice if I was us…

---

## [How to get the substring to the right of the last forward slash (/) of a string ?](https://forum.ansible.com/t/how-to-get-the-substring-to-the-right-of-the-last-forward-slash-of-a-string/14907)

<div class="topic-metadata">

**Author:** [@hindenburg](https://forum.ansible.com/u/hindenburg)\
**Replies:** 2\
**Last updated:** [April 1, 2014, 8:15pm UTC](https://forum.ansible.com/t/how-to-get-the-substring-to-the-right-of-the-last-forward-slash-of-a-string/14907 "2014-04-01T20:15:47Z")

</div>

I’m parsing a variable and am trying to see if it’s possible to get the substring to the right of the last forward slash of a string. http://docs.ansible.com/playbooks\_variables.html#jinja2-filters http://jinja.pocoo.o…

---

## [apt returns msg: No package matching...](https://forum.ansible.com/t/apt-returns-msg-no-package-matching/14908)

<div class="topic-metadata">

**Author:** [@sampsont](https://forum.ansible.com/u/sampsont)\
**Replies:** 0\
**Last updated:** [April 1, 2014, 8:15pm UTC](https://forum.ansible.com/t/apt-returns-msg-no-package-matching/14908 "2014-04-01T20:15:04Z")

</div>

The apt module returns: msg: No package matching ‘nypa-comtrade-mod’ is available when I try to install a .deb package that I made. Here’s the playbook: — - hosts: server1 sudo: True user: dfr remote\_user: dfr …

---

## [Using when and with\_items](https://forum.ansible.com/t/using-when-and-with-items/14903)

<div class="topic-metadata">

**Author:** [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Replies:** 2\
**Last updated:** [April 1, 2014, 7:33pm UTC](https://forum.ansible.com/t/using-when-and-with-items/14903 "2014-04-01T19:33:47Z")

</div>

I see in the documentation then combining when with with\_items will process the when statement for each item separately. Does this mean I cannot put a generic when statement on a task that has with\_items? I’m trying to …

---

## [Checking folder exists](https://forum.ansible.com/t/checking-folder-exists/14893)

<div class="topic-metadata">

**Author:** [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Replies:** 7\
**Last updated:** [April 1, 2014, 5:10pm UTC](https://forum.ansible.com/t/checking-folder-exists/14893 "2014-04-01T17:10:09Z")

</div>

New to ansible. Trying to create a playbook to do the following: 1 Checks if a user exists and if not create 2 Check if /home/user/.ssh exists and if not create it 3 Copy ssh keys for the user Having a problem with …

---

## [roles and compound vars](https://forum.ansible.com/t/roles-and-compound-vars/14830)

<div class="topic-metadata">

**Author:** [@Adam\_Bozanich](https://forum.ansible.com/u/Adam_Bozanich)\
**Replies:** 3\
**Last updated:** [April 1, 2014, 1:48pm UTC](https://forum.ansible.com/t/roles-and-compound-vars/14830 "2014-04-01T13:48:50Z")

</div>

I’m having trouble figuring out how to pass non-string parameters to roles. I’ve tried a few different methods, with the most recent using “vars\_files” in the play: https://github.com/boz/ansible-deploy/blob/multiplay/…

---

## [Import Error with custom Python module](https://forum.ansible.com/t/import-error-with-custom-python-module/14882)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 2\
**Last updated:** [April 1, 2014, 12:21pm UTC](https://forum.ansible.com/t/import-error-with-custom-python-module/14882 "2014-04-01T12:21:20Z")

</div>

Hi All, I keep getting an “ImportError: No module named” when I try and run a playbook using a custom python module (that is trying to import a 3rd party python package). Few things: importing the 3rd party package w…

---

## [Creating custom module](https://forum.ansible.com/t/creating-custom-module/14878)

<div class="topic-metadata">

**Author:** [@Jason\_Edelman](https://forum.ansible.com/u/Jason_Edelman)\
**Replies:** 2\
**Last updated:** [April 1, 2014, 12:20pm UTC](https://forum.ansible.com/t/creating-custom-module/14878 "2014-04-01T12:20:08Z")

</div>

Hi All, New guy to Ansible here… New python module called ‘pinger\_test.py’ and put it in ./ansible/library. Ran ‘make webdocs’ while in ./ansible Playbook is:

---

## [ACL - Destination not writable](https://forum.ansible.com/t/acl-destination-not-writable/14904)

<div class="topic-metadata">

**Author:** [@Khuong\_Dinh\_Pham](https://forum.ansible.com/u/Khuong_Dinh_Pham)\
**Replies:** 0\
**Last updated:** [April 1, 2014, 9:20am UTC](https://forum.ansible.com/t/acl-destination-not-writable/14904 "2014-04-01T09:20:45Z")

</div>

Hi We want to modify /etc/haproxy/haproxy.cfg and we have set following permission: setfacl -m u:xxx:rwx /etc/haproxy/haproxy.cfg If we login as xxx we can fine edit /etc/haproxy/haproxy.cfg but when run from Ansible …

---

## [Running tasks in sequence on different hosts](https://forum.ansible.com/t/running-tasks-in-sequence-on-different-hosts/14872)

<div class="topic-metadata">

**Author:** [@Henning\_Juva](https://forum.ansible.com/u/Henning_Juva)\
**Replies:** 1\
**Last updated:** [March 31, 2014, 11:49pm UTC](https://forum.ansible.com/t/running-tasks-in-sequence-on-different-hosts/14872 "2014-03-31T23:49:13Z")

</div>

Hi, First thanks for a wonderful tool. Best new technology I’ve used since git. We currently manage about 20 machines using a role based setup described in best practices. So far everything has been easy and intuitive …

---

## [Ansible docs down? Any mirrors?](https://forum.ansible.com/t/ansible-docs-down-any-mirrors/14900)

<div class="topic-metadata">

**Author:** [@Jason\_Lefkowitz](https://forum.ansible.com/u/Jason_Lefkowitz)\
**Replies:** 3\
**Last updated:** [March 31, 2014, 8:42pm UTC](https://forum.ansible.com/t/ansible-docs-down-any-mirrors/14900 "2014-03-31T20:42:09Z")

</div>

Hey all… I’ve been trying to access the documentation at docs.ansible.com for a couple of hours now, and all I get is “Website is offline” error messages from CloudFlare. Have the docs moved to a new address or somethi…

---

## [Enabling/starting services under OpenWRT](https://forum.ansible.com/t/enabling-starting-services-under-openwrt/14890)

<div class="topic-metadata">

**Author:** [@Adam\_Nielsen](https://forum.ansible.com/u/Adam_Nielsen)\
**Replies:** 1\
**Last updated:** [March 31, 2014, 8:27pm UTC](https://forum.ansible.com/t/enabling-starting-services-under-openwrt/14890 "2014-03-31T20:27:35Z")

</div>

Hi all, I’m new to Ansible, so I’m testing it out by configuring a new router running OpenWRT. Unfortunately I have gotten stuck pretty early in the process! I have created a playbook to install the BIND daemon and sta…

---

## [feature requests for Galaxy](https://forum.ansible.com/t/feature-requests-for-galaxy/14877)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 1\
**Last updated:** [March 31, 2014, 7:57pm UTC](https://forum.ansible.com/t/feature-requests-for-galaxy/14877 "2014-03-31T19:57:26Z")

</div>

Hey all, I’ve been adding some roles to galaxy, and I’d like to request some features: I would like to have the roles sorted by alphabet and/or add date on the “my roles” page I would like to be able to filter/sea…

---

## [Restart SSH connection during play](https://forum.ansible.com/t/restart-ssh-connection-during-play/14901)

<div class="topic-metadata">

**Author:** [@Michael\_Schultz](https://forum.ansible.com/u/Michael_Schultz)\
**Replies:** 0\
**Last updated:** [March 31, 2014, 7:35pm UTC](https://forum.ansible.com/t/restart-ssh-connection-during-play/14901 "2014-03-31T19:35:31Z")

</div>

Hello, I have a task in a play that appends a group to the user running the playbook. For example, ubuntu user is running the play and does a task like: name: Append user group sudo: yes user: name=“ubuntu” append…

---

## [Aborting playbook execution during rolling updates?](https://forum.ansible.com/t/aborting-playbook-execution-during-rolling-updates/14899)

<div class="topic-metadata">

**Author:** [@Michael\_Mahemoff](https://forum.ansible.com/u/Michael_Mahemoff)\
**Replies:** 2\
**Last updated:** [March 31, 2014, 7:26pm UTC](https://forum.ansible.com/t/aborting-playbook-execution-during-rolling-updates/14899 "2014-03-31T19:26:05Z")

</div>

I have parallel hosts configured with “serial” to ensure rolling updates. But if one fails, I believe the next one will unconditionally still execute, causing the whole cluster to fail. Is there any way to abort the enti…

---

## [Abridged summary of ansible-project@googlegroups.com - 2 updates in 1 topic](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-2-updates-in-1-topic/14894)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 1\
**Last updated:** [March 31, 2014, 7:24pm UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-2-updates-in-1-topic/14894 "2014-03-31T19:24:11Z")

</div>

that is most likely due to an indentation error, or some other yaml problem upstream of your nova\_compute command.

---

## [iterate over disk devices](https://forum.ansible.com/t/iterate-over-disk-devices/14889)

<div class="topic-metadata">

**Author:** [@Filip\_Slunecko](https://forum.ansible.com/u/Filip_Slunecko)\
**Replies:** 4\
**Last updated:** [March 31, 2014, 6:22pm UTC](https://forum.ansible.com/t/iterate-over-disk-devices/14889 "2014-03-31T18:22:57Z")

</div>

Hi all, Is there a way how ti easily iterate over facter\_blockdevices? Example: name: checking disks for failure command: /usr/sbin/smartctl /dev/{{ item }} with\_items: facter\_blockdevices register: smart\_out Fac…

---

## [Special shell for special users on special host %)](https://forum.ansible.com/t/special-shell-for-special-users-on-special-host/14870)

<div class="topic-metadata">

**Author:** [@Petr\_Sukharev](https://forum.ansible.com/u/Petr_Sukharev)\
**Replies:** 3\
**Last updated:** [March 31, 2014, 5:03pm UTC](https://forum.ansible.com/t/special-shell-for-special-users-on-special-host/14870 "2014-03-31T17:03:01Z")

</div>

Hello! I find some issue and cant resolve it by myself. My scenario: 3 users, 4 hosts I add information about users in file vars/all (like login, uid, comment, group and password) and deploy users via role with varia…

---

## [Possible to preserve dependency variables?](https://forum.ansible.com/t/possible-to-preserve-dependency-variables/14895)

<div class="topic-metadata">

**Author:** [@mway](https://forum.ansible.com/u/mway)\
**Replies:** 0\
**Last updated:** [March 31, 2014, 2:55am UTC](https://forum.ansible.com/t/possible-to-preserve-dependency-variables/14895 "2014-03-31T02:55:58Z")

</div>

Not sure if this is considered an edge case, or if there’s a better way to model things (suggestions appreciated). FWIW, I just started using Ansible, so please let me know if there’s a more idiomatic approach. Let’s sa…

---

## [connection=autolocal](https://forum.ansible.com/t/connection-autolocal/14881)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 3\
**Last updated:** [March 30, 2014, 10:18pm UTC](https://forum.ansible.com/t/connection-autolocal/14881 "2014-03-30T22:18:24Z")

</div>

Is it possible to define host in inventory in a way that will use local connection is the name resolves to local address? Is it worth to add connection=autolocal option?

---

## [Very Basic Module](https://forum.ansible.com/t/very-basic-module/14891)

<div class="topic-metadata">

**Author:** [@Craig\_Mason-Jones](https://forum.ansible.com/u/Craig_Mason-Jones)\
**Replies:** 2\
**Last updated:** [March 29, 2014, 3:55pm UTC](https://forum.ansible.com/t/very-basic-module/14891 "2014-03-29T15:55:56Z")

</div>

Hi all, I’m a module developer newbie, so have started trying to write a very small module that will decrypt a file onto a target machine. I began by copying the ‘copy’ module: #!/usr/bin/python -- coding: utf-8 -- im…

---

## [Issue using apt with prefix](https://forum.ansible.com/t/issue-using-apt-with-prefix/14056)

<div class="topic-metadata">

**Author:** [@Patrick\_Heeney](https://forum.ansible.com/u/Patrick_Heeney)\
**Replies:** 4\
**Last updated:** [March 29, 2014, 12:26am UTC](https://forum.ansible.com/t/issue-using-apt-with-prefix/14056 "2014-03-29T00:26:28Z")

</div>

I am using a third party yaml file to load in php packages (the yaml file can't really change) using a prefix on apt. # doesn't work - name: PHP | MAIN | Install php packages - intl1 apt: \> pkg=php5-{{ item }}…

---

## [Would you have a Prod & Non-Prod Ansible Tower?](https://forum.ansible.com/t/would-you-have-a-prod-non-prod-ansible-tower/14887)

<div class="topic-metadata">

**Author:** [@Melissa\_Tan](https://forum.ansible.com/u/Melissa_Tan)\
**Replies:** 1\
**Last updated:** [March 28, 2014, 10:37pm UTC](https://forum.ansible.com/t/would-you-have-a-prod-non-prod-ansible-tower/14887 "2014-03-28T22:37:46Z")

</div>

I’m curious about what kind of setups are out there for Ansible Tower. Does anyone have a non-prod Ansible Tower and a prod Ansible Tower? Would you recommend or advise against it? I was thinking this might be a good i…

---

## [Updating Tags in EC2 using module ec2\_tags is not working](https://forum.ansible.com/t/updating-tags-in-ec2-using-module-ec2-tags-is-not-working/14888)

<div class="topic-metadata">

**Author:** [@Bob\_Brown1](https://forum.ansible.com/u/Bob_Brown1)\
**Replies:** 0\
**Last updated:** [March 28, 2014, 10:35pm UTC](https://forum.ansible.com/t/updating-tags-in-ec2-using-module-ec2-tags-is-not-working/14888 "2014-03-28T22:35:29Z")

</div>

Trying to update tags where the tags are missing on AWS ec2 instances My Playbook looks like this: name: Add a Tag hosts: foo tasks: register: ec2 local\_action: ec2\_tag resource={{ item.id }} region=us-east-1 stat…

---

## [Rebooting the server](https://forum.ansible.com/t/rebooting-the-server/14885)

<div class="topic-metadata">

**Author:** [@Rafal\_Hajduk](https://forum.ansible.com/u/Rafal_Hajduk)\
**Replies:** 3\
**Last updated:** [March 28, 2014, 3:53pm UTC](https://forum.ansible.com/t/rebooting-the-server/14885 "2014-03-28T15:53:42Z")

</div>

Hello I want to reboot my server and continue with other instructions. My code is: \` name: reboot command: reboot notify: wait until rebooted name: wait until rebooted local\_action: wait\_for host={{ansible\_…

---

## [How to execute a task only if a list of hosts haven't failed yet](https://forum.ansible.com/t/how-to-execute-a-task-only-if-a-list-of-hosts-havent-failed-yet/14884)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 0\
**Last updated:** [March 28, 2014, 1:37pm UTC](https://forum.ansible.com/t/how-to-execute-a-task-only-if-a-list-of-hosts-havent-failed-yet/14884 "2014-03-28T13:37:53Z")

</div>

In out common role we have a task which creates a script from a template to create ssh tunnel between a certain number of hosts in the inventory. The template looks like this: \` {% for host in ssh\_tunnel %} {% if host…

---

## [ec2\_elb module dropped host from ELB pool w/o reporting a change?](https://forum.ansible.com/t/ec2-elb-module-dropped-host-from-elb-pool-w-o-reporting-a-change/14880)

<div class="topic-metadata">

**Author:** [@C\_S](https://forum.ansible.com/u/C_S)\
**Replies:** 1\
**Last updated:** [March 28, 2014, 1:36pm UTC](https://forum.ansible.com/t/ec2-elb-module-dropped-host-from-elb-pool-w-o-reporting-a-change/14880 "2014-03-28T13:36:29Z")

</div>

Hi folks, For some reason a single host in an ELB pool was reported by the ec2\_elb module as not belong to any ELBs, was dropped from the ELB, however since “changed" was False, the playbook never added it back and caus…

---

## [file in vault (ssh private key)](https://forum.ansible.com/t/file-in-vault-ssh-private-key/14709)

<div class="topic-metadata">

**Author:** [@Jeremy\_Schneider](https://forum.ansible.com/u/Jeremy_Schneider)\
**Replies:** 12\
**Last updated:** [March 28, 2014, 12:25pm UTC](https://forum.ansible.com/t/file-in-vault-ssh-private-key/14709 "2014-03-28T12:25:45Z")

</div>

reading through vault docs, appears that it’s designed to store variable contents. maybe this should be obvious to me but it isn’t - so maybe someone can point me in the right direction. recommendation for the best way t…

---

## [Last round of testing for "-c ssh\_alt" before promoting to the new "-c ssh"](https://forum.ansible.com/t/last-round-of-testing-for-c-ssh-alt-before-promoting-to-the-new-c-ssh/14267)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 15\
**Last updated:** [March 28, 2014, 12:24pm UTC](https://forum.ansible.com/t/last-round-of-testing-for-c-ssh-alt-before-promoting-to-the-new-c-ssh/14267 "2014-03-28T12:24:58Z")

</div>

The “ssh\_alt” connection type as implemented by Jerome Wagner greatly reduces the amount of operations performed over connections by not transferring modules as files for many cases. It’s pretty impressive. It can curre…

---

## [why is verbose output jsonified by default?](https://forum.ansible.com/t/why-is-verbose-output-jsonified-by-default/14883)

<div class="topic-metadata">

**Author:** [@Cliffano\_Subagio](https://forum.ansible.com/u/Cliffano_Subagio)\
**Replies:** 0\
**Last updated:** [March 28, 2014, 12:15pm UTC](https://forum.ansible.com/t/why-is-verbose-output-jsonified-by-default/14883 "2014-03-28T12:15:16Z")

</div>

Hi, Is there any particular reason why ansible playbook verbose output is jsonified by default? Whenever I set --verbose, the intention is for human to check that output and the default json dump is not readable specia…

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

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