# Ansible Project

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

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

**Page:** 235

---

## [User environment vars in lookup plugin](https://forum.ansible.com/t/user-environment-vars-in-lookup-plugin/28564)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN1](https://forum.ansible.com/u/Clement_VALENTIN1)\
**Replies:** 1\
**Last updated:** [September 13, 2018, 2:38pm UTC](https://forum.ansible.com/t/user-environment-vars-in-lookup-plugin/28564 "2018-09-13T14:38:01Z")

</div>

Hi, I trying to use environment vars in lookup plugin “hashivault”, but i have the feeling that lookup don’t load environment vars… Exemple : - name: USER Create User tags: account\_create\_user environm…

---

## [Use regex and variables in a when statement](https://forum.ansible.com/t/use-regex-and-variables-in-a-when-statement/28563)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 0\
**Last updated:** [September 13, 2018, 11:48am UTC](https://forum.ansible.com/t/use-regex-and-variables-in-a-when-statement/28563 "2018-09-13T11:48:12Z")

</div>

Hello! I need to run a task based on the stderr output of a previous task: My stderr output is as follows: “stderr”: “Failed to enable application app2\_20180601.05 : Application app1\_20180501.01 has not been disabled …

---

## [Newbie: Am I using add\_host correctly because I don't get the result I'm expecting](https://forum.ansible.com/t/newbie-am-i-using-add-host-correctly-because-i-dont-get-the-result-im-expecting/28550)

<div class="topic-metadata">

**Author:** [@Maria\_MacCallum](https://forum.ansible.com/u/Maria_MacCallum)\
**Replies:** 1\
**Last updated:** [September 13, 2018, 8:26am UTC](https://forum.ansible.com/t/newbie-am-i-using-add-host-correctly-because-i-dont-get-the-result-im-expecting/28550 "2018-09-13T08:26:07Z")

</div>

I’ve tried pre-defining an empty group and not defining, neither seems to work, the group seems to remain empty when I try to use it, I’m sure I’m missing something vital out. This is an extract: hosts: all-t4 need s…

---

## [Cannot attach multiple files to an email](https://forum.ansible.com/t/cannot-attach-multiple-files-to-an-email/28560)

<div class="topic-metadata">

**Author:** [@Matthieu\_Nantern](https://forum.ansible.com/u/Matthieu_Nantern)\
**Replies:** 1\
**Last updated:** [September 13, 2018, 6:42am UTC](https://forum.ansible.com/t/cannot-attach-multiple-files-to-an-email/28560 "2018-09-13T06:42:54Z")

</div>

Hi All ! I’m trying to attach multiple file to an email by using the mail module but it’s not working at all because I have parameters in my files’ name: - name: send an email mail: host: email-smtp.eu-west-1.ama…

---

## [newbie seeks for help about register](https://forum.ansible.com/t/newbie-seeks-for-help-about-register/28556)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 3\
**Last updated:** [September 12, 2018, 5:46pm UTC](https://forum.ansible.com/t/newbie-seeks-for-help-about-register/28556 "2018-09-12T17:46:51Z")

</div>

let\`s say I have some tasks below first I want to detect a folder exists or not in all developer\`s home\_dir and register to eus\_exist , and i will do something to whom did not have the folder( D/eus) name: detect if…

---

## [creating logical volume if does not exist](https://forum.ansible.com/t/creating-logical-volume-if-does-not-exist/28559)

<div class="topic-metadata">

**Author:** [@Brad2](https://forum.ansible.com/u/Brad2)\
**Replies:** 3\
**Last updated:** [September 12, 2018, 3:37pm UTC](https://forum.ansible.com/t/creating-logical-volume-if-does-not-exist/28559 "2018-09-12T15:37:51Z")

</div>

Relatively new to ansible. Trying to create a logical volume on some RHEL 7 servers. I have: \` name: make-lv lvol: vg: vg\_{{ inventory\_hostname\_short }} lv: lv\_ekb size: 100%FREE state: present \` which works fi…

---

## [Ansible ending support for Vsphere ESXI free hypervisor with deprecation of vsphere\_guest ?](https://forum.ansible.com/t/ansible-ending-support-for-vsphere-esxi-free-hypervisor-with-deprecation-of-vsphere-guest/26802)

<div class="topic-metadata">

**Author:** [@mgdavis967](https://forum.ansible.com/u/mgdavis967)\
**Replies:** 2\
**Last updated:** [September 12, 2018, 9:21am UTC](https://forum.ansible.com/t/ansible-ending-support-for-vsphere-esxi-free-hypervisor-with-deprecation-of-vsphere-guest/26802 "2018-09-12T09:21:33Z")

</div>

Hello, I’ve noticed that the vsphere\_guest modules that provides the ability to create/delete/manage a a guest VM through VMWARE vSphere is now deprecated. The module advised for use current/future use is the vmware\_gu…

---

## [Issues in creating AWS EFS via Ansible](https://forum.ansible.com/t/issues-in-creating-aws-efs-via-ansible/28506)

<div class="topic-metadata">

**Author:** [@P\_r1](https://forum.ansible.com/u/P_r1)\
**Replies:** 3\
**Last updated:** [September 12, 2018, 12:26am UTC](https://forum.ansible.com/t/issues-in-creating-aws-efs-via-ansible/28506 "2018-09-12T00:26:27Z")

</div>

I am creating a playbook to create a EFS in AWS, using Ansible, but running into errors. Please suggest how to resolve this error. Below is my ansible script:

---

## [Conditional when based on grep results](https://forum.ansible.com/t/conditional-when-based-on-grep-results/28555)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [September 11, 2018, 11:01pm UTC](https://forum.ansible.com/t/conditional-when-based-on-grep-results/28555 "2018-09-11T23:01:35Z")

</div>

Hey all, So I’m trying to do a check to see if a string exists in a file and to add if it does not. This is what I have: name: exists in file command: “grep string /var/log/file” register: string\_not\_exist name…

---

## [Lost in group\_vars, append](https://forum.ansible.com/t/lost-in-group-vars-append/28553)

<div class="topic-metadata">

**Author:** [@Arturas\_R](https://forum.ansible.com/u/Arturas_R)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 9:24pm UTC](https://forum.ansible.com/t/lost-in-group-vars-append/28553 "2018-09-11T21:24:07Z")

</div>

Hello Community, I could really use some help here. First of all, I would like to say, that I am with ansible for couple of days, so sorry in advance :slight\_smile: My use case: I am setting up ssh configuration for a…

---

## [Strange failure when trying to delegate\_to using a group member](https://forum.ansible.com/t/strange-failure-when-trying-to-delegate-to-using-a-group-member/28552)

<div class="topic-metadata">

**Author:** [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Replies:** 2\
**Last updated:** [September 11, 2018, 8:45pm UTC](https://forum.ansible.com/t/strange-failure-when-trying-to-delegate-to-using-a-group-member/28552 "2018-09-11T20:45:52Z")

</div>

I am trying to use a delegate\_to in a play where the delegated-to host is the (only) member of a group, where the groupname is ‘slurm-prictlr’. The play looks like: name: Ensure MUNGE key from Slurm primary controller …

---

## [Create IIS website with https binding only](https://forum.ansible.com/t/create-iis-website-with-https-binding-only/28539)

<div class="topic-metadata">

**Author:** [@Andriy\_Bilous\_ko](https://forum.ansible.com/u/Andriy_Bilous_ko)\
**Replies:** 4\
**Last updated:** [September 11, 2018, 6:32pm UTC](https://forum.ansible.com/t/create-iis-website-with-https-binding-only/28539 "2018-09-11T18:32:56Z")

</div>

Hi, Ansible 2.6.3 Target hosts: Windows Guys, could you please tell me if we have possibility to create IIS website using win\_iis\_website module with HTTPS binding only (without HTTP one) ? Like I can do this using P…

---

## [Ansible best practice - multiple administrators](https://forum.ansible.com/t/ansible-best-practice-multiple-administrators/28549)

<div class="topic-metadata">

**Author:** [@Jakub\_Kavka](https://forum.ansible.com/u/Jakub_Kavka)\
**Replies:** 2\
**Last updated:** [September 11, 2018, 4:23pm UTC](https://forum.ansible.com/t/ansible-best-practice-multiple-administrators/28549 "2018-09-11T16:23:11Z")

</div>

Hello, i would like to ask, what is best practice to handle more Ansible administrators from security perspective. We would like to login with SSH keys to both control machine and remotes. Is the best way to do this: …

---

## [Inventory script for Tilaa Cloud](https://forum.ansible.com/t/inventory-script-for-tilaa-cloud/28551)

<div class="topic-metadata">

**Author:** [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 12:09pm UTC](https://forum.ansible.com/t/inventory-script-for-tilaa-cloud/28551 "2018-09-11T12:09:18Z")

</div>

Hi, I’ve written (with a collegue) an inventory-script for the Tilaa cloud. Patches and improvements are welcome, but in the basis it should work at this time. AWX here uses it successfully. Code: https://github.com…

---

## [Add key to a List of dicts depending of a simple Array - Ansible Facts (package\_facts)](https://forum.ansible.com/t/add-key-to-a-list-of-dicts-depending-of-a-simple-array-ansible-facts-package-facts/28548)

<div class="topic-metadata">

**Author:** [@lucas.dagostino](https://forum.ansible.com/u/lucas.dagostino)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 8:08am UTC](https://forum.ansible.com/t/add-key-to-a-list-of-dicts-depending-of-a-simple-array-ansible-facts-package-facts/28548 "2018-09-11T08:08:37Z")

</div>

Hello everybody, I’m currently working on generating report for each inventory host thanks to ansible-cmdb. This tool is great but I have a problem to modify some facts: I use the package\_facts module to register insta…

---

## [range operator is appending a text](https://forum.ansible.com/t/range-operator-is-appending-a-text/28546)

<div class="topic-metadata">

**Author:** [@Abhijit\_Chakraborty](https://forum.ansible.com/u/Abhijit_Chakraborty)\
**Replies:** 1\
**Last updated:** [September 11, 2018, 7:33am UTC](https://forum.ansible.com/t/range-operator-is-appending-a-text/28546 "2018-09-11T07:33:34Z")

</div>

I am trying to uninstall a application using ansible. This is my playbook

---

## [ansible Failed when connected to H3C switch by ssh](https://forum.ansible.com/t/ansible-failed-when-connected-to-h3c-switch-by-ssh/28545)

<div class="topic-metadata">

**Author:** [@Jason\_Zhou](https://forum.ansible.com/u/Jason_Zhou)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 5:15am UTC](https://forum.ansible.com/t/ansible-failed-when-connected-to-h3c-switch-by-ssh/28545 "2018-09-11T05:15:17Z")

</div>

ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o Passwo…

---

## [Couldn't run ansible commands on GCE platform](https://forum.ansible.com/t/couldnt-run-ansible-commands-on-gce-platform/28544)

<div class="topic-metadata">

**Author:** [@Aditya\_Putta](https://forum.ansible.com/u/Aditya_Putta)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 4:55am UTC](https://forum.ansible.com/t/couldnt-run-ansible-commands-on-gce-platform/28544 "2018-09-11T04:55:03Z")

</div>

SUMMARY Couldn’t run ansible commands on GCE platform ISSUE TYPE My situation I am trying to use “-s -K --ask-pass” to exchange passwords I am using same user and root password across all nodes I don’t want to exchang…

---

## [How to pass EFS mount ID to another playbook?](https://forum.ansible.com/t/how-to-pass-efs-mount-id-to-another-playbook/28542)

<div class="topic-metadata">

**Author:** [@P\_r1](https://forum.ansible.com/u/P_r1)\
**Replies:** 0\
**Last updated:** [September 10, 2018, 11:01pm UTC](https://forum.ansible.com/t/how-to-pass-efs-mount-id-to-another-playbook/28542 "2018-09-10T23:01:39Z")

</div>

I am trying to automate the EFS creation and Mount it, using Ansible playbook, but not sure how to pass the mount\_point to another playbook. In my Ansible Tower workflow, the first job creates EFS in AWS and then on suc…

---

## [Right way to pass a command to command module when using \_execute\_module in custom action plugin](https://forum.ansible.com/t/right-way-to-pass-a-command-to-command-module-when-using-execute-module-in-custom-action-plugin/28540)

<div class="topic-metadata">

**Author:** [@Sankaravadivel\_S](https://forum.ansible.com/u/Sankaravadivel_S)\
**Replies:** 1\
**Last updated:** [September 10, 2018, 10:18pm UTC](https://forum.ansible.com/t/right-way-to-pass-a-command-to-command-module-when-using-execute-module-in-custom-action-plugin/28540 "2018-09-10T22:18:44Z")

</div>

I am building a custom action plugin and I am trying to invoke the command module using ActionBase.\_execute\_module. But unfortunately, I couldn’t find any document or samples showing how to pass the command to module\_arg…

---

## [Right way of developing dynamic inventory?](https://forum.ansible.com/t/right-way-of-developing-dynamic-inventory/28541)

<div class="topic-metadata">

**Author:** [@aaldi](https://forum.ansible.com/u/aaldi)\
**Replies:** 0\
**Last updated:** [September 10, 2018, 6:16pm UTC](https://forum.ansible.com/t/right-way-of-developing-dynamic-inventory/28541 "2018-09-10T18:16:34Z")

</div>

Is there a guide for developing dynamic inventory? (beyond the one already given here) What I’m looking for is more constraints/conditions to abide by. What are the rules to follow to make sure the outputs are correct? …

---

## [with\_items combined with when to set variables and then break](https://forum.ansible.com/t/with-items-combined-with-when-to-set-variables-and-then-break/28222)

<div class="topic-metadata">

**Author:** [@Sabrina\_Lautier](https://forum.ansible.com/u/Sabrina_Lautier)\
**Replies:** 3\
**Last updated:** [September 10, 2018, 2:54pm UTC](https://forum.ansible.com/t/with-items-combined-with-when-to-set-variables-and-then-break/28222 "2018-09-10T14:54:12Z")

</div>

Hi everyone, I have already read several post about this but haven’t found the answer. Basically I would like to set some variables when a condition is met while looping over a list of dictionaries, and then stop the l…

---

## [Ansible 2.5.9 is available](https://forum.ansible.com/t/ansible-2-5-9-is-available/28537)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 10, 2018, 12:03pm UTC](https://forum.ansible.com/t/ansible-2-5-9-is-available/28537 "2018-09-10T12:03:40Z")

</div>

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

---

## [\[WARNING\]:  \* Failed to parse /etc/ansible/hosts with ini plugin: /etc/ansible/hosts:5: Expected key=value, got: ansible\_winrm\_transport: basic](https://forum.ansible.com/t/warning-failed-to-parse-etc-ansible-hosts-with-ini-plugin-etc-ansible-hosts-expected-key-value-got-ansible-winrm-transport-basic/28535)

<div class="topic-metadata">

**Author:** [@VS1](https://forum.ansible.com/u/VS1)\
**Replies:** 1\
**Last updated:** [September 10, 2018, 9:27am UTC](https://forum.ansible.com/t/warning-failed-to-parse-etc-ansible-hosts-with-ini-plugin-etc-ansible-hosts-expected-key-value-got-ansible-winrm-transport-basic/28535 "2018-09-10T09:27:16Z")

</div>

\[all:vars\] ansible\_connection=winrm ansible\_user=doomaine\\jenkins ansible\_pass=asdasdasda ansible\_winrm\_transport: basic error : Failed to parse /etc/ansible/hosts with ini plugin: /etc/ansible/hosts:5: Expected k…

---

## [Opengear IP Assignments](https://forum.ansible.com/t/opengear-ip-assignments/28534)

<div class="topic-metadata">

**Author:** [@Jorge\_Vazquez](https://forum.ansible.com/u/Jorge_Vazquez)\
**Replies:** 0\
**Last updated:** [September 9, 2018, 2:40am UTC](https://forum.ansible.com/t/opengear-ip-assignments/28534 "2018-09-09T02:40:46Z")

</div>

I am trying to write a playbook to configure the Opengear Console 7196. This is a console with 96 ports that each need to be assigned an IP address. Each port will be assigned an IP address sequentially. The IP address c…

---

## [Vmware + when clause in Ansible](https://forum.ansible.com/t/vmware-when-clause-in-ansible/28533)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 0\
**Last updated:** [September 8, 2018, 6:06pm UTC](https://forum.ansible.com/t/vmware-when-clause-in-ansible/28533 "2018-09-08T18:06:47Z")

</div>

Hi I am not able to use the Vm Poweredoff status in my when clause. Can anyone tell me how to fix it. - name: "Collecting Vmware Guest Facts" hosts: localhost vars: msg: | {{ value.instance.hw\_power\_…

---

## [Standalone ESXI with Vmware (Evaluation Version ESXI)](https://forum.ansible.com/t/standalone-esxi-with-vmware-evaluation-version-esxi/28515)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 1\
**Last updated:** [September 8, 2018, 5:36pm UTC](https://forum.ansible.com/t/standalone-esxi-with-vmware-evaluation-version-esxi/28515 "2018-09-08T17:36:47Z")

</div>

Dear Team, I want to Run some shell commands in Vmware through Ansible. But i am facing Some errors. If possible can you help me. name: Run command inside a vm vmware\_vm\_shell: hostname: 192.168.119.129 username: x…

---

## [Mail Callback](https://forum.ansible.com/t/mail-callback/28528)

<div class="topic-metadata">

**Author:** [@JS11](https://forum.ansible.com/u/JS11)\
**Replies:** 3\
**Last updated:** [September 7, 2018, 12:33pm UTC](https://forum.ansible.com/t/mail-callback/28528 "2018-09-07T12:33:48Z")

</div>

Hello! I am trying to receive email alerts anytime a playbook fails. Could anyone guide me as to how I can configure / setup the mail callback feature to work? I tried un-commenting the following line in ansible.cfg a…

---

## [Issue while Ansible tower install on kubernetes cluster](https://forum.ansible.com/t/issue-while-ansible-tower-install-on-kubernetes-cluster/28527)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 0\
**Last updated:** [September 7, 2018, 9:57am UTC](https://forum.ansible.com/t/issue-while-ansible-tower-install-on-kubernetes-cluster/28527 "2018-09-07T09:57:00Z")

</div>

Hi, Trying to install and setup Ansible tower on kubernetes cluster. It is getting installed fine but while accessing it, getting the “502 bad gateway” error in browser. This is the deployment.yml, Am I missing somethi…

---

## [Ansible 2.6.4 is available](https://forum.ansible.com/t/ansible-2-6-4-is-available/28525)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [September 7, 2018, 5:24am UTC](https://forum.ansible.com/t/ansible-2-6-4-is-available/28525 "2018-09-07T05:24:44Z")

</div>

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

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

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