# Latest

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

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

**Page:** 1033

---

## [mysql\_db - importing .sql](https://forum.ansible.com/t/mysql-db-importing-sql/13228)

<div class="topic-metadata">

**Author:** [@Iliya\_Strakovich](https://forum.ansible.com/u/Iliya_Strakovich)\
**Replies:** 1\
**Last updated:** [July 31, 2013, 6:42pm UTC](https://forum.ansible.com/t/mysql-db-importing-sql/13228 "2013-07-31T18:42:09Z")

</div>

Hi, I need your help. I’m trying to restore database from sql with mysql\_db module (python-mysqldb: 1.2.3-1ubuntu0.1) Previously I removed all files in /var/lib/mysql/\* and recreate database with mysql\_install\_db so…

---

## [SSH Tunneling](https://forum.ansible.com/t/ssh-tunneling/11342)

<div class="topic-metadata">

**Author:** [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Replies:** 4\
**Last updated:** [July 31, 2013, 5:38pm UTC](https://forum.ansible.com/t/ssh-tunneling/11342 "2013-07-31T17:38:37Z")

</div>

Hi I ssh tunneling possible in ansible? Could I get ansible to use my .ssh/config settings? Regards

---

## [Multiple playbooks or multiple roles?](https://forum.ansible.com/t/multiple-playbooks-or-multiple-roles/13230)

<div class="topic-metadata">

**Author:** [@ryanchan404](https://forum.ansible.com/u/ryanchan404)\
**Replies:** 0\
**Last updated:** [July 31, 2013, 4:11pm UTC](https://forum.ansible.com/t/multiple-playbooks-or-multiple-roles/13230 "2013-07-31T16:11:06Z")

</div>

Hi, I am new to Ansible From the examples (https://github.com/ansible/ansible-examples/tree/master/lamp\_simple/roles) sound like you encourage organize playbook by application type, but why not by server features? e.g…

---

## [Two issue when configuring ansible](https://forum.ansible.com/t/two-issue-when-configuring-ansible/13200)

<div class="topic-metadata">

**Author:** [@Ethan\_Zhan](https://forum.ansible.com/u/Ethan_Zhan)\
**Replies:** 2\
**Last updated:** [July 31, 2013, 1:57am UTC](https://forum.ansible.com/t/two-issue-when-configuring-ansible/13200 "2013-07-31T01:57:23Z")

</div>

Hi, I met two issues when I’m trying to configure my system, could you help take a look ? When I try to get system info by using “-m setup” on some legacy boxes which running RHEL 4 OS on them, the following error occ…

---

## [accessing inventory path from playbook](https://forum.ansible.com/t/accessing-inventory-path-from-playbook/13226)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 2\
**Last updated:** [July 30, 2013, 10:18pm UTC](https://forum.ansible.com/t/accessing-inventory-path-from-playbook/13226 "2013-07-30T22:18:34Z")

</div>

Is there a way to get the path to the inventory from within a playbook? Some special variable perhaps? Thanks, James

---

## [module strangeness](https://forum.ansible.com/t/module-strangeness/13223)

<div class="topic-metadata">

**Author:** [@David\_Whiteside1](https://forum.ansible.com/u/David_Whiteside1)\
**Replies:** 1\
**Last updated:** [July 30, 2013, 9:54pm UTC](https://forum.ansible.com/t/module-strangeness/13223 "2013-07-30T21:54:28Z")

</div>

It started with trying to write a module based on the copy module. Let me give an example of the issue I am seeing. cp -p /usr/share/ansible/files/copy /usr/share/ansible/files/davidcopy cat site.yml

---

## [Reverse ssh tunnel](https://forum.ansible.com/t/reverse-ssh-tunnel/13225)

<div class="topic-metadata">

**Author:** [@Oded\_Ovdat](https://forum.ansible.com/u/Oded_Ovdat)\
**Replies:** 1\
**Last updated:** [July 30, 2013, 9:50pm UTC](https://forum.ansible.com/t/reverse-ssh-tunnel/13225 "2013-07-30T21:50:01Z")

</div>

Hi all, Im new to ansible, I’ve been trying to remotely run some scripts on my linux server my remote srv is connected via reverse SSH tunnel, so to remotely connect to it I run “ssh admin@localhost -p ” but I simply …

---

## [lineinfile error.](https://forum.ansible.com/t/lineinfile-error/13224)

<div class="topic-metadata">

**Author:** [@Kevin\_Montuori](https://forum.ansible.com/u/Kevin_Montuori)\
**Replies:** 3\
**Last updated:** [July 30, 2013, 9:05pm UTC](https://forum.ansible.com/t/lineinfile-error/13224 "2013-07-30T21:05:12Z")

</div>

Hi -- There's a bug either in the YAML parser or the lineinfile module (or the documentation), I'm not sure exactly what the problem is. This example from the docs: - lineinfile: dest=/etc/sudoers state=present re…

---

## [Host o](https://forum.ansible.com/t/host-o/13221)

<div class="topic-metadata">

**Author:** [@bjunity](https://forum.ansible.com/u/bjunity)\
**Replies:** 5\
**Last updated:** [July 30, 2013, 8:34pm UTC](https://forum.ansible.com/t/host-o/13221 "2013-07-30T20:34:15Z")

</div>

Hi, i’ve a question regarding the following situation. We’ve many mongodb sharding/repl - clusters. Here’s an example: ansible hosts file: (serial: 1 in playbooks) . . \[mongo\_data\_servers\] mg-rs01-arb mg-rs01-b …

---

## [Register ansible\_facts and with\_items usage](https://forum.ansible.com/t/register-ansible-facts-and-with-items-usage/13220)

<div class="topic-metadata">

**Author:** [@Dmitry\_Horbach](https://forum.ansible.com/u/Dmitry_Horbach)\
**Replies:** 4\
**Last updated:** [July 30, 2013, 8:06pm UTC](https://forum.ansible.com/t/register-ansible-facts-and-with-items-usage/13220 "2013-07-30T20:06:30Z")

</div>

Hi All, I’m trying to use custom fact registration in module but found problems when combined it with with\_items results = {} facts = {} results\[‘ansible\_facts’\] = facts facts\[var\] = os.path.exists(name) module.ex…

---

## [more free AnsibleWorks T-shirts, how to get one](https://forum.ansible.com/t/more-free-ansibleworks-t-shirts-how-to-get-one/13219)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [July 30, 2013, 3:23pm UTC](https://forum.ansible.com/t/more-free-ansibleworks-t-shirts-how-to-get-one/13219 "2013-07-30T15:23:58Z")

</div>

Hi everybody, We’ve got another batch of AnsibleWorks T-shirts coming in. Last time these went out to top contributors on the github lists. This time, we’re going to share with people who are helping to share Ansible w…

---

## [Execute notification at their latest occurance](https://forum.ansible.com/t/execute-notification-at-their-latest-occurance/13186)

<div class="topic-metadata">

**Author:** [@Bastian\_Kruger](https://forum.ansible.com/u/Bastian_Kruger)\
**Replies:** 2\
**Last updated:** [July 30, 2013, 8:02am UTC](https://forum.ansible.com/t/execute-notification-at-their-latest-occurance/13186 "2013-07-30T08:02:18Z")

</div>

Lets say I have a playbook, where I want to add a line to the file /etc/auto.master, to mount some new directories, and then do something with the files in one of those directories. So I would probably write something li…

---

## [playbook configuring cron job help](https://forum.ansible.com/t/playbook-configuring-cron-job-help/13212)

<div class="topic-metadata">

**Author:** [@Steven\_Goodliff](https://forum.ansible.com/u/Steven_Goodliff)\
**Replies:** 6\
**Last updated:** [July 30, 2013, 7:48am UTC](https://forum.ansible.com/t/playbook-configuring-cron-job-help/13212 "2013-07-30T07:48:07Z")

</div>

Hi, I’m experimenting with ansible to replace puppet, but i’m very new to it and getting a little stuck with setting up a cron job i have a yaml file like this

---

## [Stumped on ssh not connecting](https://forum.ansible.com/t/stumped-on-ssh-not-connecting/13210)

<div class="topic-metadata">

**Author:** [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Replies:** 4\
**Last updated:** [July 30, 2013, 7:47am UTC](https://forum.ansible.com/t/stumped-on-ssh-not-connecting/13210 "2013-07-30T07:47:09Z")

</div>

Hi List, Somehow, my connections are no longer working: mmaas@xmgtansible:~/playbooks$ ansible xmon\* -m ping -vvvvvvv sudo password: ESTABLISH CONNECTION FOR USER: mmaas on PORT 22 TO xmonopsdb ESTABLISH CONNECTI…

---

## [Ansible NYC User Meetup -- 8/28](https://forum.ansible.com/t/ansible-nyc-user-meetup-8-28/13195)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [July 30, 2013, 3:32am UTC](https://forum.ansible.com/t/ansible-nyc-user-meetup-8-28/13195 "2013-07-30T03:32:14Z")

</div>

Hi all, We’re going to be in New York on 8/28 and would like to get some users together to talk shop and show off some things. Should be pretty fun and informal. Logistics – Time/location still getting figured out a li…

---

## [Failure with ansible local -a "whoami" on Raspberry Pi](https://forum.ansible.com/t/failure-with-ansible-local-a-whoami-on-raspberry-pi/13204)

<div class="topic-metadata">

**Author:** [@Don\_Larson](https://forum.ansible.com/u/Don_Larson)\
**Replies:** 2\
**Last updated:** [July 29, 2013, 11:10pm UTC](https://forum.ansible.com/t/failure-with-ansible-local-a-whoami-on-raspberry-pi/13204 "2013-07-29T23:10:14Z")

</div>

I have the latest OS on my Raspberry Pi and I installed Ansible today on it. Some commands work fine and return proper results as in: ansible -c local -m ping all But this one: ansible local -a “whoami” gives the error…

---

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

<div class="topic-metadata">

**Author:** [@kesten\_broughton1](https://forum.ansible.com/u/kesten_broughton1)\
**Replies:** 11\
**Last updated:** [July 29, 2013, 10:33pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/13198 "2013-07-29T22:33:40Z")

</div>

I’m getting the same type of error trying to run the openstack playbook from a mac 10.8 to a company network server running centOS 6.4. I installed sshpass on both the openstackserver and my mac. I have ssh-keygen 'd o…

---

## [ansible-playbook crash when variable file contains accented characters](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215)

<div class="topic-metadata">

**Author:** [@Pierre\_Thibault](https://forum.ansible.com/u/Pierre_Thibault)\
**Replies:** 3\
**Last updated:** [July 29, 2013, 9:21pm UTC](https://forum.ansible.com/t/ansible-playbook-crash-when-variable-file-contains-accented-characters/13215 "2013-07-29T21:21:58Z")

</div>

Hello, I have a problem with Ansible 1.2.2 when a variable file contains accented characters. Here is the error I have: fatal: \[192.241.148.29\] =\> Traceback (most recent call last): File “/home/pierre/.virtualenvs/an…

---

## [roles with different users](https://forum.ansible.com/t/roles-with-different-users/13214)

<div class="topic-metadata">

**Author:** [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Replies:** 3\
**Last updated:** [July 29, 2013, 6:46pm UTC](https://forum.ansible.com/t/roles-with-different-users/13214 "2013-07-29T18:46:07Z")

</div>

Hello community, I tried to change my setup to use roles now :slight\_smile: But I have a problem and can’t help myself. My main.yml Playbook is like this: hosts: foobar roles: common add\_basic\_software Now the pla…

---

## [Setting the private SSH key from variables in a play?](https://forum.ansible.com/t/setting-the-private-ssh-key-from-variables-in-a-play/13211)

<div class="topic-metadata">

**Author:** [@Mark1](https://forum.ansible.com/u/Mark1)\
**Replies:** 2\
**Last updated:** [July 29, 2013, 2:52pm UTC](https://forum.ansible.com/t/setting-the-private-ssh-key-from-variables-in-a-play/13211 "2013-07-29T14:52:02Z")

</div>

I want to be able to set the path to the private SSH key in a playbook so I don’t need to pass it on the command line all the time. My use-case is having 10+ AWS accounts for dev/test/prod, etc. with separate keys for e…

---

## [Ansible execution model](https://forum.ansible.com/t/ansible-execution-model/13202)

<div class="topic-metadata">

**Author:** [@OT1](https://forum.ansible.com/u/OT1)\
**Replies:** 2\
**Last updated:** [July 29, 2013, 8:51am UTC](https://forum.ansible.com/t/ansible-execution-model/13202 "2013-07-29T08:51:01Z")

</div>

Hello, What’s the execution model of ansible in terms of copying modules/variables to nodes? Does it copy any data, and if so what? Is the data only specific to the individual node, or is the entire set of vars set in…

---

## [Fetch public key of host A and put it in .ssh/authorized\_keys of host B](https://forum.ansible.com/t/fetch-public-key-of-host-a-and-put-it-in-ssh-authorized-keys-of-host-b/13209)

<div class="topic-metadata">

**Author:** [@Javier\_Candeira](https://forum.ansible.com/u/Javier_Candeira)\
**Replies:** 2\
**Last updated:** [July 29, 2013, 8:13am UTC](https://forum.ansible.com/t/fetch-public-key-of-host-a-and-put-it-in-ssh-authorized-keys-of-host-b/13209 "2013-07-29T08:13:38Z")

</div>

Each one of our customers has at least two hosts, A and B. The public ssh key for user foo on A has to be on authorized\_keys of user foo on B. How to ensure this gets done on one run? The jobs are launched in paralle…

---

## [Iterate over hosts in a group with index](https://forum.ansible.com/t/iterate-over-hosts-in-a-group-with-index/13205)

<div class="topic-metadata">

**Author:** [@Matt\_Spaulding](https://forum.ansible.com/u/Matt_Spaulding)\
**Replies:** 4\
**Last updated:** [July 28, 2013, 9:33pm UTC](https://forum.ansible.com/t/iterate-over-hosts-in-a-group-with-index/13205 "2013-07-28T21:33:56Z")

</div>

Hi all, So I’m trying to figure out how I can iterate over the hosts in a group along with an index value. I’m trying to do something like this: name: My Task shell: echo Host Number {{ item }} is {{ groups.mygroup\[i…

---

## [Choose host (localhost) without inventory file](https://forum.ansible.com/t/choose-host-localhost-without-inventory-file/13208)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 1\
**Last updated:** [July 28, 2013, 11:55am UTC](https://forum.ansible.com/t/choose-host-localhost-without-inventory-file/13208 "2013-07-28T11:55:14Z")

</div>

Hi, Is it possible to specify host to run playbook without creating hosts configuration file? Thanks.

---

## [Missing v1.2.2 tag in git](https://forum.ansible.com/t/missing-v1-2-2-tag-in-git/13207)

<div class="topic-metadata">

**Author:** [@Blair\_Zajac](https://forum.ansible.com/u/Blair_Zajac)\
**Replies:** 1\
**Last updated:** [July 27, 2013, 8:23pm UTC](https://forum.ansible.com/t/missing-v1-2-2-tag-in-git/13207 "2013-07-27T20:23:57Z")

</div>

Hello, I see a 1.2.2 tarball at the release directory \[1\] but no tag in git. Can one be added? Thanks, Blair \[1\] http://www.ansibleworks.com/releases/

---

## [EC2 Ansible Module - Multiple Security Groups?](https://forum.ansible.com/t/ec2-ansible-module-multiple-security-groups/13203)

<div class="topic-metadata">

**Author:** [@Shih\_Oon\_Liong1](https://forum.ansible.com/u/Shih_Oon_Liong1)\
**Replies:** 3\
**Last updated:** [July 27, 2013, 4:48pm UTC](https://forum.ansible.com/t/ec2-ansible-module-multiple-security-groups/13203 "2013-07-27T16:48:52Z")

</div>

Has anyone been able to provision EC2 instances with multiple security groups associated with one instance? When I do something like name: launch local\_action: module: ec2 region: us-west-2 keypair: mykey group\_i…

---

## [when: behaviour changed in 1.3](https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206)

<div class="topic-metadata">

**Author:** [@Frans\_Kuipers](https://forum.ansible.com/u/Frans_Kuipers)\
**Replies:** 1\
**Last updated:** [July 27, 2013, 2:44pm UTC](https://forum.ansible.com/t/when-behaviour-changed-in-1-3/13206 "2013-07-27T14:44:15Z")

</div>

This works in 1.2.2 hosts: lh vars: with\_echo: True tasks: debug: msg=“This works in 1.2.2” when: with\_echo Same playbook in 1.3 gives me TASK: \[debug msg=“This works in 1.2.2”\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Per host vars in inventory script](https://forum.ansible.com/t/per-host-vars-in-inventory-script/13199)

<div class="topic-metadata">

**Author:** [@Victor\_Castell](https://forum.ansible.com/u/Victor_Castell)\
**Replies:** 3\
**Last updated:** [July 26, 2013, 11:21pm UTC](https://forum.ansible.com/t/per-host-vars-in-inventory-script/13199 "2013-07-26T23:21:47Z")

</div>

I don’t know how to deal with this. I have a list of IPs and I want to use ansible\_ssh\_host var to give a short name to a given IP address but I want to use an inventory script like this: “group1”: { “hosts”: \[“host1”…

---

## [Apt installs failing on Debian Wheezy.](https://forum.ansible.com/t/apt-installs-failing-on-debian-wheezy/13201)

<div class="topic-metadata">

**Author:** [@John\_Grasty](https://forum.ansible.com/u/John_Grasty)\
**Replies:** 9\
**Last updated:** [July 26, 2013, 7:04pm UTC](https://forum.ansible.com/t/apt-installs-failing-on-debian-wheezy/13201 "2013-07-26T19:04:35Z")

</div>

Hi, I love the concept of Ansible, and I seem to be getting it down. I have run into one snag. I was attempting to install iptables-persistent via the apt module, and it failed with this error: msg: 'apt-get install ‘i…

---

## [AWS users unite!!](https://forum.ansible.com/t/aws-users-unite/12722)

<div class="topic-metadata">

**Author:** [@Lester\_Wade](https://forum.ansible.com/u/Lester_Wade)\
**Replies:** 30\
**Last updated:** [July 25, 2013, 6:10pm UTC](https://forum.ansible.com/t/aws-users-unite/12722 "2013-07-25T18:10:35Z")

</div>

Hi folks, A month (or more) back a few of us had a discussion about what other AWS modules we’d like to see as a priority. We also outlined a short-term vision for using Ansible with AWS, best summed up with the followi…

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

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