# Ansible Project

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

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

**Page:** 256

---

## [Searching / Installing Existing Updates](https://forum.ansible.com/t/searching-installing-existing-updates/27712)

<div class="topic-metadata">

**Author:** [@Mohammed\_Asif](https://forum.ansible.com/u/Mohammed_Asif)\
**Replies:** 0\
**Last updated:** [June 5, 2018, 3:35pm UTC](https://forum.ansible.com/t/searching-installing-existing-updates/27712 "2018-06-05T15:35:48Z")

</div>

Hi, I am using ansible 2.5.3 with Python 2.7.5 I’ve got an issue where with win\_updates where it doesn’t seem to find already checked updates. I understand with win\_updates search it should only search for new update…

---

## [AWS Redis In Transit Encryption Support in Ansible](https://forum.ansible.com/t/aws-redis-in-transit-encryption-support-in-ansible/27711)

<div class="topic-metadata">

**Author:** [@Nitin\_Dawar](https://forum.ansible.com/u/Nitin_Dawar)\
**Replies:** 0\
**Last updated:** [June 5, 2018, 3:18pm UTC](https://forum.ansible.com/t/aws-redis-in-transit-encryption-support-in-ansible/27711 "2018-06-05T15:18:02Z")

</div>

I am trying to spin up a redis cache in aws with in transit encryption enabled but not able to find an option to do that with ansible module. Any help would be appreciated.

---

## [Ansible Create Custom Module](https://forum.ansible.com/t/ansible-create-custom-module/27710)

<div class="topic-metadata">

**Author:** [@Madushan\_Chathuranga](https://forum.ansible.com/u/Madushan_Chathuranga)\
**Replies:** 1\
**Last updated:** [June 5, 2018, 2:11pm UTC](https://forum.ansible.com/t/ansible-create-custom-module/27710 "2018-06-05T14:11:59Z")

</div>

Hi All, I’m trying to create an custom module to execute some REST calls (I’m aware about uri module which already exists). I have created the module now I’m trying to execute the playbook with my custom module. I place…

---

## [Rsyncing a directory from a remote host to another remote host, with each remote host requiring separate SSH key,s user and ssh\_opts](https://forum.ansible.com/t/rsyncing-a-directory-from-a-remote-host-to-another-remote-host-with-each-remote-host-requiring-separate-ssh-key-s-user-and-ssh-opts/27705)

<div class="topic-metadata">

**Author:** [@DimK](https://forum.ansible.com/u/DimK)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 9:15pm UTC](https://forum.ansible.com/t/rsyncing-a-directory-from-a-remote-host-to-another-remote-host-with-each-remote-host-requiring-separate-ssh-key-s-user-and-ssh-opts/27705 "2018-06-04T21:15:05Z")

</div>

My problem is pretty simple, but so hard to solve with Ansible. I want to rsync a directory from a remote host to another remote host. The internet says I should use delegate\_to for the source machine to copy to the hos…

---

## [Script/How to export from ec2\_group\_facts and import into ec2\_group? AWS](https://forum.ansible.com/t/script-how-to-export-from-ec2-group-facts-and-import-into-ec2-group-aws/27351)

<div class="topic-metadata">

**Author:** [@Simon\_Tyler](https://forum.ansible.com/u/Simon_Tyler)\
**Replies:** 5\
**Last updated:** [June 4, 2018, 4:23pm UTC](https://forum.ansible.com/t/script-how-to-export-from-ec2-group-facts-and-import-into-ec2-group-aws/27351 "2018-06-04T16:23:20Z")

</div>

Dear Citizens of Ansible Project, I may have a need to export large numbers of security groups from VPCs and import them into new VPCs; basically I want to clone all the security groups from one VPC, and import them to …

---

## [Ansible workflow diagram](https://forum.ansible.com/t/ansible-workflow-diagram/27689)

<div class="topic-metadata">

**Author:** [@Kallu\_Srikanth](https://forum.ansible.com/u/Kallu_Srikanth)\
**Replies:** 4\
**Last updated:** [June 4, 2018, 3:21pm UTC](https://forum.ansible.com/t/ansible-workflow-diagram/27689 "2018-06-04T15:21:19Z")

</div>

Hello All, We started to use Ansible, Can somebody share best workflow diagram so that I can review and make changes that suit me? Thanks in advance

---

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

---

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

---

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

---

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

---

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

---

## [How to use group\_vars when managed host is in multiple groups?](https://forum.ansible.com/t/how-to-use-group-vars-when-managed-host-is-in-multiple-groups/27585)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 3\
**Last updated:** [May 31, 2018, 4:17pm UTC](https://forum.ansible.com/t/how-to-use-group-vars-when-managed-host-is-in-multiple-groups/27585 "2018-05-31T16:17:49Z")

</div>

Maybe the question I should be asking is how do people manage what packages get installed on what computers? My approach might be wrong? I’m trying to figure out how to use group\_vars for chocolatey packages to install…

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

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