# Latest

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

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

**Page:** 938

---

## [Support process substitution?](https://forum.ansible.com/t/support-process-substitution/16204)

<div class="topic-metadata">

**Author:** [@Paul\_Smith](https://forum.ansible.com/u/Paul_Smith)\
**Replies:** 5\
**Last updated:** [September 14, 2014, 1:31pm UTC](https://forum.ansible.com/t/support-process-substitution/16204 "2014-09-14T13:31:23Z")

</div>

Does Ansible not support bash’s process substitution? My project maintains separate inventory files, and there are some playbooks that need hosts from certain combinations of them. Instead of having pre-concatenated fil…

---

## [Optional valut import](https://forum.ansible.com/t/optional-valut-import/16203)

<div class="topic-metadata">

**Author:** [@Adham\_H](https://forum.ansible.com/u/Adham_H)\
**Replies:** 5\
**Last updated:** [September 13, 2014, 6:51pm UTC](https://forum.ansible.com/t/optional-valut-import/16203 "2014-09-13T18:51:50Z")

</div>

Hey, I was wondering if its possible to do optional import of vault encrypted files. i.e. if a password/password file is presented the encrypted file will be included. Else the file will be ignored. Thanks

---

## [Test - please ignore (my posts don't seem to get through)](https://forum.ansible.com/t/test-please-ignore-my-posts-dont-seem-to-get-through/16210)

<div class="topic-metadata">

**Author:** [@Patrick\_Ansible-ML](https://forum.ansible.com/u/Patrick_Ansible-ML)\
**Replies:** 1\
**Last updated:** [September 13, 2014, 5:35pm UTC](https://forum.ansible.com/t/test-please-ignore-my-posts-dont-seem-to-get-through/16210 "2014-09-13T17:35:58Z")

</div>

Hi, Just a test, please ignore. My posts to the list don't seem to get through. Cheers, Patrick

---

## [Setting host vars programmatically with dynamic inventory](https://forum.ansible.com/t/setting-host-vars-programmatically-with-dynamic-inventory/16186)

<div class="topic-metadata">

**Author:** [@Ches\_Martin](https://forum.ansible.com/u/Ches_Martin)\
**Replies:** 7\
**Last updated:** [September 13, 2014, 12:08pm UTC](https://forum.ansible.com/t/setting-host-vars-programmatically-with-dynamic-inventory/16186 "2014-09-13T12:08:02Z")

</div>

Hi folks, I’ve been trying to come up with a solution to what essentially boils down to this: Say I’m writing, or simply using, a role which depends on a host var being set for all targeted hosts. An example is ZooKeep…

---

## [Strange thing with Jinja2 expressions evaluation](https://forum.ansible.com/t/strange-thing-with-jinja2-expressions-evaluation/16196)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 3\
**Last updated:** [September 13, 2014, 10:35am UTC](https://forum.ansible.com/t/strange-thing-with-jinja2-expressions-evaluation/16196 "2014-09-13T10:35:33Z")

</div>

With this playbook: - name: test playbook � hosts: 127.0.0.1 � connection: local � gather\_facts: no � tasks: ��� - debug: msg="{{ 'ansible'|replace('a', 'b') }}" Output will be: "bnsible" But with this: - n…

---

## [ec2 module: volumes parameter: How to specify volume id?](https://forum.ansible.com/t/ec2-module-volumes-parameter-how-to-specify-volume-id/16206)

<div class="topic-metadata">

**Author:** [@AJ\_Daws](https://forum.ansible.com/u/AJ_Daws)\
**Replies:** 0\
**Last updated:** [September 13, 2014, 12:52am UTC](https://forum.ansible.com/t/ec2-module-volumes-parameter-how-to-specify-volume-id/16206 "2014-09-13T00:52:16Z")

</div>

The volumes parameter of the ec2\_module allows us to specify volumes to create on startup. Can it also be used to specify an existing volume\_id to attach? From the wording it doesn’t sound like it is only for creating v…

---

## [Getting the ID of an AMI created with Ansible](https://forum.ansible.com/t/getting-the-id-of-an-ami-created-with-ansible/16185)

<div class="topic-metadata">

**Author:** [@Peter\_Palmieri](https://forum.ansible.com/u/Peter_Palmieri)\
**Replies:** 11\
**Last updated:** [September 12, 2014, 11:45pm UTC](https://forum.ansible.com/t/getting-the-id-of-an-ami-created-with-ansible/16185 "2014-09-12T23:45:37Z")

</div>

I’m building an EC2 instance with Ansible, then creating an AMI from the instance. I’m sure I’m missing something here, but how do I get the ID of the newly created AMI? I’ve tried: tasks: - name: create an ami in us-ea…

---

## [When running a playbook, I get "Couldn't read packet: Connection reset by peer" error.](https://forum.ansible.com/t/when-running-a-playbook-i-get-couldnt-read-packet-connection-reset-by-peer-error/16201)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 8\
**Last updated:** [September 12, 2014, 9:03pm UTC](https://forum.ansible.com/t/when-running-a-playbook-i-get-couldnt-read-packet-connection-reset-by-peer-error/16201 "2014-09-12T21:03:36Z")

</div>

When running a playbook, I get “Couldn’t read packet: Connection reset by peer” error. For playbook, command, and -vvvv output see: http://pastebin.com/VgAuvrct Ansible works fine on host1, but I get the error on host2…

---

## [Change current directory before tasks are run](https://forum.ansible.com/t/change-current-directory-before-tasks-are-run/16200)

<div class="topic-metadata">

**Author:** [@Jesse\_DeFer](https://forum.ansible.com/u/Jesse_DeFer)\
**Replies:** 6\
**Last updated:** [September 12, 2014, 8:57pm UTC](https://forum.ansible.com/t/change-current-directory-before-tasks-are-run/16200 "2014-09-12T20:57:10Z")

</div>

I am trying to create a playbook to unmount an AFS mounted home directory, but I can’t unmount it because the user running ansible has open files because of ansible. I can’t do this with user with a local home, or ssh co…

---

## [Is there a way to dynamically target subsets of an inventory group based on facts?](https://forum.ansible.com/t/is-there-a-way-to-dynamically-target-subsets-of-an-inventory-group-based-on-facts/16197)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 7\
**Last updated:** [September 12, 2014, 8:38pm UTC](https://forum.ansible.com/t/is-there-a-way-to-dynamically-target-subsets-of-an-inventory-group-based-on-facts/16197 "2014-09-12T20:38:22Z")

</div>

Hi all, I have an inventory file with hosts in different groups within. I would like to run a playbook on a certain group, but only where the host members of that group that have a certain OS (say, " ansible\_distributio…

---

## [Is sensitive data written to disk on the remote side?](https://forum.ansible.com/t/is-sensitive-data-written-to-disk-on-the-remote-side/16202)

<div class="topic-metadata">

**Author:** [@Diego\_Morales](https://forum.ansible.com/u/Diego_Morales)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 8:00pm UTC](https://forum.ansible.com/t/is-sensitive-data-written-to-disk-on-the-remote-side/16202 "2014-09-12T20:00:30Z")

</div>

Hello all, I don’t wanna sound like a security paranoid-freak (which I am not), but I wonder: I read in the docs that ansible copies modules to the remote machine, do its magic, and removes them before finishing. Does …

---

## [Bug found in yum module (and the fix)](https://forum.ansible.com/t/bug-found-in-yum-module-and-the-fix/16199)

<div class="topic-metadata">

**Author:** [@bbasleeper2](https://forum.ansible.com/u/bbasleeper2)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 7:43pm UTC](https://forum.ansible.com/t/bug-found-in-yum-module-and-the-fix/16199 "2014-09-12T19:43:35Z")

</div>

I just faced an incredible bug in yum module. When you use state=latest with an enablerepo directive AND yum-utils package is not installed on target server, yum will not update any packages saying everything is up to d…

---

## [Dealing with sporadic network failures on EC2 while running playbooks](https://forum.ansible.com/t/dealing-with-sporadic-network-failures-on-ec2-while-running-playbooks/16198)

<div class="topic-metadata">

**Author:** [@Gregory\_Taylor1](https://forum.ansible.com/u/Gregory_Taylor1)\
**Replies:** 4\
**Last updated:** [September 12, 2014, 7:30pm UTC](https://forum.ansible.com/t/dealing-with-sporadic-network-failures-on-ec2-while-running-playbooks/16198 "2014-09-12T19:30:31Z")

</div>

We use Ansible to deploy code updates across a small fleet (~8 machines). At least a few times a week, we run into network hiccups that cause the SSH connection to a random EC2 instance to fail, causing the entire playbo…

---

## [Module service: Controlling priorities/dependencies between services](https://forum.ansible.com/t/module-service-controlling-priorities-dependencies-between-services/16195)

<div class="topic-metadata">

**Author:** [@Jacek](https://forum.ansible.com/u/Jacek)\
**Replies:** 4\
**Last updated:** [September 12, 2014, 3:46pm UTC](https://forum.ansible.com/t/module-service-controlling-priorities-dependencies-between-services/16195 "2014-09-12T15:46:51Z")

</div>

Hi all, I wanted to start two services A, B while B depends on A (B should start only after A is started). I can’t see a way in the current service module to force the priority of the installed service. Have you got any…

---

## [Strange AWS Problems](https://forum.ansible.com/t/strange-aws-problems/16151)

<div class="topic-metadata">

**Author:** [@Deniz\_Acay](https://forum.ansible.com/u/Deniz_Acay)\
**Replies:** 3\
**Last updated:** [September 12, 2014, 3:39pm UTC](https://forum.ansible.com/t/strange-aws-problems/16151 "2014-09-12T15:39:39Z")

</div>

Hi, I had playbook that already worked with Rackspace cloud and recently we decided to migrate to AWS. After changing rax module operations with ec2 counterparts, everything looked good at that moment. I am using the o…

---

## [Windows package management via chocolatey](https://forum.ansible.com/t/windows-package-management-via-chocolatey/15986)

<div class="topic-metadata">

**Author:** [@Peter\_Mounce](https://forum.ansible.com/u/Peter_Mounce)\
**Replies:** 16\
**Last updated:** [September 12, 2014, 2:31pm UTC](https://forum.ansible.com/t/windows-package-management-via-chocolatey/15986 "2014-09-12T14:31:53Z")

</div>

Hi there I’ve been using Ansible fruitfully to provision a windows 2012 server in AWS, so I can use that as the basis for baking an AMI and moving my environment closer towards immutable infrastructure. In the doing, I…

---

## [Bug reporting fixing ettiquette. Bug before fix?](https://forum.ansible.com/t/bug-reporting-fixing-ettiquette-bug-before-fix/16194)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 1:57pm UTC](https://forum.ansible.com/t/bug-reporting-fixing-ettiquette-bug-before-fix/16194 "2014-09-12T13:57:45Z")

</div>

Hit an issue with overriding include parameters with variables passed in as extras. I’ve made a fix and added a pull request, https://github.com/ansible/ansible/pull/8984 Added it as a bugfix pull request, but wasn’t su…

---

## [Yum module and Cloudlinux](https://forum.ansible.com/t/yum-module-and-cloudlinux/16193)

<div class="topic-metadata">

**Author:** [@Martin\_Persson](https://forum.ansible.com/u/Martin_Persson)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 1:54pm UTC](https://forum.ansible.com/t/yum-module-and-cloudlinux/16193 "2014-09-12T13:54:54Z")

</div>

Hello, we are trying to patch our servers with Ansible and the yum module which runs on Cloudlinux. The problem is that the playbook just returns that there is nothing to update. If we run yum update manually it works j…

---

## [Documenting variables expected by a role](https://forum.ansible.com/t/documenting-variables-expected-by-a-role/16190)

<div class="topic-metadata">

**Author:** [@Greg\_Leclercq](https://forum.ansible.com/u/Greg_Leclercq)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 1:51pm UTC](https://forum.ansible.com/t/documenting-variables-expected-by-a-role/16190 "2014-09-12T13:51:36Z")

</div>

Dear Ansible enthousiasts, When I write a role, I’d like to tell what are the variables that tasks and templates will use. To prevent the interruption of the playbook in the middle of the execution of a role because a v…

---

## [ansible facts for interface aliases](https://forum.ansible.com/t/ansible-facts-for-interface-aliases/16192)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [September 12, 2014, 11:00am UTC](https://forum.ansible.com/t/ansible-facts-for-interface-aliases/16192 "2014-09-12T11:00:48Z")

</div>

Hi If you have ip aliases so called ipv4 secondaries configured, you get this from setup: “ansible\_bond0”: { “active”: true, “device”: “bond0”, “ipv4”: { “address”: “10.100.219.17”, “netmask”: “255.255.255.0”, “n…

---

## [Ask for variable value if variable not defined.](https://forum.ansible.com/t/ask-for-variable-value-if-variable-not-defined/14442)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 6\
**Last updated:** [September 12, 2014, 10:45am UTC](https://forum.ansible.com/t/ask-for-variable-value-if-variable-not-defined/14442 "2014-09-12T10:45:03Z")

</div>

Hi, Have question whether is possible (ansible 1.4.2 \>) setup prompt for volue for variable in variable is not defined. For example: First run of playbook: variable is not defined ask for value task write value of v…

---

## [debconf, can't get it to conf](https://forum.ansible.com/t/debconf-cant-get-it-to-conf/16183)

<div class="topic-metadata">

**Author:** [@Alain\_Kreienbuhl](https://forum.ansible.com/u/Alain_Kreienbuhl)\
**Replies:** 2\
**Last updated:** [September 12, 2014, 9:44am UTC](https://forum.ansible.com/t/debconf-cant-get-it-to-conf/16183 "2014-09-12T09:44:33Z")

</div>

Hello, I’m doing on a on a debian wheezy the vanila : debconf: name=locales question=‘locales/locales\_to\_be\_generated’ value=‘en\_US.UTF-8 UTF-8, fr\_FR.UTF-8 UTF-8’ vtype=‘multiselect’ debconf: name=locales question=‘l…

---

## [Elasticsearch restart task hangs up in Ansible Playbook](https://forum.ansible.com/t/elasticsearch-restart-task-hangs-up-in-ansible-playbook/16171)

<div class="topic-metadata">

**Author:** [@Roopendra\_Vishwakarm](https://forum.ansible.com/u/Roopendra_Vishwakarm)\
**Replies:** 4\
**Last updated:** [September 12, 2014, 5:39am UTC](https://forum.ansible.com/t/elasticsearch-restart-task-hangs-up-in-ansible-playbook/16171 "2014-09-12T05:39:39Z")

</div>

I am using ansible playbook to install elasticsearch and elasticsearch plugin. after successfully installation of Elasticsearch I written one ansible task to Restart Elasticsearch. Its restarting elasticsearch but ansibl…

---

## [Document the JSON output for each module](https://forum.ansible.com/t/document-the-json-output-for-each-module/16188)

<div class="topic-metadata">

**Author:** [@John\_Wong](https://forum.ansible.com/u/John_Wong)\
**Replies:** 0\
**Last updated:** [September 12, 2014, 5:30am UTC](https://forum.ansible.com/t/document-the-json-output-for-each-module/16188 "2014-09-12T05:30:15Z")

</div>

Problem: I found stat module and I was wondering what I could use from the JSON output for my conditional statement. I either have to use debug: msg=“{{stat\_output}}” or refer to the code: https://github.com/ansible/an…

---

## [Stuck: One or more undefined variables: 'str object' has no attribute 'base'](https://forum.ansible.com/t/stuck-one-or-more-undefined-variables-str-object-has-no-attribute-base/16169)

<div class="topic-metadata">

**Author:** [@Patrick\_Ansible-ML](https://forum.ansible.com/u/Patrick_Ansible-ML)\
**Replies:** 6\
**Last updated:** [September 12, 2014, 12:46am UTC](https://forum.ansible.com/t/stuck-one-or-more-undefined-variables-str-object-has-no-attribute-base/16169 "2014-09-12T00:46:17Z")

</div>

Hi all, New to the list. Been playing with Ansible for a few hours and I could use a hand in getting a task going. I've not figured out any of the YAML magic so please excuse the undoubtedly spectacular errors …

---

## [Script module question](https://forum.ansible.com/t/script-module-question/16184)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 1\
**Last updated:** [September 11, 2014, 11:28pm UTC](https://forum.ansible.com/t/script-module-question/16184 "2014-09-11T23:28:42Z")

</div>

I need to run a script from a particular remote directory. Can script be told to copy to a particular dir before running the script, or it’s a matter of using a copy + shell? Thanks

---

## [Ansible in standalone configuration](https://forum.ansible.com/t/ansible-in-standalone-configuration/16187)

<div class="topic-metadata">

**Author:** [@Andrew\_Langhorn](https://forum.ansible.com/u/Andrew_Langhorn)\
**Replies:** 2\
**Last updated:** [September 11, 2014, 11:14pm UTC](https://forum.ansible.com/t/ansible-in-standalone-configuration/16187 "2014-09-11T23:14:45Z")

</div>

Hello. This evening, I went to the inaugural London Ansible meet-up, which I found useful. As a result, I’ve decided to try out Ansible and see how I get to grips with it. I’m a Puppet user at the moment, but it would b…

---

## [Cisco show command & ansible compatibility](https://forum.ansible.com/t/cisco-show-command-ansible-compatibility/16180)

<div class="topic-metadata">

**Author:** [@maxime.gerges](https://forum.ansible.com/u/maxime.gerges)\
**Replies:** 2\
**Last updated:** [September 11, 2014, 3:29pm UTC](https://forum.ansible.com/t/cisco-show-command-ansible-compatibility/16180 "2014-09-11T15:29:42Z")

</div>

Hello, I find out about this amazing project that is ansible and was wondering one important thing. I understood that ansible is driven to configuration automation. Is ansible also able to run some command on Cisco dev…

---

## [digital\_ocean\_domain - can it really create DNS records?](https://forum.ansible.com/t/digital-ocean-domain-can-it-really-create-dns-records/16111)

<div class="topic-metadata">

**Author:** [@Jeff\_Johnson](https://forum.ansible.com/u/Jeff_Johnson)\
**Replies:** 4\
**Last updated:** [September 11, 2014, 2:29pm UTC](https://forum.ansible.com/t/digital-ocean-domain-can-it-really-create-dns-records/16111 "2014-09-11T14:29:51Z")

</div>

I’m new to Ansible and loving it so far. But I’m new so maybe I’m missing something obvious when I can’t figure out how to make the digital\_ocean\_domain module create DNS records instead of just zone files. The example …

---

## [limit now working as expected with multiple host sections](https://forum.ansible.com/t/limit-now-working-as-expected-with-multiple-host-sections/16178)

<div class="topic-metadata">

**Author:** [@Matt\_Schurenko](https://forum.ansible.com/u/Matt_Schurenko)\
**Replies:** 1\
**Last updated:** [September 11, 2014, 2:29pm UTC](https://forum.ansible.com/t/limit-now-working-as-expected-with-multiple-host-sections/16178 "2014-09-11T14:29:51Z")

</div>

Is this the correct behavior of using --limit: { $ cat test\_inv \[localhost\] localhost \[foobar\] localhost $ cat test.yml

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

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