# Latest

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

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

**Page:** 551

---

## [Any suggestions for structuring a playbook, perhaps with rescue and always?](https://forum.ansible.com/t/any-suggestions-for-structuring-a-playbook-perhaps-with-rescue-and-always/27702)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 3:10pm UTC](https://forum.ansible.com/t/any-suggestions-for-structuring-a-playbook-perhaps-with-rescue-and-always/27702 "2018-06-04T15:10:36Z")

</div>

Hi all, I’m trying to sort out a playbook and have been reading about blocks, rescue, always. I’ve also tried using a handler with run\_once. But I’m still struggling. Here’s what I’m trying to achieve: I want to run …

---

## [New module development](https://forum.ansible.com/t/new-module-development/27697)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 12:16pm UTC](https://forum.ansible.com/t/new-module-development/27697 "2018-06-04T12:16:37Z")

</div>

Hello Community I am using the following guide to help me create a custom module: http://docs.ansible.com/ansible/latest/dev\_guide/developing\_modules\_general.html Can someone let me know if its possible to add multipl…

---

## [Gather info about various files from different servers and generate a CSV file](https://forum.ansible.com/t/gather-info-about-various-files-from-different-servers-and-generate-a-csv-file/27700)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 11:50am UTC](https://forum.ansible.com/t/gather-info-about-various-files-from-different-servers-and-generate-a-csv-file/27700 "2018-06-04T11:50:00Z")

</div>

Gather info about files in various hosts and generate csv file. Im trying to capture all xml files in a set hosts that have the string “cc:”. Also I want to know the usage of this pattern in the xml files , so I try to…

---

