# Latest

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

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

**Page:** 649

---

## [Was my post eaten?](https://forum.ansible.com/t/was-my-post-eaten/24785)

<div class="topic-metadata">

**Author:** [@William\_Saxton](https://forum.ansible.com/u/William_Saxton)\
**Replies:** 1\
**Last updated:** [June 21, 2017, 9:31pm UTC](https://forum.ansible.com/t/was-my-post-eaten/24785 "2017-06-21T21:31:10Z")

</div>

I posted a rather long post yesterday and it seems to have not yet been approved. Others have. Is there a reason for this? I would really hate to have to re-write it again…

---

## [include uid with ansible entries in messages log](https://forum.ansible.com/t/include-uid-with-ansible-entries-in-messages-log/24788)

<div class="topic-metadata">

**Author:** [@Steve\_Zimmerman](https://forum.ansible.com/u/Steve_Zimmerman)\
**Replies:** 2\
**Last updated:** [June 21, 2017, 7:22pm UTC](https://forum.ansible.com/t/include-uid-with-ansible-entries-in-messages-log/24788 "2017-06-21T19:22:21Z")

</div>

Hello, I have an audit/security request to include the user id in the messages log for commands issued against a linux server. To illustrate, the commands are issued with as sudo: sudo ansible — results in /var/log/mes…

---

## [Trying to use selectattr to filter where attribute is not an empty list](https://forum.ansible.com/t/trying-to-use-selectattr-to-filter-where-attribute-is-not-an-empty-list/21917)

<div class="topic-metadata">

**Author:** [@Mark\_Gibson](https://forum.ansible.com/u/Mark_Gibson)\
**Replies:** 1\
**Last updated:** [June 21, 2017, 7:05pm UTC](https://forum.ansible.com/t/trying-to-use-selectattr-to-filter-where-attribute-is-not-an-empty-list/21917 "2017-06-21T19:05:25Z")

</div>

Hi I’m trying to select a set of objects where an attribute (of type list) is not empty. \` mylist: name: name1 list: name: name2 list: item1 item2 \` There seems to be no jinja2 test (in the documentation at lea…

---

## [Approved software list](https://forum.ansible.com/t/approved-software-list/24791)

<div class="topic-metadata">

**Author:** [@barbara\_volkman](https://forum.ansible.com/u/barbara_volkman)\
**Replies:** 0\
**Last updated:** [June 21, 2017, 5:33pm UTC](https://forum.ansible.com/t/approved-software-list/24791 "2017-06-21T17:33:29Z")

</div>

Hello, I am looking to get ansible on an approved software list within the us federal government. Is there a pic that can help identify an existing customer that I can reference? Thanks in advance.

---

## [s3 module can create a bucket, but cannot list bucket contents](https://forum.ansible.com/t/s3-module-can-create-a-bucket-but-cannot-list-bucket-contents/24778)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 2\
**Last updated:** [June 21, 2017, 5:01pm UTC](https://forum.ansible.com/t/s3-module-can-create-a-bucket-but-cannot-list-bucket-contents/24778 "2017-06-21T17:01:43Z")

</div>

I’m unable to get a list of an s3 bucket, Ansible says OK but no data is retrieved. ╰─➤ dpkg -l | grep boto ii python-boto 2.40.0-1ubuntu1 all Python interface to Amazon’s Web Services - Python 2.x ii python-boto3 1.4…

---

## [How can load an inventory file via a task within a playbook](https://forum.ansible.com/t/how-can-load-an-inventory-file-via-a-task-within-a-playbook/24772)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 4\
**Last updated:** [June 21, 2017, 4:00pm UTC](https://forum.ansible.com/t/how-can-load-an-inventory-file-via-a-task-within-a-playbook/24772 "2017-06-21T16:00:40Z")

</div>

I keep my inventory files for each environment in GIT repositories. I am working on some sort of a helper service which i am writing in Ansible and this should perform some (housekeeping) tasks on the specified servers, …

---

## [Accessing remote machines through Ansible to share the public key of central host ( initially) .](https://forum.ansible.com/t/accessing-remote-machines-through-ansible-to-share-the-public-key-of-central-host-initially/24789)

<div class="topic-metadata">

**Author:** [@Ritesh\_Sharma](https://forum.ansible.com/u/Ritesh_Sharma)\
**Replies:** 0\
**Last updated:** [June 21, 2017, 3:47pm UTC](https://forum.ansible.com/t/accessing-remote-machines-through-ansible-to-share-the-public-key-of-central-host-initially/24789 "2017-06-21T15:47:52Z")

</div>

Hi People , I am trying my hands with Ansible and read that python and SSH communication will be required to access the remote servers from central Ansible machine; What if i want to use Ansible right from the beginnin…

---

## [Error in creating instance (Inner Exception: create() takes at least 4 arguments (9 given))](https://forum.ansible.com/t/error-in-creating-instance-inner-exception-create-takes-at-least-4-arguments-9-given/22970)

<div class="topic-metadata">

**Author:** [@Lars\_Van\_Casteren](https://forum.ansible.com/u/Lars_Van_Casteren)\
**Replies:** 6\
**Last updated:** [June 21, 2017, 2:38pm UTC](https://forum.ansible.com/t/error-in-creating-instance-inner-exception-create-takes-at-least-4-arguments-9-given/22970 "2017-06-21T14:38:41Z")

</div>

Hi, I’m trying to create a vm instance via ansible on trystack. Modules such as os\_network, os\_subnet and os\_image\_facts are all working. When trying to use os\_server I get this message: fatal: \[localhost\]: FAILED! =\> …

---

## [Gathering facts in roles: Is it done multiple times?](https://forum.ansible.com/t/gathering-facts-in-roles-is-it-done-multiple-times/24782)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 4\
**Last updated:** [June 21, 2017, 1:42pm UTC](https://forum.ansible.com/t/gathering-facts-in-roles-is-it-done-multiple-times/24782 "2017-06-21T13:42:43Z")

</div>

Hi, from ansible's documentation I don't understand how ansible handles fact gathering when using roles: Are a host's facts gathered at each single playbook run? Or at each "role" run? Or only once? In most cases on…

---

## [referencing the instance id of an EC2 resource just created](https://forum.ansible.com/t/referencing-the-instance-id-of-an-ec2-resource-just-created/24775)

<div class="topic-metadata">

**Author:** [@Bill\_L](https://forum.ansible.com/u/Bill_L)\
**Replies:** 2\
**Last updated:** [June 21, 2017, 1:38pm UTC](https://forum.ansible.com/t/referencing-the-instance-id-of-an-ec2-resource-just-created/24775 "2017-06-21T13:38:13Z")

</div>

Hello, I am having a difficult time referencing the instance id of an EC2 resource that I have just created. After I create it, I would immediately like to terminate it. My code is below: Thank you, Bill

---

## [Will it work - async + poll + with\_items + include ?](https://forum.ansible.com/t/will-it-work-async-poll-with-items-include/22580)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 1\
**Last updated:** [June 21, 2017, 12:15pm UTC](https://forum.ansible.com/t/will-it-work-async-poll-with-items-include/22580 "2017-06-21T12:15:45Z")

</div>

Hi, I am trying to run a long running task asynchronously and monitor results at the end. (My target are not windows. I am just passing in windows system information to target linux host) My tasks don’t run asynchronou…

---

## [Run playbook unprivileged user](https://forum.ansible.com/t/run-playbook-unprivileged-user/24781)

<div class="topic-metadata">

**Author:** [@m.hippy.c](https://forum.ansible.com/u/m.hippy.c)\
**Replies:** 0\
**Last updated:** [June 21, 2017, 8:26am UTC](https://forum.ansible.com/t/run-playbook-unprivileged-user/24781 "2017-06-21T08:26:12Z")

</div>

Hello! I need to play the playbook unprivileged user. The user is not allowed to use bin / sh and usr / bin / python. How to solve this? Help me please!

---

## [issue with Cisco ios-config](https://forum.ansible.com/t/issue-with-cisco-ios-config/24780)

<div class="topic-metadata">

**Author:** [@Thai\_Nguyen](https://forum.ansible.com/u/Thai_Nguyen)\
**Replies:** 0\
**Last updated:** [June 21, 2017, 7:44am UTC](https://forum.ansible.com/t/issue-with-cisco-ios-config/24780 "2017-06-21T07:44:20Z")

</div>

Hi, I am trying to load a pretty long access-list to a Catalyst 3850 using Ansible ios-config module with the src option. name: copy to the acl to target switches ios\_template: src:a\_test\_acl.txt However it only wo…

---

## [Synchronize via sudo -- no tty present and no askpass program specified](https://forum.ansible.com/t/synchronize-via-sudo-no-tty-present-and-no-askpass-program-specified/19427)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 4\
**Last updated:** [June 21, 2017, 7:20am UTC](https://forum.ansible.com/t/synchronize-via-sudo-no-tty-present-and-no-askpass-program-specified/19427 "2017-06-21T07:20:18Z")

</div>

Hello, I have seen many similar topics but want to make sure my issue is the same. Our enterprise is taking a look at Ansible to handle non-root tasks. I am trying to use the synchronize module but having many issues ge…

---

## [iam\_policy does nothing, just echos OK on nonexistant policy](https://forum.ansible.com/t/iam-policy-does-nothing-just-echos-ok-on-nonexistant-policy/24777)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 0\
**Last updated:** [June 20, 2017, 9:40pm UTC](https://forum.ansible.com/t/iam-policy-does-nothing-just-echos-ok-on-nonexistant-policy/24777 "2017-06-20T21:40:03Z")

</div>

Ansible claims the task is “OK”, but it does not exist. Also I see no way to set the policy description field. Am I missing something or is the module completely broke? ╰─➤ dpkg -l | grep boto ii python-boto 2.40.0-1ub…

---

## [How can I detect Atomic version of CentOS with Ansible facts (setup) mechanism?](https://forum.ansible.com/t/how-can-i-detect-atomic-version-of-centos-with-ansible-facts-setup-mechanism/24763)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 4\
**Last updated:** [June 20, 2017, 7:17pm UTC](https://forum.ansible.com/t/how-can-i-detect-atomic-version-of-centos-with-ansible-facts-setup-mechanism/24763 "2017-06-20T19:17:08Z")

</div>

Hi, I have CentOS Atomic Host (http://www.projectatomic.io/). When I execute: ansible -m setup my\_atomic\_os I have: “ansible\_os\_family”: “RedHat” I see nowhere that this is a Atomic version of RedHat / CentOS (on A…

---

## [Search for value in variable array](https://forum.ansible.com/t/search-for-value-in-variable-array/24683)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 5\
**Last updated:** [June 20, 2017, 6:46pm UTC](https://forum.ansible.com/t/search-for-value-in-variable-array/24683 "2017-06-20T18:46:47Z")

</div>

I have created a couple of arrays using responses from commands via ntc\_ansible to a Cisco switch, one containing CDP neighbor information (with keys “local\_interface”, “neighbor” and “neighbor\_interface”) and the other …

---

## [How to loop into user defined variables and use them to generate file using jinja template in ansible?](https://forum.ansible.com/t/how-to-loop-into-user-defined-variables-and-use-them-to-generate-file-using-jinja-template-in-ansible/24746)

<div class="topic-metadata">

**Author:** [@Rushyang\_Darji](https://forum.ansible.com/u/Rushyang_Darji)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 6:41pm UTC](https://forum.ansible.com/t/how-to-loop-into-user-defined-variables-and-use-them-to-generate-file-using-jinja-template-in-ansible/24746 "2017-06-20T18:41:00Z")

</div>

Hi, I have a roles/myrole/vars/main.yml as below: HAProxy\_Vars: ADMIN: “{{ lookup(‘env’, ‘ADMIN’) }}” MANAGED1: “{{ lookup(‘env’, ‘MANAGED1’) }}” MANAGED2: “{{ lookup(‘env’, ‘MANAGED2’) }}” MANAGED1PORT: “{{ lookup…

---

## [ansible docker\_service - how to specify user to run container](https://forum.ansible.com/t/ansible-docker-service-how-to-specify-user-to-run-container/24774)

<div class="topic-metadata">

**Author:** [@Mark\_Chassy](https://forum.ansible.com/u/Mark_Chassy)\
**Replies:** 0\
**Last updated:** [June 20, 2017, 6:00pm UTC](https://forum.ansible.com/t/ansible-docker-service-how-to-specify-user-to-run-container/24774 "2017-06-20T18:00:36Z")

</div>

setup client installed with ansible 2.3.1.0 python version = 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) \[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)\] host: RHEL 7 installed with docker version 17.05.0-c…

---

## [vmware\_guest module](https://forum.ansible.com/t/vmware-guest-module/24773)

<div class="topic-metadata">

**Author:** [@Martin\_Schiotz](https://forum.ansible.com/u/Martin_Schiotz)\
**Replies:** 0\
**Last updated:** [June 20, 2017, 2:59pm UTC](https://forum.ansible.com/t/vmware-guest-module/24773 "2017-06-20T14:59:51Z")

</div>

Hi I have testet the Ansible vmware\_guest module against vCenter and ESXi 6.5 free trail version. Creating new vm guests based on templates works like a charm using vmware\_guest module. As I understand vmware\_guest use…

---

## [Ansible waits for async task to complete for non-zero poll value - Intended behavior or some problem here ?](https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 2:35pm UTC](https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770 "2017-06-20T14:35:23Z")

</div>

I want to start a long running task in my playbook and immediately move to the next task, and handle the async task return code later. Here is what i have: \`

---

## [on\_task\_stop callback in CallbackBase ?](https://forum.ansible.com/t/on-task-stop-callback-in-callbackbase/24747)

<div class="topic-metadata">

**Author:** [@Rey\_Remi](https://forum.ansible.com/u/Rey_Remi)\
**Replies:** 4\
**Last updated:** [June 20, 2017, 2:24pm UTC](https://forum.ansible.com/t/on-task-stop-callback-in-callbackbase/24747 "2017-06-20T14:24:59Z")

</div>

Hi all, I recently found the strength to start trying to contribute the Ansible project, please excuse my knowledge. I was looking at the profile\_tasks callback and saw that the time displayed after each tasks is in fa…

---

## [taking more than 10 minutes to launch GCE from ansible](https://forum.ansible.com/t/taking-more-than-10-minutes-to-launch-gce-from-ansible/24771)

<div class="topic-metadata">

**Author:** [@sakesh\_veerapaneni](https://forum.ansible.com/u/sakesh_veerapaneni)\
**Replies:** 0\
**Last updated:** [June 20, 2017, 11:37am UTC](https://forum.ansible.com/t/taking-more-than-10-minutes-to-launch-gce-from-ansible/24771 "2017-06-20T11:37:03Z")

</div>

Hi, it’s taking more than 10 minutes to launch GCE instance with ansible, wiith existing custom image. What will be the problem?

---

## [Conditionals based on empty JSON dict](https://forum.ansible.com/t/conditionals-based-on-empty-json-dict/24761)

<div class="topic-metadata">

**Author:** [@Panagiotis\_Atmatzidi](https://forum.ansible.com/u/Panagiotis_Atmatzidi)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 8:54am UTC](https://forum.ansible.com/t/conditionals-based-on-empty-json-dict/24761 "2017-06-20T08:54:59Z")

</div>

Hello list, I’m trying to automate an API call that adds an ‘A’ record to the linode DNS service. The relevant playbook snippet is:

---

## [lxd\_container: More than one root device found](https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 7:04am UTC](https://forum.ansible.com/t/lxd-container-more-than-one-root-device-found/24584 "2017-06-20T07:04:25Z")

</div>

Hi All, I have a very weird problem with the lxd\_container module. When I create a container, I get this message: fatal: \[localhost\]: FAILED! =\> {“actions”: , “changed”: false, “failed”: true, “msg”: “More than one ro…

---

## [Synchronize from one host to anothers](https://forum.ansible.com/t/synchronize-from-one-host-to-anothers/24759)

<div class="topic-metadata">

**Author:** [@Daniel\_Debny](https://forum.ansible.com/u/Daniel_Debny)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 5:14am UTC](https://forum.ansible.com/t/synchronize-from-one-host-to-anothers/24759 "2017-06-20T05:14:17Z")

</div>

Hi! I try run command “corosync-keygen -l creates=/etc/corosync/authkey” and send this key to all of my servers but I stil have problem with it. Can You help me? Just it looks like that and doesnt work: name: Genera…

---

## [Set Key Exchange Algorithm in Ansible version 2.3.0.0](https://forum.ansible.com/t/set-key-exchange-algorithm-in-ansible-version-2-3-0-0/24769)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [June 20, 2017, 3:11am UTC](https://forum.ansible.com/t/set-key-exchange-algorithm-in-ansible-version-2-3-0-0/24769 "2017-06-20T03:11:19Z")

</div>

have you tried setting it in ansible\_ssh\_args for that host?

---

## [Outputting only changed list items](https://forum.ansible.com/t/outputting-only-changed-list-items/24748)

<div class="topic-metadata">

**Author:** [@B\_Holmes](https://forum.ansible.com/u/B_Holmes)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 3:09am UTC](https://forum.ansible.com/t/outputting-only-changed-list-items/24748 "2017-06-20T03:09:47Z")

</div>

I have a vars.yml with a list of users: \` linux\_users: username: testuser1 state: present username: testuser2 state: present \` If I create them, then add a third: \` linux\_users: username: testuser1 st…

---

## [Error when create users with an external list](https://forum.ansible.com/t/error-when-create-users-with-an-external-list/24743)

<div class="topic-metadata">

**Author:** [@Neddy](https://forum.ansible.com/u/Neddy)\
**Replies:** 2\
**Last updated:** [June 20, 2017, 12:04am UTC](https://forum.ansible.com/t/error-when-create-users-with-an-external-list/24743 "2017-06-20T00:04:25Z")

</div>

I’m using Ansible 2.3.0 and writing a playbook that creates MySQL users based on a list of user. My playbook tree: \` –inventories –staging –hosts –roles –create\_mysql\_users –tasks –main.yml –vars –mysql\_us…

---

## [Ansible won't create dir when file exists with same name](https://forum.ansible.com/t/ansible-wont-create-dir-when-file-exists-with-same-name/24753)

<div class="topic-metadata">

**Author:** [@Rusty\_Roy](https://forum.ansible.com/u/Rusty_Roy)\
**Replies:** 1\
**Last updated:** [June 19, 2017, 11:34pm UTC](https://forum.ansible.com/t/ansible-wont-create-dir-when-file-exists-with-same-name/24753 "2017-06-19T23:34:42Z")

</div>

I have the following task: \` name: create tmp dir to copy db sql to file: path=/tmp/sql state=directory \` When I run it, I get the error: \` TASK \[mysql-data : create tmp dir to copy db sql to\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

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

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