# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=305

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

**Page:** 306

---

## [Ansible 2.4.1.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-4-1-0-rc2-is-ready-for-testing/25772)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 5:44am UTC](https://forum.ansible.com/t/ansible-2-4-1-0-rc2-is-ready-for-testing/25772 "2017-10-19T05:44:57Z")

</div>

Hi all, we're happy to announce that RC2 for 2.4.1.0 is now available for testing. How do you get it?

---

## [Viewing mixed encrypted/unencrypted inventory files](https://forum.ansible.com/t/viewing-mixed-encrypted-unencrypted-inventory-files/25771)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 0\
**Last updated:** [October 19, 2017, 12:15am UTC](https://forum.ansible.com/t/viewing-mixed-encrypted-unencrypted-inventory-files/25771 "2017-10-19T00:15:07Z")

</div>

Hi, Will it eventually be possible to view the contents of inventory vars files that have mixed encrypted/unencrypted content? At the moment it doesn’t seem to be possible outside of copying the encrypted content to a n…

---

## [Telnet Module inside 2.4](https://forum.ansible.com/t/telnet-module-inside-2-4/25617)

<div class="topic-metadata">

**Author:** [@Rodrigo](https://forum.ansible.com/u/Rodrigo)\
**Replies:** 2\
**Last updated:** [October 18, 2017, 10:49pm UTC](https://forum.ansible.com/t/telnet-module-inside-2-4/25617 "2017-10-18T22:49:20Z")

</div>

Hello Everyone, I am handling new functionality inside module 2.4 version. According documentation we have " prompts " to manage points to execute next command. However, I am thinking some alternatives of customer only…

---

## [with\_items and increment](https://forum.ansible.com/t/with-items-and-increment/25766)

<div class="topic-metadata">

**Author:** [@Parth\_Patel1](https://forum.ansible.com/u/Parth_Patel1)\
**Replies:** 2\
**Last updated:** [October 18, 2017, 8:11pm UTC](https://forum.ansible.com/t/with-items-and-increment/25766 "2017-10-18T20:11:46Z")

</div>

I am trying to run this simple task where I want to increment counter for “{{ esb\_name }}ESB?” like “ABC\_ESB\_01, ABC\_ESB\_02 …etc” until the loop is over. How do I do that ? I tried nested and other loops but was not able…

---

## [Task execution only for special items within a loop](https://forum.ansible.com/t/task-execution-only-for-special-items-within-a-loop/25406)

<div class="topic-metadata">

**Author:** [@Tom\_Bartsch](https://forum.ansible.com/u/Tom_Bartsch)\
**Replies:** 5\
**Last updated:** [October 18, 2017, 12:50pm UTC](https://forum.ansible.com/t/task-execution-only-for-special-items-within-a-loop/25406 "2017-10-18T12:50:58Z")

</div>

Hi there, I have the following playbook: --- - hosts: "{{ host }}" vars: bundle\_artifacts: - artifactId: "someArtifact" version: "1.0.0" extension: "zip" - artifactId: "kietmyartifact-…

---

## [Problems with VMWARE and In-Memory Inventory](https://forum.ansible.com/t/problems-with-vmware-and-in-memory-inventory/25754)

<div class="topic-metadata">

**Author:** [@Mariano\_Obarrio\_Mile](https://forum.ansible.com/u/Mariano_Obarrio_Mile)\
**Replies:** 9\
**Last updated:** [October 18, 2017, 10:19am UTC](https://forum.ansible.com/t/problems-with-vmware-and-in-memory-inventory/25754 "2017-10-18T10:19:45Z")

</div>

Hi all, I don’t know what I do wrong… I try create VMs (vmware) and provisioning after that. But when try add this new vms to inventory with add\_host only add one. The task “Gather VM facts (vmware\_guest\_facts)” recove…

---

## ["here doc" in shell command](https://forum.ansible.com/t/here-doc-in-shell-command/25751)

<div class="topic-metadata">

**Author:** [@rurpy](https://forum.ansible.com/u/rurpy)\
**Replies:** 3\
**Last updated:** [October 18, 2017, 7:48am UTC](https://forum.ansible.com/t/here-doc-in-shell-command/25751 "2017-10-18T07:48:59Z")

</div>

I am trying to use a “here doc” in a shell command like so: name: frustration shell: | cat \<\<-EOF | my\_program input line 1 input line 2 EOF another\_program along with a number of permutations, all of which have…

---

## [Is there a cleaner way to use json\_query to filter an array based on the value of an attribute?](https://forum.ansible.com/t/is-there-a-cleaner-way-to-use-json-query-to-filter-an-array-based-on-the-value-of-an-attribute/25767)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 12:28am UTC](https://forum.ansible.com/t/is-there-a-cleaner-way-to-use-json-query-to-filter-an-array-based-on-the-value-of-an-attribute/25767 "2017-10-18T00:28:07Z")

</div>

Hi, The version of Ansible we are using does not support selectattr to filter a list based on attribute names. So I instead use something like this: set\_fact: thing: '{{ (things | json\_query("\[?thing\_name==''" + a\_th…

---

## [How to use a Python expression instead of a Jinja expression in changed\_when?](https://forum.ansible.com/t/how-to-use-a-python-expression-instead-of-a-jinja-expression-in-changed-when/13412)

<div class="topic-metadata">

**Author:** [@Nicolas\_Grilly](https://forum.ansible.com/u/Nicolas_Grilly)\
**Replies:** 12\
**Last updated:** [October 17, 2017, 7:42pm UTC](https://forum.ansible.com/t/how-to-use-a-python-expression-instead-of-a-jinja-expression-in-changed-when/13412 "2017-10-17T19:42:37Z")

</div>

Hello, changed\_when is extremely useful and a very nice addition to Ansible! I’m wondering how to use a Python expression instead of a Jinja expression in changed\_when? On a more general level, the documentation is no…

---

## [Ansible 2.3.3 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-3-3-rc2-is-ready-for-testing/25764)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [October 17, 2017, 6:19pm UTC](https://forum.ansible.com/t/ansible-2-3-3-rc2-is-ready-for-testing/25764 "2017-10-17T18:19:04Z")

</div>

Hi all, we're happy to announce that RC2 for 2.3.3 is now available for testing. How do you get it?

---

## [ansible error on SLES 12](https://forum.ansible.com/t/ansible-error-on-sles-12/25763)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 0\
**Last updated:** [October 17, 2017, 5:01pm UTC](https://forum.ansible.com/t/ansible-error-on-sles-12/25763 "2017-10-17T17:01:57Z")

</div>

Followed the below steps to install ansible wget https://bootstrap.pypa.io/get-pip.py python get-pip.py #To resolve python.sh zypper in python-devel zypper in libopenssl-devel pip install ansible pip install param…

---

## [AWX Best Practices (Inventories and Workflows)](https://forum.ansible.com/t/awx-best-practices-inventories-and-workflows/25736)

<div class="topic-metadata">

**Author:** [@Bobby\_Brockway](https://forum.ansible.com/u/Bobby_Brockway)\
**Replies:** 3\
**Last updated:** [October 17, 2017, 1:06pm UTC](https://forum.ansible.com/t/awx-best-practices-inventories-and-workflows/25736 "2017-10-17T13:06:51Z")

</div>

Hi all, I’ve been playing with AWX in a POC environment but I’m having trouble working out the best way to lay out our inventories, jobs and workflows. The Best Practices guide in the docs isn’t exactly extensive so hop…

---

## [ansible vwmare\_guest, cloning Windows Server 2012R2](https://forum.ansible.com/t/ansible-vwmare-guest-cloning-windows-server-2012r2/25738)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 1\
**Last updated:** [October 17, 2017, 7:21am UTC](https://forum.ansible.com/t/ansible-vwmare-guest-cloning-windows-server-2012r2/25738 "2017-10-17T07:21:16Z")

</div>

Hello, Can anyone tell me the steps I need to go through to get vmware\_guest to successfully clone a template and have the clone join an existing domain? Once the clone comes up, it never seems to have network access, …

---

## [Ansible and vmware\_guest](https://forum.ansible.com/t/ansible-and-vmware-guest/25757)

<div class="topic-metadata">

**Author:** [@zerros](https://forum.ansible.com/u/zerros)\
**Replies:** 2\
**Last updated:** [October 17, 2017, 7:16am UTC](https://forum.ansible.com/t/ansible-and-vmware-guest/25757 "2017-10-17T07:16:31Z")

</div>

Hi, Forgive me for my bad english. I’m actually experiencing some problems using the vmare\_guest module. I want to create vms on vmware using this module. When I create a new vm, the two nic cards are not connected at…

---

## [Deprecated Warning: Using variables for task params is unsafe, but](https://forum.ansible.com/t/deprecated-warning-using-variables-for-task-params-is-unsafe-but/25760)

<div class="topic-metadata">

**Author:** [@Mark\_Eisenblatter](https://forum.ansible.com/u/Mark_Eisenblatter)\
**Replies:** 0\
**Last updated:** [October 17, 2017, 5:04am UTC](https://forum.ansible.com/t/deprecated-warning-using-variables-for-task-params-is-unsafe-but/25760 "2017-10-17T05:04:53Z")

</div>

hello list, i wanted feed all needed Options to module os\_server via a Lookup plugin. this way i would be able to out every logic we need in on plugin. but as i understand this feature is deprecated. I can use the lo…

---

## [Ansible-pull and cloud-init and HOME variable](https://forum.ansible.com/t/ansible-pull-and-cloud-init-and-home-variable/25758)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 0\
**Last updated:** [October 16, 2017, 10:37pm UTC](https://forum.ansible.com/t/ansible-pull-and-cloud-init-and-home-variable/25758 "2017-10-16T22:37:13Z")

</div>

Hi, I thought I share some info on what took me a few hours of debugging to discover when it comes to using ansible to hydrate ubuntu-based instances using cloud-init. It looks like cloud-init doesn’t set HOME variable…

---

## [Vault and "dictionaries" - bug or feature request?](https://forum.ansible.com/t/vault-and-dictionaries-bug-or-feature-request/25725)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 1\
**Last updated:** [October 16, 2017, 7:23pm UTC](https://forum.ansible.com/t/vault-and-dictionaries-bug-or-feature-request/25725 "2017-10-16T19:23:25Z")

</div>

I’ve have a dictionary variable setup that has accounts and passwords: \` password\_list: { name: “user1”, password: “user1pwd” } { name: “user2”, password: “user2pwd” } { name: “user3”, password: “user3pwd” } \` …

---

## [inbound webhook support](https://forum.ansible.com/t/inbound-webhook-support/25755)

<div class="topic-metadata">

**Author:** [@dch](https://forum.ansible.com/u/dch)\
**Replies:** 1\
**Last updated:** [October 16, 2017, 4:31pm UTC](https://forum.ansible.com/t/inbound-webhook-support/25755 "2017-10-16T16:31:54Z")

</div>

hi folks I'd like to trigger ansible from a webhook - a github commit in this case. How have other people done this? A+ Dave

---

## [email](https://forum.ansible.com/t/email/25756)

<div class="topic-metadata">

**Author:** [@WB\_Litty](https://forum.ansible.com/u/WB_Litty)\
**Replies:** 0\
**Last updated:** [October 16, 2017, 3:10pm UTC](https://forum.ansible.com/t/email/25756 "2017-10-16T15:10:27Z")

</div>

gimme email porfavor mariah :slight\_smile:

---

## [Combine inventory listings](https://forum.ansible.com/t/combine-inventory-listings/25753)

<div class="topic-metadata">

**Author:** [@Scott](https://forum.ansible.com/u/Scott)\
**Replies:** 4\
**Last updated:** [October 16, 2017, 1:27pm UTC](https://forum.ansible.com/t/combine-inventory-listings/25753 "2017-10-16T13:27:09Z")

</div>

Hi, I am working with multiple Openstack and AWS clouds and need to run application installation on instances across across them. I currently run my playbooks against each cloud separately using the dynamic openstack.py…

---

## [Templates: how to handle file encoding and line endings?](https://forum.ansible.com/t/templates-how-to-handle-file-encoding-and-line-endings/25752)

<div class="topic-metadata">

**Author:** [@thomas.lehmann](https://forum.ansible.com/u/thomas.lehmann)\
**Replies:** 0\
**Last updated:** [October 16, 2017, 7:53am UTC](https://forum.ansible.com/t/templates-how-to-handle-file-encoding-and-line-endings/25752 "2017-10-16T07:53:41Z")

</div>

Hi, I’m looking forward to migrate a large configuration package to Ansible. With a verification script we check that the finally distributed files are the same as we have without Ansible. In first phase we moved ever…

---

## [Problem choosing proper structure of my ansible playbook/inventory](https://forum.ansible.com/t/problem-choosing-proper-structure-of-my-ansible-playbook-inventory/25750)

<div class="topic-metadata">

**Author:** [@Fredrik\_T](https://forum.ansible.com/u/Fredrik_T)\
**Replies:** 3\
**Last updated:** [October 14, 2017, 7:53pm UTC](https://forum.ansible.com/t/problem-choosing-proper-structure-of-my-ansible-playbook-inventory/25750 "2017-10-14T19:53:25Z")

</div>

Trying to figure out how to the get following solved. Coming from Puppet I have a bit of an adjustment to make. I’m trying to configure a few comware/arista switches which are only accessible via a certain jump host. M…

---

## [regex in command](https://forum.ansible.com/t/regex-in-command/25748)

<div class="topic-metadata">

**Author:** [@Victor1](https://forum.ansible.com/u/Victor1)\
**Replies:** 3\
**Last updated:** [October 14, 2017, 5:05pm UTC](https://forum.ansible.com/t/regex-in-command/25748 "2017-10-14T17:05:14Z")

</div>

Hi All , I have to search for a pattern string in the various log files located in some directory on the host. how we can use regex kind of a thing with command module or may be some other useful ansible way i am not aw…

---

## [Inventory path?](https://forum.ansible.com/t/inventory-path/25747)

<div class="topic-metadata">

**Author:** [@sandev\_singh](https://forum.ansible.com/u/sandev_singh)\
**Replies:** 1\
**Last updated:** [October 14, 2017, 2:26pm UTC](https://forum.ansible.com/t/inventory-path/25747 "2017-10-14T14:26:53Z")

</div>

Hi, I am new to ansible and learning it. I installed it using pip on my Mac book, but when try to go to the default inventory location: /etc/ansible/hosts, it says - sandevs-MacBook-Air:~ sandevsingh$ cd /etc/ansible -…

---

## [Role to generate System documentation.](https://forum.ansible.com/t/role-to-generate-system-documentation/24903)

<div class="topic-metadata">

**Author:** [@Stephen\_Eaton](https://forum.ansible.com/u/Stephen_Eaton)\
**Replies:** 2\
**Last updated:** [October 14, 2017, 3:47am UTC](https://forum.ansible.com/t/role-to-generate-system-documentation/24903 "2017-10-14T03:47:44Z")

</div>

G’day one and all, Yesterday while updating some system operations manuals I thought some of this could be done automatically by Ansible by using templates and gathered facts in conjunction with PDF generation. Before …

---

## [win\_shell - What's the proper way to use a command with a flag in ansible playbook or adhoc command.](https://forum.ansible.com/t/win-shell-whats-the-proper-way-to-use-a-command-with-a-flag-in-ansible-playbook-or-adhoc-command/25722)

<div class="topic-metadata">

**Author:** [@marcalfa1](https://forum.ansible.com/u/marcalfa1)\
**Replies:** 6\
**Last updated:** [October 13, 2017, 7:49am UTC](https://forum.ansible.com/t/win-shell-whats-the-proper-way-to-use-a-command-with-a-flag-in-ansible-playbook-or-adhoc-command/25722 "2017-10-13T07:49:24Z")

</div>

Trying to “dir /b c:\\Temp” using a playbook or via adhoc and getting the error message below. It seems to have a problem with “/b” in “Dir /b C:\\Temp” - hosts: all gather\_facts: yes tasks: - win\_shell: dir /b C:\\Temp …

---

## [Kill AWS EC2 instances based on TAG (without success)](https://forum.ansible.com/t/kill-aws-ec2-instances-based-on-tag-without-success/25745)

<div class="topic-metadata">

**Author:** [@Ricardson](https://forum.ansible.com/u/Ricardson)\
**Replies:** 0\
**Last updated:** [October 13, 2017, 1:04am UTC](https://forum.ansible.com/t/kill-aws-ec2-instances-based-on-tag-without-success/25745 "2017-10-13T01:04:20Z")

</div>

Hi All, I\`m struggling to get this working without success… Here my playbook. First a search my machines by tag and later try to terminate them.

---

## [docker\_container returned result Name: confusing?](https://forum.ansible.com/t/docker-container-returned-result-name-confusing/25743)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 1\
**Last updated:** [October 12, 2017, 8:16pm UTC](https://forum.ansible.com/t/docker-container-returned-result-name-confusing/25743 "2017-10-12T20:16:10Z")

</div>

This task name: start up target container docker\_container: image: ubuntu:xenial name: lab hostname: testing-docker pull: true detach: yes tty: yes command: sleep infinity state: started published\_ports: “808…

---

## [Why Does This Fail](https://forum.ansible.com/t/why-does-this-fail/25741)

<div class="topic-metadata">

**Author:** [@doug](https://forum.ansible.com/u/doug)\
**Replies:** 1\
**Last updated:** [October 12, 2017, 7:56pm UTC](https://forum.ansible.com/t/why-does-this-fail/25741 "2017-10-12T19:56:07Z")

</div>

Top-level nodes.yml:

---

## [Unexpected vault behavior](https://forum.ansible.com/t/unexpected-vault-behavior/25742)

<div class="topic-metadata">

**Author:** [@Ed\_Rice](https://forum.ansible.com/u/Ed_Rice)\
**Replies:** 0\
**Last updated:** [October 12, 2017, 7:45pm UTC](https://forum.ansible.com/t/unexpected-vault-behavior/25742 "2017-10-12T19:45:22Z")

</div>

I am noticing a strange behavior when I use vault to secure a password for a playbook. I am not sure if this happens with other vaulted info. I wrote a playbook that does an ipa-client-join and I used vault to secure my …

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=304)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=306)
