# Ansible Project

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

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

**Page:** 284

---

## [win\_domain\_membership - Setting Hostname when No Domain Is Present](https://forum.ansible.com/t/win-domain-membership-setting-hostname-when-no-domain-is-present/26667)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 1\
**Last updated:** [February 6, 2018, 1:54am UTC](https://forum.ansible.com/t/win-domain-membership-setting-hostname-when-no-domain-is-present/26667 "2018-02-06T01:54:19Z")

</div>

I have a windows ec2 instance, that I would like to set the hostname on. Issue being, the module wants Domain Admin credentials which do not exist so I am not sure what is really needed here. ansible 2.4.3.0 config fil…

---

## [Help printing out key/value pair from a register?](https://forum.ansible.com/t/help-printing-out-key-value-pair-from-a-register/26665)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [February 6, 2018, 1:14am UTC](https://forum.ansible.com/t/help-printing-out-key-value-pair-from-a-register/26665 "2018-02-06T01:14:21Z")

</div>

I have a register with the following output of a query from the acl module. \` ok: \[server.domain.com\] =\> { “acl\_query.results”: \[ { “\_ansible\_item\_result”: true, “\_ansible\_no\_log”: false, “changed”: false, “item”…

---

## [Ansible scans all files under host\_vars when executing a playbook](https://forum.ansible.com/t/ansible-scans-all-files-under-host-vars-when-executing-a-playbook/26648)

<div class="topic-metadata">

**Author:** [@Carl\_Wainwright](https://forum.ansible.com/u/Carl_Wainwright)\
**Replies:** 4\
**Last updated:** [February 5, 2018, 7:27pm UTC](https://forum.ansible.com/t/ansible-scans-all-files-under-host-vars-when-executing-a-playbook/26648 "2018-02-05T19:27:44Z")

</div>

Greetings, I trying to understand if my setup is correct or not given the subject matter. When I run a playbook on a particular host and a host\_vars file for another host has a syntactical error the playbook execution …

---

## [Ansible keepalived increment int](https://forum.ansible.com/t/ansible-keepalived-increment-int/26666)

<div class="topic-metadata">

**Author:** [@Owen\_Corcoran](https://forum.ansible.com/u/Owen_Corcoran)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 6:17pm UTC](https://forum.ansible.com/t/ansible-keepalived-increment-int/26666 "2018-02-05T18:17:09Z")

</div>

Hi all I have a template I've been working on for keepalived and as part of the template, I want to get it to loop through a list of virtual ips and sub interface eth0 based on the number of virtual ips to manage . What…

---

## [Stuck on with\_items and trying to pass specific value from 1 task to the next](https://forum.ansible.com/t/stuck-on-with-items-and-trying-to-pass-specific-value-from-1-task-to-the-next/26647)

<div class="topic-metadata">

**Author:** [@davros1984](https://forum.ansible.com/u/davros1984)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 6:10pm UTC](https://forum.ansible.com/t/stuck-on-with-items-and-trying-to-pass-specific-value-from-1-task-to-the-next/26647 "2018-02-05T18:10:26Z")

</div>

Hi, I’ve spent the past few days trying to find a solution to a challenge I have. Hopefully someone here has the answer. Here is a slimmed down version, which hopefully will help me move forwards. \` hosts: satellit…

---

## [The loop variable 'item' is already in use. You should set the \`loop\_var\` value in the \`loop\_control\` option for the task to something else to avoid variable collisions and unexpected behavior.](https://forum.ansible.com/t/the-loop-variable-item-is-already-in-use-you-should-set-the-loop-var-value-in-the-loop-control-option-for-the-task-to-something-else-to-avoid-variable-collisions-and-unexpected-behavior/26664)

<div class="topic-metadata">

**Author:** [@Moncy\_Varghese](https://forum.ansible.com/u/Moncy_Varghese)\
**Replies:** 2\
**Last updated:** [February 5, 2018, 4:49pm UTC](https://forum.ansible.com/t/the-loop-variable-item-is-already-in-use-you-should-set-the-loop-var-value-in-the-loop-control-option-for-the-task-to-something-else-to-avoid-variable-collisions-and-unexpected-behavior/26664 "2018-02-05T16:49:57Z")

</div>

Dear All, I am having issues running the final step for ansible , openstack-ansible setup-openstack.yml .It reports the below error /opt/openstack-ansible/playbooks# screen Monday 05 February 2018 16:27:19 +0300 (0:00…

---

## [Dynamic reusability of a playbook — include\_tasks, include\_role, import\_playbook …  Mission impossible?](https://forum.ansible.com/t/dynamic-reusability-of-a-playbook-include-tasks-include-role-import-playbook-mission-impossible/26649)

<div class="topic-metadata">

**Author:** [@Stas\_Fomin](https://forum.ansible.com/u/Stas_Fomin)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 3:14pm UTC](https://forum.ansible.com/t/dynamic-reusability-of-a-playbook-include-tasks-include-role-import-playbook-mission-impossible/26649 "2018-02-05T15:14:43Z")

</div>

Hello all. Consider following sample project: https://github.com/belonesox/ansible\_dynamic\_role\_howto With tree: . ├── playbook.yml ├── run-playbook └── somedir └── dynamically\_defined\_dir ├── do.yml ├── roles …

---

## [Trimming](https://forum.ansible.com/t/trimming/26662)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 3:04pm UTC](https://forum.ansible.com/t/trimming/26662 "2018-02-05T15:04:59Z")

</div>

hi, i have a variable registered as Location and the value is C:\\Windows\\System32, i want to modify it to C:\\windows\\felik , i would like to modify the location upto drive level wherever required… how can i do this

---

## [To Login SOAP API](https://forum.ansible.com/t/to-login-soap-api/26660)

<div class="topic-metadata">

**Author:** [@rajasekhar\_mutyala](https://forum.ansible.com/u/rajasekhar_mutyala)\
**Replies:** 2\
**Last updated:** [February 5, 2018, 1:22pm UTC](https://forum.ansible.com/t/to-login-soap-api/26660 "2018-02-05T13:22:27Z")

</div>

Hi All, I am trying to login and perform some taks using SOAP API with ansible. Can you please let me know how to call SOAP API along with examples would really help. Thanks Rajasekhar

---

## [ansible conditions](https://forum.ansible.com/t/ansible-conditions/26622)

<div class="topic-metadata">

**Author:** [@Sidh](https://forum.ansible.com/u/Sidh)\
**Replies:** 9\
**Last updated:** [February 5, 2018, 12:14pm UTC](https://forum.ansible.com/t/ansible-conditions/26622 "2018-02-05T12:14:24Z")

</div>

Hi, Below snippet sometimes working and sometimes failing. So, i am executing it with jenkins and idea is that if parameter is defined then script should run otherwise it should not run. Can anyone please enlighten me …

---

## [Creating multiple rules on an AWS load balancer listener](https://forum.ansible.com/t/creating-multiple-rules-on-an-aws-load-balancer-listener/26656)

<div class="topic-metadata">

**Author:** [@george](https://forum.ansible.com/u/george)\
**Replies:** 2\
**Last updated:** [February 5, 2018, 8:53am UTC](https://forum.ansible.com/t/creating-multiple-rules-on-an-aws-load-balancer-listener/26656 "2018-02-05T08:53:32Z")

</div>

Hi All, I have an application load balancer in AWS with an HTTP listener configured (another tool provisioned it, not ansible). Anyway my task is to add rules to its HTTP listener using Ansible by looping through a vars…

---

## [New module return type](https://forum.ansible.com/t/new-module-return-type/26658)

<div class="topic-metadata">

**Author:** [@matzehollerbach](https://forum.ansible.com/u/matzehollerbach)\
**Replies:** 3\
**Last updated:** [February 4, 2018, 11:04pm UTC](https://forum.ansible.com/t/new-module-return-type/26658 "2018-02-04T23:04:24Z")

</div>

I’m currently developing my first ansible module. It can read/write os x settings, since these settings can be nested the return type can be an integer, float, string, dict, list, etc… When I run the validate-modules te…

---

## [Using tower for automaed patching](https://forum.ansible.com/t/using-tower-for-automaed-patching/26657)

<div class="topic-metadata">

**Author:** [@D11](https://forum.ansible.com/u/D11)\
**Replies:** 0\
**Last updated:** [February 4, 2018, 3:33pm UTC](https://forum.ansible.com/t/using-tower-for-automaed-patching/26657 "2018-02-04T15:33:46Z")

</div>

Hello, I am new to tower, i have a plan to design patching as a services for automated patching on Linux box, i am also using satellite6 for patch information. Does anyone have implemented it ? If you can share your id…

---

## [ssh connection doesn't work](https://forum.ansible.com/t/ssh-connection-doesnt-work/26655)

<div class="topic-metadata">

**Author:** [@jonathan.recly](https://forum.ansible.com/u/jonathan.recly)\
**Replies:** 2\
**Last updated:** [February 4, 2018, 1:38pm UTC](https://forum.ansible.com/t/ssh-connection-doesnt-work/26655 "2018-02-04T13:38:52Z")

</div>

Hi everybody, I have some problems to use ansible. I use ansible version 2.4.3.0 i I testing just one host with IP and port (I have port fowarding). I copying ssh pub key (ssh-copy-id). I try to install Git on the t…

---

## [pyOpenSSL is in Python path but Ansible does not see it (Openssl\_certificate module)](https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651)

<div class="topic-metadata">

**Author:** [@Michael\_Bubb](https://forum.ansible.com/u/Michael_Bubb)\
**Replies:** 1\
**Last updated:** [February 4, 2018, 8:04am UTC](https://forum.ansible.com/t/pyopenssl-is-in-python-path-but-ansible-does-not-see-it-openssl-certificate-module/26651 "2018-02-04T08:04:29Z")

</div>

When trying to run the Openssl\_certificate module with provider=assertonly I am getting “The python pyOpenSSL library is required” but it looks like that is available to Python: python -m OpenSSL.debug \` pyOpenSSL: …

---

## [Ansible dynamic looping](https://forum.ansible.com/t/ansible-dynamic-looping/26632)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan2](https://forum.ansible.com/u/Andrew_Morgan2)\
**Replies:** 9\
**Last updated:** [February 4, 2018, 4:24am UTC](https://forum.ansible.com/t/ansible-dynamic-looping/26632 "2018-02-04T04:24:20Z")

</div>

Hello all, I have a play I want to run wich deletes all hosts matching a certain criteria: \` tasks: name: Delete unavailable nodes zabbix\_host: server\_url: http://zabbix.aa.net/zabbix login\_user: Admin login\_pas…

---

## [How to store ansible vault password in jenkins](https://forum.ansible.com/t/how-to-store-ansible-vault-password-in-jenkins/26637)

<div class="topic-metadata">

**Author:** [@Jayashri\_Garud](https://forum.ansible.com/u/Jayashri_Garud)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 7:52pm UTC](https://forum.ansible.com/t/how-to-store-ansible-vault-password-in-jenkins/26637 "2018-02-02T19:52:31Z")

</div>

Hi All, We are using ansible vault to encrypt group\_vars in our environment. We are using github to store code and jenkins for CI. I am able to use ansible vault locally but I want to use ansible vault in automated syst…

---

## [\--limit to run specific role for a host which is in multiple groups in inventory](https://forum.ansible.com/t/limit-to-run-specific-role-for-a-host-which-is-in-multiple-groups-in-inventory/26646)

<div class="topic-metadata">

**Author:** [@Rajesh\_Ramachandran](https://forum.ansible.com/u/Rajesh_Ramachandran)\
**Replies:** 0\
**Last updated:** [February 2, 2018, 4:28pm UTC](https://forum.ansible.com/t/limit-to-run-specific-role-for-a-host-which-is-in-multiple-groups-in-inventory/26646 "2018-02-02T16:28:42Z")

</div>

Hello, I need to limit ansible to run specific role by limiting with groups in inventory. The inventory and role layouts listed below cannot be changed in our environment. For example : Inventory (all three groups hav…

---

## [Ansible Tower Installation failed in RHEL 7.4 with error pkg\_resources.DistributionNotFound: awx==3.2.2](https://forum.ansible.com/t/ansible-tower-installation-failed-in-rhel-7-4-with-error-pkg-resources-distributionnotfound-awx-3-2-2/26635)

<div class="topic-metadata">

**Author:** [@Mark\_Lam](https://forum.ansible.com/u/Mark_Lam)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 4:16pm UTC](https://forum.ansible.com/t/ansible-tower-installation-failed-in-rhel-7-4-with-error-pkg-resources-distributionnotfound-awx-3-2-2/26635 "2018-02-02T16:16:34Z")

</div>

Hi all The installation fails in the step “Migrate the Tower database schema” after run file setup.sh in ansible-tower-setup-3.2.2 May I miss any setting ? Please help me to take a look. Thanks TASK \[awx\_install : S…

---

## [Connection to Vyatta vRouter v5600](https://forum.ansible.com/t/connection-to-vyatta-vrouter-v5600/26643)

<div class="topic-metadata">

**Author:** [@saiddavid](https://forum.ansible.com/u/saiddavid)\
**Replies:** 0\
**Last updated:** [February 2, 2018, 2:41pm UTC](https://forum.ansible.com/t/connection-to-vyatta-vrouter-v5600/26643 "2018-02-02T14:41:04Z")

</div>

Hi All, I begin in Ansible. First test: 3 VM on my PC: 2 vrouters and one Ubuntu VM, all in the same subnet. All ping are ok, Telnet and SSH well configured, and well connected. When i initiate an "ad HOC " command t…

---

## [Check disk space/cleanup if full](https://forum.ansible.com/t/check-disk-space-cleanup-if-full/26623)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 1:02pm UTC](https://forum.ansible.com/t/check-disk-space-cleanup-if-full/26623 "2018-02-02T13:02:07Z")

</div>

Across a number of different flavors of Linux as well as AIX, I need to clean up our splunkforwarder space. I’ve tried numerous different approaches and am running into errors. This should be rather simple, but it is pro…

---

## [WinRM error: ntlm: (u'http', u'Bad HTTP response returned from server. Code 500')](https://forum.ansible.com/t/winrm-error-ntlm-uhttp-ubad-http-response-returned-from-server-code-500/24722)

<div class="topic-metadata">

**Author:** [@Onallion](https://forum.ansible.com/u/Onallion)\
**Replies:** 3\
**Last updated:** [February 2, 2018, 10:21am UTC](https://forum.ansible.com/t/winrm-error-ntlm-uhttp-ubad-http-response-returned-from-server-code-500/24722 "2018-02-02T10:21:42Z")

</div>

Hey guys, I currently have four Windows Server 2012 servers I want to manage via Ansible. On the first one, I turned off the Windows Firewall, added Ansible user as local admin, and ran the Powershell script. I can wi…

---

## [Ansible & Jenkins integration issue](https://forum.ansible.com/t/ansible-jenkins-integration-issue/26596)

<div class="topic-metadata">

**Author:** [@GornerM](https://forum.ansible.com/u/GornerM)\
**Replies:** 10\
**Last updated:** [February 2, 2018, 8:30am UTC](https://forum.ansible.com/t/ansible-jenkins-integration-issue/26596 "2018-02-02T08:30:44Z")

</div>

Ansible playbooks passes without any issues, when I run it directly from cli (also inside of Jenkins workspace) But I receives the following error "FAILED! =\> {“failed”: true, “msg”: “ERROR! the handler ‘juniper\_junos\_…

---

## [How to add os based variables into group\_vars](https://forum.ansible.com/t/how-to-add-os-based-variables-into-group-vars/26610)

<div class="topic-metadata">

**Author:** [@sriman\_dharba](https://forum.ansible.com/u/sriman_dharba)\
**Replies:** 2\
**Last updated:** [February 2, 2018, 6:51am UTC](https://forum.ansible.com/t/how-to-add-os-based-variables-into-group-vars/26610 "2018-02-02T06:51:36Z")

</div>

Hello, I wanted to manage repo names from group\_vars based on OS type. I have a requirement to set reponames for different OS & versions like Centos/Redhat/Ubuntu with all stable versions. The goal is to manage future r…

---

## [How to do stuff on the remote Windows node from the command node?](https://forum.ansible.com/t/how-to-do-stuff-on-the-remote-windows-node-from-the-command-node/26628)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 1\
**Last updated:** [February 2, 2018, 4:37am UTC](https://forum.ansible.com/t/how-to-do-stuff-on-the-remote-windows-node-from-the-command-node/26628 "2018-02-02T04:37:49Z")

</div>

Linux Command Node: CentOs 6, Ansible 2.1, Python 2.7.13 Windows Remote Nodes: Windows 7, Powershell 3.0 Encryption: SSL So far I’ve figured out how to use these tricks in my playbook to do stuff on the remote Windows…

---

## [yum module is not listing the appd packages](https://forum.ansible.com/t/yum-module-is-not-listing-the-appd-packages/26631)

<div class="topic-metadata">

**Author:** [@geetha\_chowdary\_chal](https://forum.ansible.com/u/geetha_chowdary_chal)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 11:56pm UTC](https://forum.ansible.com/t/yum-module-is-not-listing-the-appd-packages/26631 "2018-02-01T23:56:54Z")

</div>

I am running yum module to list the packages of appdynamics. But i am not able to see the packages name: Appdynamics packages yum: list: Appdynamics\* register: result other way i tried is name: Appdynamics packag…

---

## [\--limit \[exclusive:inclusive\] not working as expected](https://forum.ansible.com/t/limit-exclusive-inclusive-not-working-as-expected/26627)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 9:53pm UTC](https://forum.ansible.com/t/limit-exclusive-inclusive-not-working-as-expected/26627 "2018-02-01T21:53:12Z")

</div>

I have the following hosts defined: \[router\] rr01 rr\[03:99\] rr\[100:114\] I then execute a command that contains “–limit router\[39:49\]”. Hosts rr41 through rr51 have the command executed on them. I’m expecting the com…

---

## [Role to Create/Tear Down EC2 Instances](https://forum.ansible.com/t/role-to-create-tear-down-ec2-instances/26626)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 7:58pm UTC](https://forum.ansible.com/t/role-to-create-tear-down-ec2-instances/26626 "2018-02-01T19:58:34Z")

</div>

I have a few questions on handling the creation/tear down of an ec2 instance. I have a role ( its a task atm, but Ill be migrating it over’) \` name: dallascowboys | Deployments include\_tasks: tasks/customer-instanc…

---

## [Block/Always Always section not executing.](https://forum.ansible.com/t/block-always-always-section-not-executing/26567)

<div class="topic-metadata">

**Author:** [@Josh\_Smith](https://forum.ansible.com/u/Josh_Smith)\
**Replies:** 1\
**Last updated:** [February 1, 2018, 7:21pm UTC](https://forum.ansible.com/t/block-always-always-section-not-executing/26567 "2018-02-01T19:21:02Z")

</div>

Hello everyone, I was asking about this in the IRC channel yesterday when we experienced a power outage at my office and I was thusly disconnected so I’m giving it a try here now. I have a playbook which contains inclu…

---

## [OPEN LDAP integration](https://forum.ansible.com/t/open-ldap-integration/26625)

<div class="topic-metadata">

**Author:** [@Nawaz\_Ibrahim](https://forum.ansible.com/u/Nawaz_Ibrahim)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 7:01pm UTC](https://forum.ansible.com/t/open-ldap-integration/26625 "2018-02-01T19:01:22Z")

</div>

Hi Is there any other steps we want to do other than configuring the LDAP details in the UI TOWER settings ? I need help !

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

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