# Latest

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

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

**Page:** 900

---

## [How does Ansible know what account to use for the SSH connection and sudo](https://forum.ansible.com/t/how-does-ansible-know-what-account-to-use-for-the-ssh-connection-and-sudo/17341)

<div class="topic-metadata">

**Author:** [@Stuart\_Budd](https://forum.ansible.com/u/Stuart_Budd)\
**Replies:** 6\
**Last updated:** [January 24, 2015, 1:15pm UTC](https://forum.ansible.com/t/how-does-ansible-know-what-account-to-use-for-the-ssh-connection-and-sudo/17341 "2015-01-24T13:15:14Z")

</div>

I do not understand how this example works for user foo If I have not stated the user account to use for the ssh connection within the command line using: ansible\_ssh\_user=foo or the Ansible host file: /etc/ansible/hos…

---

## [Ansible support for Consul.](https://forum.ansible.com/t/ansible-support-for-consul/17161)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 4\
**Last updated:** [January 24, 2015, 2:25am UTC](https://forum.ansible.com/t/ansible-support-for-consul/17161 "2015-01-24T02:25:28Z")

</div>

I’ve been working on support for interacting with Consul from within Ansible. Currently there is support for manipulating services, checks, acls and values in the kv store. There is also an inventory that gets built from…

---

## [ansible-core-modules tests](https://forum.ansible.com/t/ansible-core-modules-tests/17366)

<div class="topic-metadata">

**Author:** [@Bill\_Wanjohi1](https://forum.ansible.com/u/Bill_Wanjohi1)\
**Replies:** 1\
**Last updated:** [January 24, 2015, 1:07am UTC](https://forum.ansible.com/t/ansible-core-modules-tests/17366 "2015-01-24T01:07:29Z")

</div>

I opened an issue to discuss this back in September, but it was closed without anyone addressing the question: https://github.com/ansible/ansible-modules-core/issues/40 To paraphrase myself: I opened a pull request on …

---

## [Ansible and Softlayer](https://forum.ansible.com/t/ansible-and-softlayer/17365)

<div class="topic-metadata">

**Author:** [@Peter\_Mooshammer](https://forum.ansible.com/u/Peter_Mooshammer)\
**Replies:** 0\
**Last updated:** [January 24, 2015, 12:56am UTC](https://forum.ansible.com/t/ansible-and-softlayer/17365 "2015-01-24T00:56:51Z")

</div>

Hi there, trying to find more information on Softlayer and Ansible. There was a note the Softlayer is supported beginning 1.7. I assume that only covers the inventory script. Are there any modules planned in the future…

---

## [Running from source forces new terminals to cd into ansible's source dir](https://forum.ansible.com/t/running-from-source-forces-new-terminals-to-cd-into-ansibles-source-dir/17287)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 5\
**Last updated:** [January 23, 2015, 11:25pm UTC](https://forum.ansible.com/t/running-from-source-forces-new-terminals-to-cd-into-ansibles-source-dir/17287 "2015-01-23T23:25:45Z")

</div>

So, I’m not sure this is an Ansible issue, but it might be, and I bet some of you could help me fix it anyway. I’m running Ansible from source. As described here http://docs.ansible.com/intro\_installation.html#running-f…

---

## [SSH Errors during provisioning of ec2 hosts through ansible](https://forum.ansible.com/t/ssh-errors-during-provisioning-of-ec2-hosts-through-ansible/17364)

<div class="topic-metadata">

**Author:** [@doug1](https://forum.ansible.com/u/doug1)\
**Replies:** 0\
**Last updated:** [January 23, 2015, 9:49pm UTC](https://forum.ansible.com/t/ssh-errors-during-provisioning-of-ec2-hosts-through-ansible/17364 "2015-01-23T21:49:20Z")

</div>

Hi All, I’ve been battling with this issue all day. I wrote a playbook which spins up nodes on ec2 using ansible and then bootstraps the box by creating the “ansible” user on the remote machine, then it pushes the ansib…

---

## [problem with conditional and facts,](https://forum.ansible.com/t/problem-with-conditional-and-facts/17351)

<div class="topic-metadata">

**Author:** [@Jan\_Mattsson](https://forum.ansible.com/u/Jan_Mattsson)\
**Replies:** 3\
**Last updated:** [January 23, 2015, 5:16pm UTC](https://forum.ansible.com/t/problem-with-conditional-and-facts/17351 "2015-01-23T17:16:23Z")

</div>

I did a quick play which has a conditional: when: ansible\_swaptotal\_mb == “2047” this conditional never evaluates as true, if I debug: debug: var=ansible\_swaptotal\_mb I get ok: \[hostname\] =\> { “ansible\_swaptotal\_mb…

---

## [User module: useradd without cerate home directory](https://forum.ansible.com/t/user-module-useradd-without-cerate-home-directory/17359)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 1\
**Last updated:** [January 23, 2015, 2:22pm UTC](https://forum.ansible.com/t/user-module-useradd-without-cerate-home-directory/17359 "2015-01-23T14:22:12Z")

</div>

Hi, Which option in ansible user module to create user account whitout creating user home directory like “useradd -M”? Thank you. j

---

## [module copy with content reports changes on every run](https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362)

<div class="topic-metadata">

**Author:** [@cloos](https://forum.ansible.com/u/cloos)\
**Replies:** 1\
**Last updated:** [January 23, 2015, 1:34pm UTC](https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362 "2015-01-23T13:34:08Z")

</div>

Hi, if i run a task with this: copy: dest=/etc/timezone content=“Europe/Berlin” owner=root group=root mode=0644 it reports on every run changes. Verbose output of two runs: changed: \[xxx\] =\> {“changed”: true, “check…

---

## [override non-defaults role variables](https://forum.ansible.com/t/override-non-defaults-role-variables/17356)

<div class="topic-metadata">

**Author:** [@Antoine\_Jacoutot](https://forum.ansible.com/u/Antoine_Jacoutot)\
**Replies:** 4\
**Last updated:** [January 23, 2015, 1:13pm UTC](https://forum.ansible.com/t/override-non-defaults-role-variables/17356 "2015-01-23T13:13:45Z")

</div>

Hi. After a lot of reading about variable inheritance in ansible, there’s still something I cannot properly grasp… I hope some folks in here could enlighten me :slight\_smile: So. I have a “foobar” role with some defau…

---

## [Using variables from var\_files in serial](https://forum.ansible.com/t/using-variables-from-var-files-in-serial/17282)

<div class="topic-metadata">

**Author:** [@Ruben\_Oostinga](https://forum.ansible.com/u/Ruben_Oostinga)\
**Replies:** 1\
**Last updated:** [January 23, 2015, 10:09am UTC](https://forum.ansible.com/t/using-variables-from-var-files-in-serial/17282 "2015-01-23T10:09:11Z")

</div>

Hi, I am currently upgrading from ansible 1.7 to 1.8 and my current playbooks are not working anymore. I have batch\_size defined in a vars\_file and I would like to use this as my serial size. My playbook looks like thi…

---

## [Current state of pivoting through a jumpbox](https://forum.ansible.com/t/current-state-of-pivoting-through-a-jumpbox/16470)

<div class="topic-metadata">

**Author:** [@andrew2](https://forum.ansible.com/u/andrew2)\
**Replies:** 1\
**Last updated:** [January 23, 2015, 9:15am UTC](https://forum.ansible.com/t/current-state-of-pivoting-through-a-jumpbox/16470 "2015-01-23T09:15:48Z")

</div>

Hi everyone, First-time poster here. I’d like to have Ansible on one subnet pivot through a jumpbox to a different subnet (technically a separate datacenter) for provisioning a host. I found posts such as this: https:…

---

## [Role and playbook versioning](https://forum.ansible.com/t/role-and-playbook-versioning/15909)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 31\
**Last updated:** [January 23, 2015, 3:05am UTC](https://forum.ansible.com/t/role-and-playbook-versioning/15909 "2015-01-23T03:05:16Z")

</div>

Working in an environment where we hope to reuse common playbooks and roles across the organisation, I’ve been thinking a lot on how to manage updates to roles and playbooks without breaking repeatability (running the sa…

---

## [templates in host\_vars can't use variables from another host](https://forum.ansible.com/t/templates-in-host-vars-cant-use-variables-from-another-host/17358)

<div class="topic-metadata">

**Author:** [@Slawomir\_Kowalski](https://forum.ansible.com/u/Slawomir_Kowalski)\
**Replies:** 0\
**Last updated:** [January 22, 2015, 11:48pm UTC](https://forum.ansible.com/t/templates-in-host-vars-cant-use-variables-from-another-host/17358 "2015-01-22T23:48:39Z")

</div>

Hello! I am currently writing role which is supposed to automate creation of GRE tunnels between endpoints . So I created new role and it uses variable named gre\_tunnels which is list. It usually looks like this: gre\_…

---

## [ADD  NEW ROUTE TO EXISTING ROUTE TABLE IN VPC](https://forum.ansible.com/t/add-new-route-to-existing-route-table-in-vpc/17307)

<div class="topic-metadata">

**Author:** [@sanveer76](https://forum.ansible.com/u/sanveer76)\
**Replies:** 1\
**Last updated:** [January 22, 2015, 9:28pm UTC](https://forum.ansible.com/t/add-new-route-to-existing-route-table-in-vpc/17307 "2015-01-22T21:28:29Z")

</div>

How would I add a new route to an existing route table in a VPC?

---

## [How can I pass a hash to a role?](https://forum.ansible.com/t/how-can-i-pass-a-hash-to-a-role/17346)

<div class="topic-metadata">

**Author:** [@Collin\_Allen](https://forum.ansible.com/u/Collin_Allen)\
**Replies:** 2\
**Last updated:** [January 22, 2015, 7:19pm UTC](https://forum.ansible.com/t/how-can-i-pass-a-hash-to-a-role/17346 "2015-01-22T19:19:32Z")

</div>

Hi folks, I’m running a playbook that makes use of a few custom roles, and one of them would benefit from being able to receive a YAML hash containing an arbitrary number of items (think: passing in a set of environment…

---

## [File lookup issue in 1.8.2](https://forum.ansible.com/t/file-lookup-issue-in-1-8-2/16998)

<div class="topic-metadata">

**Author:** [@Mathieu\_Guillaume](https://forum.ansible.com/u/Mathieu_Guillaume)\
**Replies:** 6\
**Last updated:** [January 22, 2015, 6:57pm UTC](https://forum.ansible.com/t/file-lookup-issue-in-1-8-2/16998 "2015-01-22T18:57:19Z")

</div>

I’m using a task similar to this to add keys to a remote user: authorized\_key: user=bob key=‘{{lookup(“file”, item)}}’ with\_fileglob: /some/absolute/path/id\_\*.pub This worked fine up to (and including) 1.8.1 In 1.8.…

---

## [Using group\_vars alongside inventory directories](https://forum.ansible.com/t/using-group-vars-alongside-inventory-directories/17352)

<div class="topic-metadata">

**Author:** [@Niko\_Felger](https://forum.ansible.com/u/Niko_Felger)\
**Replies:** 2\
**Last updated:** [January 22, 2015, 4:43pm UTC](https://forum.ansible.com/t/using-group-vars-alongside-inventory-directories/17352 "2015-01-22T16:43:37Z")

</div>

Hi, Is it possible to use a group\_vars/ directory alongside inventory directories (as opposed to files)? Take this simplified example, which has an inventory file (staging) and an inventory directory (production): \` $…

---

## [How to use IPs defined in hosts file in playbooks?](https://forum.ansible.com/t/how-to-use-ips-defined-in-hosts-file-in-playbooks/17355)

<div class="topic-metadata">

**Author:** [@Thomas\_Hirsch](https://forum.ansible.com/u/Thomas_Hirsch)\
**Replies:** 1\
**Last updated:** [January 22, 2015, 4:39pm UTC](https://forum.ansible.com/t/how-to-use-ips-defined-in-hosts-file-in-playbooks/17355 "2015-01-22T16:39:39Z")

</div>

Hello, when configuring a load balancer for example, with a templated configuration file, how would I go about inserting IP addresses from my inventory file? I realize that I might not be understanding completely how r…

---

## [Ooops ! I just pushed my unencrypted vault/secets file to the Git repo...](https://forum.ansible.com/t/ooops-i-just-pushed-my-unencrypted-vault-secets-file-to-the-git-repo/17354)

<div class="topic-metadata">

**Author:** [@Maxime\_Levesque](https://forum.ansible.com/u/Maxime_Levesque)\
**Replies:** 2\
**Last updated:** [January 22, 2015, 4:35pm UTC](https://forum.ansible.com/t/ooops-i-just-pushed-my-unencrypted-vault-secets-file-to-the-git-repo/17354 "2015-01-22T16:35:39Z")

</div>

Hello everyone, I had opened this “feature suggestion” issue : https://github.com/ansible/ansible/issues/9990 And Toshio suggested I discuss it in the mailing list, so here I to : The problem : It is easy to add an u…

---

## [Using group\_vars alongside inventory directories](https://forum.ansible.com/t/using-group-vars-alongside-inventory-directories/17353)

<div class="topic-metadata">

**Author:** [@Niko\_Felger](https://forum.ansible.com/u/Niko_Felger)\
**Replies:** 0\
**Last updated:** [January 22, 2015, 3:34pm UTC](https://forum.ansible.com/t/using-group-vars-alongside-inventory-directories/17353 "2015-01-22T15:34:41Z")

</div>

Hi, Is it possible to use a group\_vars/ directory alongside inventory directories (as opposed to files)? Take this simplified example, which has an inventory file (staging) and an inventory directory (production): \` $…

---

## [More information about host in the heading](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335)

<div class="topic-metadata">

**Author:** [@Pal\_Nilsen](https://forum.ansible.com/u/Pal_Nilsen)\
**Replies:** 2\
**Last updated:** [January 22, 2015, 2:57pm UTC](https://forum.ansible.com/t/more-information-about-host-in-the-heading/17335 "2015-01-22T14:57:03Z")

</div>

When running tasks Ansible will print the hostname it connected to as the heading. E.g. \` GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[ec2-…eu-west-1.compute.amazonaws.com\] \` …

---

## [support passing new variables directly to the template module, but not only](https://forum.ansible.com/t/support-passing-new-variables-directly-to-the-template-module-but-not-only/16089)

<div class="topic-metadata">

**Author:** [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Replies:** 9\
**Last updated:** [January 22, 2015, 2:32pm UTC](https://forum.ansible.com/t/support-passing-new-variables-directly-to-the-template-module-but-not-only/16089 "2015-01-22T14:32:12Z")

</div>

Hello everyone! I was asked to bring this up in the email list as well. Please see issues #8733 and #4546 for the origins of this email. Just encountered the problem reported in #4546 Due to openSSL not being able to…

---

## [EC2: collect list of private-ip from on group, use it in a second group](https://forum.ansible.com/t/ec2-collect-list-of-private-ip-from-on-group-use-it-in-a-second-group/17327)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan](https://forum.ansible.com/u/Tzach_Livyatan)\
**Replies:** 6\
**Last updated:** [January 22, 2015, 9:49am UTC](https://forum.ansible.com/t/ec2-collect-list-of-private-ip-from-on-group-use-it-in-a-second-group/17327 "2015-01-22T09:49:43Z")

</div>

Posted a similar question a few days ago, got the right answer. Now I can better explain what I’m looking for. I’m building a EC2 system from two types of servers: cluster nodes loader nodes Each loader is generatin…

---

## [Pass variable to hosts: in playbook](https://forum.ansible.com/t/pass-variable-to-hosts-in-playbook/17328)

<div class="topic-metadata">

**Author:** [@Peter\_Smallegange](https://forum.ansible.com/u/Peter_Smallegange)\
**Replies:** 4\
**Last updated:** [January 22, 2015, 8:53am UTC](https://forum.ansible.com/t/pass-variable-to-hosts-in-playbook/17328 "2015-01-22T08:53:53Z")

</div>

\`

---

## [Error when using ec2\_asg](https://forum.ansible.com/t/error-when-using-ec2-asg/17347)

<div class="topic-metadata">

**Author:** [@Robert\_Citek](https://forum.ansible.com/u/Robert_Citek)\
**Replies:** 0\
**Last updated:** [January 22, 2015, 8:12am UTC](https://forum.ansible.com/t/error-when-using-ec2-asg/17347 "2015-01-22T08:12:33Z")

</div>

Hello all, I am trying to create an Auto-Scaling Group using ansible. This is the playbook: $ tail -n +1 auto.scaling.group.yml - hosts: localhost connection: local gather\_facts: False tasks: - name: …

---

## [Suggested change for ec2\_snapshot - list snapshots](https://forum.ansible.com/t/suggested-change-for-ec2-snapshot-list-snapshots/17324)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 1\
**Last updated:** [January 22, 2015, 6:47am UTC](https://forum.ansible.com/t/suggested-change-for-ec2-snapshot-list-snapshots/17324 "2015-01-22T06:47:30Z")

</div>

I’ve been working on a change to ec2\_snapshot to add a ‘list’ option to the state parameter. This would function in a similar way to the list option in the ec2\_vol module. I have a few thing for discussion… Should thi…

---

## [Questions about expanding Azure module](https://forum.ansible.com/t/questions-about-expanding-azure-module/16775)

<div class="topic-metadata">

**Author:** [@Nathan\_Hartzell](https://forum.ansible.com/u/Nathan_Hartzell)\
**Replies:** 10\
**Last updated:** [January 21, 2015, 11:15pm UTC](https://forum.ansible.com/t/questions-about-expanding-azure-module/16775 "2015-01-21T23:15:39Z")

</div>

This is my first time looking to join an open-source project, so apologies in advance if I am committing social faux pas(es?). Anyway, I read over the CONTRIBUTING.md and the page it links to, and I am interested in exp…

---

## [Ansible on gentoo linux, with both systemd and openrc installed](https://forum.ansible.com/t/ansible-on-gentoo-linux-with-both-systemd-and-openrc-installed/17345)

<div class="topic-metadata">

**Author:** [@Stefan\_Weichinger](https://forum.ansible.com/u/Stefan_Weichinger)\
**Replies:** 5\
**Last updated:** [January 21, 2015, 9:58pm UTC](https://forum.ansible.com/t/ansible-on-gentoo-linux-with-both-systemd-and-openrc-installed/17345 "2015-01-21T21:58:44Z")

</div>

This is my first posting here, so pls be kind :wink: I learn my first steps with ansible for some weeks now and get some issues with the service-module. As some of you may know, on gentoo linux it is rather common thes…

---

## [Different SSH keys for each host.](https://forum.ansible.com/t/different-ssh-keys-for-each-host/17331)

<div class="topic-metadata">

**Author:** [@junkmailtrapenator](https://forum.ansible.com/u/junkmailtrapenator)\
**Replies:** 5\
**Last updated:** [January 21, 2015, 8:19pm UTC](https://forum.ansible.com/t/different-ssh-keys-for-each-host/17331 "2015-01-21T20:19:12Z")

</div>

I know it’s possible to add –private-key=path/to/key to specify which ssh key you would like Ansible to use. However that assumes that each host requires the same key. Is it possible to specify that setting per host, per…

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

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