## [Gather\_Fact Issue while Configure New VM](https://forum.ansible.com/t/gather-fact-issue-while-configure-new-vm/27695)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 3\
**Last updated:** [June 4, 2018, 10:51am UTC](https://forum.ansible.com/t/gather-fact-issue-while-configure-new-vm/27695 "2018-06-04T10:51:10Z")

</div>

Hi Team, I want to configure new VM and ssh login setup 1st time through Ansible Playbook below is code.

---

## ["when: key1.key2 is defined" not working](https://forum.ansible.com/t/when-key1-key2-is-defined-not-working/27698)

<div class="topic-metadata">

**Author:** [@K\_de\_Jong](https://forum.ansible.com/u/K_de_Jong)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 8:57am UTC](https://forum.ansible.com/t/when-key1-key2-is-defined-not-working/27698 "2018-06-04T08:57:14Z")

</div>

I’m trying to create a condition which checks if a dict has a certain subkey, e.g.: when: key1.key2 is defined The when condition is always true if key1 is defined, but it doesn’t check if key2 is also defined. How can…

---

## [Changing default password for root user mysql](https://forum.ansible.com/t/changing-default-password-for-root-user-mysql/11989)

<div class="topic-metadata">

**Author:** [@PePe\_Amengual](https://forum.ansible.com/u/PePe_Amengual)\
**Replies:** 8\
**Last updated:** [June 4, 2018, 7:54am UTC](https://forum.ansible.com/t/changing-default-password-for-root-user-mysql/11989 "2018-06-04T07:54:56Z")

</div>

Hi. I’m trying to change the password of the root user for a fresh mysql install with : name: Changing default pass for user root for mysql action: mysql\_user name=root password=root but ir doesn’t work. am I missi…

---

## [win\_find - use result path](https://forum.ansible.com/t/win-find-use-result-path/27694)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 2\
**Last updated:** [June 3, 2018, 4:15pm UTC](https://forum.ansible.com/t/win-find-use-result-path/27694 "2018-06-03T16:15:15Z")

</div>

Hi I can’t find the way to use the result of win\_find module. I need to modify the files from the register and encounter some errors: \`

---

## [unarchive is slow to decompress very big tar.gz file](https://forum.ansible.com/t/unarchive-is-slow-to-decompress-very-big-tar-gz-file/26864)

<div class="topic-metadata">

**Author:** [@Check\_Peck](https://forum.ansible.com/u/Check_Peck)\
**Replies:** 8\
**Last updated:** [June 3, 2018, 1:55pm UTC](https://forum.ansible.com/t/unarchive-is-slow-to-decompress-very-big-tar-gz-file/26864 "2018-06-03T13:55:59Z")

</div>

I have a below playbook which I am trying to run but it takes forever. Size of “test.tar.gz” is 100GB. hosts: TEST\_BOX serial: 1 tasks: name: copy and untar latest tar.gz file unarchive: src=test.tar.gz dest=/data…

---

## [Setting Ansible config for additional modules.](https://forum.ansible.com/t/setting-ansible-config-for-additional-modules/27693)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 0\
**Last updated:** [June 3, 2018, 11:21am UTC](https://forum.ansible.com/t/setting-ansible-config-for-additional-modules/27693 "2018-06-03T11:21:59Z")

</div>

Hi I have installed some other modules used by My playbook namely, napalm and napalm-Ansible via pip in the venv of the awx\_task container as documented. Now the naplam modules require me to set the action\_plugins path…

---

## [updating an AWS security group?](https://forum.ansible.com/t/updating-an-aws-security-group/27692)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [June 2, 2018, 11:56pm UTC](https://forum.ansible.com/t/updating-an-aws-security-group/27692 "2018-06-02T23:56:56Z")

</div>

I have a need to add a rule to a security group. The security group was not created using Ansible. The rule format returned by ec2\_group\_facts is very different to the rule format used by ec2\_group. This means I cannot …

---

## [How can PAM packaged profile configuration be set with Ansible on Debian?](https://forum.ansible.com/t/how-can-pam-packaged-profile-configuration-be-set-with-ansible-on-debian/27691)

<div class="topic-metadata">

**Author:** [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Replies:** 0\
**Last updated:** [June 2, 2018, 11:31pm UTC](https://forum.ansible.com/t/how-can-pam-packaged-profile-configuration-be-set-with-ansible-on-debian/27691 "2018-06-02T23:31:25Z")

</div>

ansible 2.5.4 on OpenBSD 6.3 amd64 config file = /etc/ansible/ansible.cfg configured module search path = \[u'/home/dspruell/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'\] ansible python modu…

---

## [How to use with\_items loop with vmware\_guest module](https://forum.ansible.com/t/how-to-use-with-items-loop-with-vmware-guest-module/23592)

<div class="topic-metadata">

**Author:** [@Matti\_Rantakomi](https://forum.ansible.com/u/Matti_Rantakomi)\
**Replies:** 6\
**Last updated:** [June 2, 2018, 9:19pm UTC](https://forum.ansible.com/t/how-to-use-with-items-loop-with-vmware-guest-module/23592 "2018-06-02T21:19:25Z")

</div>

Hello, I’m trying to create new VM using vmware\_guest module with multiple disks which details are defined in host\_vars file. Unfortunately I can’t get it working. Is it even possible to use with\_items with vmware\_guest…

---

## [Call to ansible -m shell isn't pulling in the correct PATH setting.](https://forum.ansible.com/t/call-to-ansible-m-shell-isnt-pulling-in-the-correct-path-setting/27690)

<div class="topic-metadata">

**Author:** [@user106](https://forum.ansible.com/u/user106)\
**Replies:** 1\
**Last updated:** [June 2, 2018, 5:53pm UTC](https://forum.ansible.com/t/call-to-ansible-m-shell-isnt-pulling-in-the-correct-path-setting/27690 "2018-06-02T17:53:25Z")

</div>

Hey Gal’s N Guy’s, Ansible isn’t sourcing .bashrc or .bash\_profile when running -m shell. But when I login via ssh, there isn’t any issues. The shell PATH is set correctly in .bashrc and now also in .bash\_profile . As u…

---

## [API call](https://forum.ansible.com/t/api-call/27657)

<div class="topic-metadata">

**Author:** [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Replies:** 1\
**Last updated:** [June 1, 2018, 7:08pm UTC](https://forum.ansible.com/t/api-call/27657 "2018-06-01T19:08:51Z")

</div>

Hi, I am using terraform to launch the infrastructure (windows). 1) dynamic inventory of the machine to be registered in Ansible groups. 2.) how can I make rest api call to invoke the Ansible tower job template. ( I h…

---

## [ios\_config module - Cisco Small Business switch family](https://forum.ansible.com/t/ios-config-module-cisco-small-business-switch-family/23381)

<div class="topic-metadata">

**Author:** [@Islan\_Rocha](https://forum.ansible.com/u/Islan_Rocha)\
**Replies:** 2\
**Last updated:** [June 1, 2018, 7:02pm UTC](https://forum.ansible.com/t/ios-config-module-cisco-small-business-switch-family/23381 "2018-06-01T19:02:22Z")

</div>

hello everyone I spended last 2 days trying to use ios\_config module against SG300 switch. I late discoverd this switch family doesn\`t use Cisco IOS although has a CLI. :facepalm Is there anyone here that manage Cisco…

---

## [Ansible failing with 'No Route to Host' .](https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 1\
**Last updated:** [June 1, 2018, 5:52pm UTC](https://forum.ansible.com/t/ansible-failing-with-no-route-to-host/27684 "2018-06-01T17:52:16Z")

</div>

Hi, I am running a playbook against a RHEL 7.4 image which sits behind a proxy. SELINUX and the firewall have been disabled. I am using Ansible 2.5.3 Here is the task name: Add Docker repository. get\_url: url: “{{ …

---

## [Ansible bug on MacOS](https://forum.ansible.com/t/ansible-bug-on-macos/27687)

<div class="topic-metadata">

**Author:** [@Jay\_Rolette](https://forum.ansible.com/u/Jay_Rolette)\
**Replies:** 6\
**Last updated:** [June 1, 2018, 4:38pm UTC](https://forum.ansible.com/t/ansible-bug-on-macos/27687 "2018-06-01T16:38:47Z")

</div>

There is a long-standing bug in Ansible on MacOS where it can’t find various installed python modules because it is hardcoding the python path instead of using the typical #!/usr/bin/env python to get the correct path. h…

---

## [fact not being set when using raw module](https://forum.ansible.com/t/fact-not-being-set-when-using-raw-module/27677)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 8\
**Last updated:** [June 1, 2018, 3:21pm UTC](https://forum.ansible.com/t/fact-not-being-set-when-using-raw-module/27677 "2018-06-01T15:21:50Z")

</div>

Hello, I’m trying to to run a raw command against a linux host which does not have python installed. Here is my playbook: hosts: all gather\_facts: false tasks: name: Get OS Release Information raw: uname -a registe…

---

## [lookup not working](https://forum.ansible.com/t/lookup-not-working/27610)

<div class="topic-metadata">

**Author:** [@David\_Villasmil](https://forum.ansible.com/u/David_Villasmil)\
**Replies:** 1\
**Last updated:** [June 1, 2018, 2:43pm UTC](https://forum.ansible.com/t/lookup-not-working/27610 "2018-06-01T14:43:51Z")

</div>

Hello guys, i’m trying to use a variable inside a variable. https://pastebin.com/QmRX3jmz lookup SHUOLD work but it doesn’t… can anyone help?

---

## [password variable scope for delegate\_to](https://forum.ansible.com/t/password-variable-scope-for-delegate-to/27606)

<div class="topic-metadata">

**Author:** [@tod](https://forum.ansible.com/u/tod)\
**Replies:** 2\
**Last updated:** [June 1, 2018, 2:41pm UTC](https://forum.ansible.com/t/password-variable-scope-for-delegate-to/27606 "2018-06-01T14:41:55Z")

</div>

Hello all, I have a password I need to have on a delegate\_to task, but I don’t really want it passed to the other hosts. Is there a way to do this? I’ve tried setting the variable in a group\_vars for the machine the ta…

---

## [Permissions not being inherited for import\_role handlers](https://forum.ansible.com/t/permissions-not-being-inherited-for-import-role-handlers/27686)

<div class="topic-metadata">

**Author:** [@Karl\_Davis](https://forum.ansible.com/u/Karl_Davis)\
**Replies:** 1\
**Last updated:** [June 1, 2018, 2:15pm UTC](https://forum.ansible.com/t/permissions-not-being-inherited-for-import-role-handlers/27686 "2018-06-01T14:15:03Z")

</div>

Howdy all, I’ve got a role I’m using (https://github.com/ansible-ThoTeam/nexus3-oss) that has some handlers. The overall play I’m applying that role in doesn’t run with ‘become: true’ permissions, but I would like that …

---

## [Ansible error during server reboot](https://forum.ansible.com/t/ansible-error-during-server-reboot/27683)

<div class="topic-metadata">

**Author:** [@arnab\_sen](https://forum.ansible.com/u/arnab_sen)\
**Replies:** 3\
**Last updated:** [June 1, 2018, 8:56am UTC](https://forum.ansible.com/t/ansible-error-during-server-reboot/27683 "2018-06-01T08:56:26Z")

</div>

Hi I’m getting below error during sw upgrade of a server using Ansible. Remote machine is linux server. Note that the reboot is not initiated by Ansible. At the end of the sw upgrade the server reboot automatically (appl…

---

## [Creating VM from Template is Failing](https://forum.ansible.com/t/creating-vm-from-template-is-failing/27596)

<div class="topic-metadata">

**Author:** [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Replies:** 2\
**Last updated:** [June 1, 2018, 4:32am UTC](https://forum.ansible.com/t/creating-vm-from-template-is-failing/27596 "2018-06-01T04:32:40Z")

</div>

SUMMARY We are trying to create VM from template. I am facing issue at assigning ip line. ISSUE TYPE- Documentation Report COMPONENT NAME vsphere\_guest: ANSIBLE VERSION ansible 2.5.2 CONFIGURATION##### OS / ENVIRONM…

---

## [AWX UI unable to fetch Job details](https://forum.ansible.com/t/awx-ui-unable-to-fetch-job-details/27681)

<div class="topic-metadata">

**Author:** [@Sudheer\_Jejamma](https://forum.ansible.com/u/Sudheer_Jejamma)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 10:49pm UTC](https://forum.ansible.com/t/awx-ui-unable-to-fetch-job-details/27681 "2018-05-31T22:49:39Z")

</div>

Hello, I’m facing issues while trying to fetch job details on AWX UI. Error: Invalid search term entered. GET returned: -1 Can some one please help me out? I have attached screen shot for reference. Thanks, Sudheer. …

---

## [Ansible 2.5.4 is available](https://forum.ansible.com/t/ansible-2-5-4-is-available/27680)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 10:29pm UTC](https://forum.ansible.com/t/ansible-2-5-4-is-available/27680 "2018-05-31T22:29:14Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.4 is now available! How do you get it?

---

## [Ansible 2.5.4 is available](https://forum.ansible.com/t/ansible-2-5-4-is-available/27679)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 10:28pm UTC](https://forum.ansible.com/t/ansible-2-5-4-is-available/27679 "2018-05-31T22:28:55Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.4 is now available! How do you get it?

---

## [question about secondary server](https://forum.ansible.com/t/question-about-secondary-server/27678)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 9:46pm UTC](https://forum.ansible.com/t/question-about-secondary-server/27678 "2018-05-31T21:46:17Z")

</div>

I am wanting to build a second server. can one just dump the DB on the first and restore on the second? can one setup the second server as a replicated slave of the first? think of this as a hot standby

---

## [How to run ini file using playbook against the windows node](https://forum.ansible.com/t/how-to-run-ini-file-using-playbook-against-the-windows-node/27667)

<div class="topic-metadata">

**Author:** [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Replies:** 1\
**Last updated:** [May 31, 2018, 9:17pm UTC](https://forum.ansible.com/t/how-to-run-ini-file-using-playbook-against-the-windows-node/27667 "2018-05-31T21:17:18Z")

</div>

Hi, I had a ini file which will install sql server on windows. Can i know how can I run that ini file inside the playbook to apply to windows host. I just want to know how does the playbook looks like 2.) My ini file…

---

## [Best practices for specifying hosts and credentials in job templates?](https://forum.ansible.com/t/best-practices-for-specifying-hosts-and-credentials-in-job-templates/27629)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 2\
**Last updated:** [May 31, 2018, 6:32pm UTC](https://forum.ansible.com/t/best-practices-for-specifying-hosts-and-credentials-in-job-templates/27629 "2018-05-31T18:32:20Z")

</div>

Hello, I’m trying to figure out the best way to run fact gathering playbooks against different groups of hosts in AWX. Let’s say that I have a bunch of Cisco devices, and I want to run the ios\_facts module against them.…

---

## [Having problems with LDAP authentication](https://forum.ansible.com/t/having-problems-with-ldap-authentication/27664)

<div class="topic-metadata">

**Author:** [@Dennis1](https://forum.ansible.com/u/Dennis1)\
**Replies:** 3\
**Last updated:** [May 31, 2018, 5:17pm UTC](https://forum.ansible.com/t/having-problems-with-ldap-authentication/27664 "2018-05-31T17:17:35Z")

</div>

I’m new to Ansible and looking for some help setting up LDAP authentication for Ansible Tower AWX I’ve not been able to sign into Ansible Tower AWX using Domain Credentials. How can I troubleshoot this? Are there some l…

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

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