# Latest

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

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

**Page:** 616

---

## [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…

---

## [package dependencies isolation question](https://forum.ansible.com/t/package-dependencies-isolation-question/25641)

<div class="topic-metadata">

**Author:** [@franck\_labatut](https://forum.ansible.com/u/franck_labatut)\
**Replies:** 2\
**Last updated:** [October 17, 2017, 4:49pm UTC](https://forum.ansible.com/t/package-dependencies-isolation-question/25641 "2017-10-17T16:49:53Z")

</div>

Hi there, question for you when you have time : managing multiple vendor, consequently dealing with many yum/pip requirements, i’d like to isolate such dependencies, preferably per awx scm project. what would be the b…

---

## [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” } \` …

---

## [Fixing performance issues with pacman module](https://forum.ansible.com/t/fixing-performance-issues-with-pacman-module/25749)

<div class="topic-metadata">

**Author:** [@Jonas\_Schurmann](https://forum.ansible.com/u/Jonas_Schurmann)\
**Replies:** 2\
**Last updated:** [October 16, 2017, 6:44pm UTC](https://forum.ansible.com/t/fixing-performance-issues-with-pacman-module/25749 "2017-10-16T18:44:25Z")

</div>

Hey all, two weeks ago I spotted a performance problem when using the pacman module and described it in #31223. I would like to start working on a pull request to fix this problem, but I didn’t get any feedback at all. …

---

## [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 …

---

## [Solaris 10 - '~' directory created in home directory - unarchive fails](https://forum.ansible.com/t/solaris-10-directory-created-in-home-directory-unarchive-fails/25720)

<div class="topic-metadata">

**Author:** [@rmullinnix](https://forum.ansible.com/u/rmullinnix)\
**Replies:** 6\
**Last updated:** [October 13, 2017, 2:39pm UTC](https://forum.ansible.com/t/solaris-10-directory-created-in-home-directory-unarchive-fails/25720 "2017-10-13T14:39:32Z")

</div>

I have set of servers that are Solaris 10. When ansible is invoked against the remote hosts, it creates a ‘~’ directory in the home directory instead of viewing ‘~’ as the users home directory. xx64473z:apache$ pwd /ex…

---

## [Calling an Ansible role from inside an action plugin](https://forum.ansible.com/t/calling-an-ansible-role-from-inside-an-action-plugin/25746)

<div class="topic-metadata">

**Author:** [@Frank\_Kaiser](https://forum.ansible.com/u/Frank_Kaiser)\
**Replies:** 1\
**Last updated:** [October 13, 2017, 1:32pm UTC](https://forum.ansible.com/t/calling-an-ansible-role-from-inside-an-action-plugin/25746 "2017-10-13T13:32:32Z")

</div>

Hi Guys, I want to include another playbook in my playbook. Ansible allows to do this by using “include\_role” like so: include\_role: name: task\_from: While this is a simple and working solution I want to offer a…

---

## [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 …

---

## [howto use using external api to fill the survey forms for AWX](https://forum.ansible.com/t/howto-use-using-external-api-to-fill-the-survey-forms-for-awx/25740)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 0\
**Last updated:** [October 12, 2017, 7:10pm UTC](https://forum.ansible.com/t/howto-use-using-external-api-to-fill-the-survey-forms-for-awx/25740 "2017-10-12T19:10:44Z")

</div>

Hi all, I am testing AWX. I want to create custom surveys before running my job template and wondering whether i can fill multichoice forms from an external api and let the user choose those values? Any example or docu…

---

## [Dynamic inventory / Inline content help](https://forum.ansible.com/t/dynamic-inventory-inline-content-help/25739)

<div class="topic-metadata">

**Author:** [@Aaron\_Street](https://forum.ansible.com/u/Aaron_Street)\
**Replies:** 0\
**Last updated:** [October 12, 2017, 4:40pm UTC](https://forum.ansible.com/t/dynamic-inventory-inline-content-help/25739 "2017-10-12T16:40:48Z")

</div>

Hi all, I am passing a jenkins build job to Ansible that contain the Instance ID such as “i-0803f13f0236a495f” I want to used this as the input to the dynamic inventory and was hoping to use the ec2.py script to do this…

---

## [Ansible become-success command is logging variables](https://forum.ansible.com/t/ansible-become-success-command-is-logging-variables/25737)

<div class="topic-metadata">

**Author:** [@Jonathan\_Nunez\_Aguin](https://forum.ansible.com/u/Jonathan_Nunez_Aguin)\
**Replies:** 3\
**Last updated:** [October 12, 2017, 4:18pm UTC](https://forum.ansible.com/t/ansible-become-success-command-is-logging-variables/25737 "2017-10-12T16:18:04Z")

</div>

Hello, I have a small play that runs in a remote server as a user X, during the become process, Ansible seems to invoke a remote command (command.py) that gets logged in the remote machine syslog. If the task for this p…

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

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