# Latest

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

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

**Page:** 660

---

## [loop\_control with with\_together](https://forum.ansible.com/t/loop-control-with-with-together/24462)

<div class="topic-metadata">

**Author:** [@VenomMsk](https://forum.ansible.com/u/VenomMsk)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 9:10am UTC](https://forum.ansible.com/t/loop-control-with-with-together/24462 "2017-05-12T09:10:24Z")

</div>

Hi, I have two sets of data: set1 = \[ 1, 2 \] set2 = \[ \[‘a’,‘b’,‘c’\], \[‘d’,‘e’\] \] For every element from set1 I need to perform a task with parameters from set2. So I need to perform tasks with following parameters: t…

---

## [Adding a repo file before doing a yum install](https://forum.ansible.com/t/adding-a-repo-file-before-doing-a-yum-install/24437)

<div class="topic-metadata">

**Author:** [@Nicholas\_Sheridan](https://forum.ansible.com/u/Nicholas_Sheridan)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 8:07am UTC](https://forum.ansible.com/t/adding-a-repo-file-before-doing-a-yum-install/24437 "2017-05-12T08:07:29Z")

</div>

Hi forum newbie alert I want to do this: sudo vi /etc/yum.repos.d/kibana.repo \[kibana-4.4\] name=Kibana repository for 4.4.x packages baseurl=http://packages.elastic.co/kibana/4.4/centos gpgcheck=1 gpgkey=http://pa…

---

## [setting variables inside a loop](https://forum.ansible.com/t/setting-variables-inside-a-loop/24415)

<div class="topic-metadata">

**Author:** [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Replies:** 2\
**Last updated:** [May 12, 2017, 3:30am UTC](https://forum.ansible.com/t/setting-variables-inside-a-loop/24415 "2017-05-12T03:30:27Z")

</div>

Hi, I think I’m missing something obvious, so please point me in the right direction (ansible 2.3). name: load and run services include\_role: name: “resource\_{{ item.resource }}” vars: resource: “{{ item }}” with…

---

## [Ansible - Account Verification](https://forum.ansible.com/t/ansible-account-verification/24468)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [May 12, 2017, 2:46am UTC](https://forum.ansible.com/t/ansible-account-verification/24468 "2017-05-12T02:46:52Z")

</div>

You just need a module that gets the info you want, \`setup\` is the 'default fact gathering module' but its not really designed for audits. The \`getent\` module returns system db information, like users, but might not g…

---

## [The best way to change MySQL root password without copying a file text](https://forum.ansible.com/t/the-best-way-to-change-mysql-root-password-without-copying-a-file-text/24464)

<div class="topic-metadata">

**Author:** [@Tadeu\_Bernacchi](https://forum.ansible.com/u/Tadeu_Bernacchi)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 1:44am UTC](https://forum.ansible.com/t/the-best-way-to-change-mysql-root-password-without-copying-a-file-text/24464 "2017-05-12T01:44:48Z")

</div>

Hello guys, I’m new at Ansible and i was playing around with it and i was setting a galera-cluster with MariaDB, everything went well, but when i tried to set mysql\_secure\_installation using my playbook with Ansible i h…

---

## [Using Ansible to Harden ESXi 6.5](https://forum.ansible.com/t/using-ansible-to-harden-esxi-6-5/24446)

<div class="topic-metadata">

**Author:** [@Bob\_Nian](https://forum.ansible.com/u/Bob_Nian)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 1:42am UTC](https://forum.ansible.com/t/using-ansible-to-harden-esxi-6-5/24446 "2017-05-12T01:42:53Z")

</div>

Been working on a project that requires me to automate the hardening of my ESXi 6.5 hypervisor using Ansible by following the VMware Hardening Guidelines 6.5. So I’ve been wondering whether there’s anyone out there that …

---

## [Curl -F option and ansible URI module](https://forum.ansible.com/t/curl-f-option-and-ansible-uri-module/24467)

<div class="topic-metadata">

**Author:** [@Dean\_Kamali](https://forum.ansible.com/u/Dean_Kamali)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 12:56am UTC](https://forum.ansible.com/t/curl-f-option-and-ansible-uri-module/24467 "2017-05-12T00:56:03Z")

</div>

I’m trying to use ansible’s uri module to mimic curl command, I need to pass options when uploading an XML file. My curl command has number of options passed via -F, --form \<name=content\> I haven’t been able to find an …

---

## [group module not idempotent](https://forum.ansible.com/t/group-module-not-idempotent/24466)

<div class="topic-metadata">

**Author:** [@dwolfe](https://forum.ansible.com/u/dwolfe)\
**Replies:** 1\
**Last updated:** [May 11, 2017, 9:52pm UTC](https://forum.ansible.com/t/group-module-not-idempotent/24466 "2017-05-11T21:52:25Z")

</div>

Greetings Ansible Users, I’m new to Ansible so sorry if this is a dumb question, but I did look and found no answer. I am trying to add user groups to systems with the group module, but when it runs a second time, it e…

---

## [Automatic retry failed or unreachable hosts](https://forum.ansible.com/t/automatic-retry-failed-or-unreachable-hosts/24465)

<div class="topic-metadata">

**Author:** [@David\_Notivol](https://forum.ansible.com/u/David_Notivol)\
**Replies:** 0\
**Last updated:** [May 11, 2017, 4:02pm UTC](https://forum.ansible.com/t/automatic-retry-failed-or-unreachable-hosts/24465 "2017-05-11T16:02:58Z")

</div>

Hello, Is there a way of having an automatic retry for the unreachable hosts? With the retry files we can know which servers didn’t finish the playbook execution, so we can re-run it in the future. But can it be done a…

---

## [Ansible: user account auditing](https://forum.ansible.com/t/ansible-user-account-auditing/24460)

<div class="topic-metadata">

**Author:** [@Brian2](https://forum.ansible.com/u/Brian2)\
**Replies:** 0\
**Last updated:** [May 11, 2017, 11:46am UTC](https://forum.ansible.com/t/ansible-user-account-auditing/24460 "2017-05-11T11:46:41Z")

</div>

I just started using Ansible. Is there a way to Audit user accounts for RHEL in Ansiable ? I’m looking to get audit records, such as; user creation date, last logon. I’m familiar with “ausearch” , “aureport” & “lslogins”…

---

## [until loop in shell module](https://forum.ansible.com/t/until-loop-in-shell-module/24458)

<div class="topic-metadata">

**Author:** [@mhh](https://forum.ansible.com/u/mhh)\
**Replies:** 3\
**Last updated:** [May 11, 2017, 10:17am UTC](https://forum.ansible.com/t/until-loop-in-shell-module/24458 "2017-05-11T10:17:09Z")

</div>

Im thinking…, why this does not work? Task: name: Run validation query on db localy shell: docker exec -i postgres bash -c ‘psql -v --username “postgres” --dbname “postgres” -c “select 1”’ delegate\_to: “{{ item }}” …

---

## [Complex conditionnal when statement - second part is not evaluated](https://forum.ansible.com/t/complex-conditionnal-when-statement-second-part-is-not-evaluated/24459)

<div class="topic-metadata">

**Author:** [@Myssa](https://forum.ansible.com/u/Myssa)\
**Replies:** 0\
**Last updated:** [May 11, 2017, 9:50am UTC](https://forum.ansible.com/t/complex-conditionnal-when-statement-second-part-is-not-evaluated/24459 "2017-05-11T09:50:09Z")

</div>

Hello everyone ! I’ve got a small problem when trying to evaluate this task : name: Testing port 80 - 443 - 8443 on server\_x wait\_for: host=server\_x port={{item}} timeout=1 with\_items: 80 443 8443 when: (sg\_buildin…

---

## [AWS IAM create user with password reset](https://forum.ansible.com/t/aws-iam-create-user-with-password-reset/24457)

<div class="topic-metadata">

**Author:** [@David\_O\_Brien](https://forum.ansible.com/u/David_O_Brien)\
**Replies:** 0\
**Last updated:** [May 11, 2017, 6:22am UTC](https://forum.ansible.com/t/aws-iam-create-user-with-password-reset/24457 "2017-05-11T06:22:19Z")

</div>

Hi guys, I’m using the iam module (http://docs.ansible.com/ansible/iam\_module.html) to create a lot of users for a customer and I’m facing a problem with this module. it doesn’t seem to support forcing the new IAM use…

---

## [Help with lineinfile](https://forum.ansible.com/t/help-with-lineinfile/24393)

<div class="topic-metadata">

**Author:** [@Mike\_Johnston](https://forum.ansible.com/u/Mike_Johnston)\
**Replies:** 4\
**Last updated:** [May 11, 2017, 5:41am UTC](https://forum.ansible.com/t/help-with-lineinfile/24393 "2017-05-11T05:41:41Z")

</div>

I’m having a problem wrapping my head around something. There are other solutions out there that would solve my problem, but in the interest in learning to do something different I’m hoping someone can point out what I’m…

---

## [Possible 2.3 regression using any\_errors\_fatal and tasks under roles](https://forum.ansible.com/t/possible-2-3-regression-using-any-errors-fatal-and-tasks-under-roles/24454)

<div class="topic-metadata">

**Author:** [@Ed1](https://forum.ansible.com/u/Ed1)\
**Replies:** 1\
**Last updated:** [May 10, 2017, 10:34pm UTC](https://forum.ansible.com/t/possible-2-3-regression-using-any-errors-fatal-and-tasks-under-roles/24454 "2017-05-10T22:34:48Z")

</div>

In 2.3, there’s a possible regression with any\_errors\_fatal and tasks in roles. https://github.com/ansible/ansible/issues/14100 says to bring the question to the list, so here I am. In 2.3: $ ansible-playbook -i inven…

---

## [Feature Idea: Integrate/introduce group\_vars concept into roles](https://forum.ansible.com/t/feature-idea-integrate-introduce-group-vars-concept-into-roles/24456)

<div class="topic-metadata">

**Author:** [@james3](https://forum.ansible.com/u/james3)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 10:31pm UTC](https://forum.ansible.com/t/feature-idea-integrate-introduce-group-vars-concept-into-roles/24456 "2017-05-10T22:31:48Z")

</div>

Made this feature idea: Wanted to hear the community thoughts: https://github.com/ansible/ansible/issues/24473

---

## [What is the preferred way to loop over items with varying when statements?](https://forum.ansible.com/t/what-is-the-preferred-way-to-loop-over-items-with-varying-when-statements/24453)

<div class="topic-metadata">

**Author:** [@Ed1](https://forum.ansible.com/u/Ed1)\
**Replies:** 2\
**Last updated:** [May 10, 2017, 10:31pm UTC](https://forum.ansible.com/t/what-is-the-preferred-way-to-loop-over-items-with-varying-when-statements/24453 "2017-05-10T22:31:08Z")

</div>

I’ve got cases where I want to run the same task multiple times, with minor variances. I’ve been implementing that with a loop where each item has a property for its when statement, and the task itself resolves that prop…

---

## [ansible playbook issue](https://forum.ansible.com/t/ansible-playbook-issue/24455)

<div class="topic-metadata">

**Author:** [@88416.koppula](https://forum.ansible.com/u/88416.koppula)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 9:57pm UTC](https://forum.ansible.com/t/ansible-playbook-issue/24455 "2017-05-10T21:57:28Z")

</div>

When I run my playbook I’m getting below error message… TASK \[include\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ERROR! Unexpected Exception: zero length field name in format to see the full tr…

---

## [win\_acl and Windows domain accounts](https://forum.ansible.com/t/win-acl-and-windows-domain-accounts/24332)

<div class="topic-metadata">

**Author:** [@James\_Duff](https://forum.ansible.com/u/James_Duff)\
**Replies:** 2\
**Last updated:** [May 10, 2017, 8:00pm UTC](https://forum.ansible.com/t/win-acl-and-windows-domain-accounts/24332 "2017-05-10T20:00:37Z")

</div>

I am trying to create a playbook that will setup specific directories and ACLs on a Windows host. I can setup the ACL with a local user on the windows host but when I try setup the ACL for a domain account, I get back t…

---

## [Host output to Ansible-control](https://forum.ansible.com/t/host-output-to-ansible-control/24431)

<div class="topic-metadata">

**Author:** [@sourabh\_maheshwari](https://forum.ansible.com/u/sourabh_maheshwari)\
**Replies:** 1\
**Last updated:** [May 10, 2017, 7:12pm UTC](https://forum.ansible.com/t/host-output-to-ansible-control/24431 "2017-05-10T19:12:46Z")

</div>

Hey , I am trying to find out the java version of different host using this script

---

## [search a dict with json\_query](https://forum.ansible.com/t/search-a-dict-with-json-query/24452)

<div class="topic-metadata">

**Author:** [@Abhi\_Grover](https://forum.ansible.com/u/Abhi_Grover)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 6:30pm UTC](https://forum.ansible.com/t/search-a-dict-with-json-query/24452 "2017-05-10T18:30:29Z")

</div>

Is there a way to convert the following into “set\_fact”, where the {{item.key}} can be assigned to a variable in one line: name: search for pools set\_fact: matched\_pool: “{{item.key}}” with\_dict: “{{ bigip\_pools\[‘an…

---

## [DNSMADEEASY question ATTN Brice Burgess](https://forum.ansible.com/t/dnsmadeeasy-question-attn-brice-burgess/24450)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 5:36pm UTC](https://forum.ansible.com/t/dnsmadeeasy-question-attn-brice-burgess/24450 "2017-05-10T17:36:50Z")

</div>

Brice, I hope you are still around reading this. I have been successful in retrieving records from dnsmadeeasy with your module, and I can create a new record, but I can’t update one. I have this playbook: \`

---

## [Can't access json key in it.](https://forum.ansible.com/t/cant-access-json-key-in-it/24449)

<div class="topic-metadata">

**Author:** [@VenomMsk](https://forum.ansible.com/u/VenomMsk)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 3:42pm UTC](https://forum.ansible.com/t/cant-access-json-key-in-it/24449 "2017-05-10T15:42:11Z")

</div>

Hi, I get an array of JSON object and I need to extract all “ssl-listening-port” from it. I can get an array of the smallest structure, that contains this key: name: Debug debug: msg: “{{ port\_raw\_list | json\_query…

---

## [I want auto script,but something error](https://forum.ansible.com/t/i-want-auto-script-but-something-error/24336)

<div class="topic-metadata">

**Author:** [@user109](https://forum.ansible.com/u/user109)\
**Replies:** 3\
**Last updated:** [May 10, 2017, 3:22pm UTC](https://forum.ansible.com/t/i-want-auto-script-but-something-error/24336 "2017-05-10T15:22:05Z")

</div>

my centos deny remoteroot login and how can i improve it my code hosts: 192.168.30.75 remote\_user" chtadm become: true become\_user: root tasks: copy: src: /tmp/kevin/test dest:/tmp owner:root group:root mode…

---

## [Sensitive parameters in windows modules](https://forum.ansible.com/t/sensitive-parameters-in-windows-modules/24448)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 2:15pm UTC](https://forum.ansible.com/t/sensitive-parameters-in-windows-modules/24448 "2017-05-10T14:15:20Z")

</div>

In linux modules you can specify a parameter as no\_log like this: module = AnsibleModule( argument\_spec = dict( host=dict(default=“localhost”), user=dict(required=True), password=dict(required=True, no\_log=True), ) …

---

## [human-readable callback plugin? (human\_log.py) - Ansible 2.3](https://forum.ansible.com/t/human-readable-callback-plugin-human-log-py-ansible-2-3/24445)

<div class="topic-metadata">

**Author:** [@Rem](https://forum.ansible.com/u/Rem)\
**Replies:** 2\
**Last updated:** [May 10, 2017, 12:24pm UTC](https://forum.ansible.com/t/human-readable-callback-plugin-human-log-py-ansible-2-3/24445 "2017-05-10T12:24:34Z")

</div>

Is anyone using human-readable callback plugin with Ansible 2.3.x? Using this callback plugin https://github.com/n0ts/ansible-human\_log hasbeen great for reading the logs.Is anyone else using this callback plugin and ex…

---

## [issue faced while changing permission of files and directories using file module in ansible 2.3.0](https://forum.ansible.com/t/issue-faced-while-changing-permission-of-files-and-directories-using-file-module-in-ansible-2-3-0/24414)

<div class="topic-metadata">

**Author:** [@vibhav\_vishal\_singh](https://forum.ansible.com/u/vibhav_vishal_singh)\
**Replies:** 2\
**Last updated:** [May 10, 2017, 11:24am UTC](https://forum.ansible.com/t/issue-faced-while-changing-permission-of-files-and-directories-using-file-module-in-ansible-2-3-0/24414 "2017-05-10T11:24:10Z")

</div>

Hi All, I have been trying to avoid shell and command module to change permissions , I am using file module here . what I am trying : change permission of all directories inside a directory to 755 and all files to 644 …

---

## [sensu\_subscription module is broken on removing subscription - only the first time works.](https://forum.ansible.com/t/sensu-subscription-module-is-broken-on-removing-subscription-only-the-first-time-works/24443)

<div class="topic-metadata">

**Author:** [@James\_Kang](https://forum.ansible.com/u/James_Kang)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 6:50am UTC](https://forum.ansible.com/t/sensu-subscription-module-is-broken-on-removing-subscription-only-the-first-time-works/24443 "2017-05-10T06:50:41Z")

</div>

Hi sensu-subscription module seems broken if you try “remove” playbook twice. I had to patch the module and it worked. Please someone can verify and fix upstream - that would be awesome. Thanks in advance \[user@host:…

---

## [how to save the whole ansible\_facts from eos\_facts module into one file per host](https://forum.ansible.com/t/how-to-save-the-whole-ansible-facts-from-eos-facts-module-into-one-file-per-host/24442)

<div class="topic-metadata">

**Author:** [@James\_Kang](https://forum.ansible.com/u/James_Kang)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 6:11am UTC](https://forum.ansible.com/t/how-to-save-the-whole-ansible-facts-from-eos-facts-module-into-one-file-per-host/24442 "2017-05-10T06:11:18Z")

</div>

Hi, I am trying to save facts from eos\_facts module into a json file per host. But it seems there is NOT a way to access everything under “ansible\_facts” on one shot. I ended up doing a workaround, and creating multip…

---

## [How to save a whole ansible\_facts into a json file](https://forum.ansible.com/t/how-to-save-a-whole-ansible-facts-into-a-json-file/24441)

<div class="topic-metadata">

**Author:** [@James\_Kang](https://forum.ansible.com/u/James_Kang)\
**Replies:** 0\
**Last updated:** [May 10, 2017, 2:24am UTC](https://forum.ansible.com/t/how-to-save-a-whole-ansible-facts-into-a-json-file/24441 "2017-05-10T02:24:21Z")

</div>

Hi, I am trying to save Arista switches inventory information in json format per switch. But I could not figure it out - I was only able to access individual sub variable like “ansible\_net\_config”. What is want is the…

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

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