# Ansible Project

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

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

**Page:** 257

---

## [Best way to organize variables that are used by multiple roles](https://forum.ansible.com/t/best-way-to-organize-variables-that-are-used-by-multiple-roles/27674)

<div class="topic-metadata">

**Author:** [@smalleni](https://forum.ansible.com/u/smalleni)\
**Replies:** 1\
**Last updated:** [May 31, 2018, 2:45pm UTC](https://forum.ansible.com/t/best-way-to-organize-variables-that-are-used-by-multiple-roles/27674 "2018-05-31T14:45:17Z")

</div>

Hi all, Our project has several roles that make use of the same variables. Looks like the best practice to organize roles is to place each of these variables in the roles//defaults/main.yml or roles//defaults/main.yml. …

---

## [nxos\_facts support for 5k on cli ?](https://forum.ansible.com/t/nxos-facts-support-for-5k-on-cli/27675)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 2:35pm UTC](https://forum.ansible.com/t/nxos-facts-support-for-5k-on-cli/27675 "2018-05-31T14:35:43Z")

</div>

Hi all, Anyone know if nxos\_facts will support 5k using cli. I know the device does not support command piping to json (like show int | json). It does, however support pipe to xml. cisco Nexus 5596 Chassis System vers…

---

## [Is there a standard way to do indentation in template files?](https://forum.ansible.com/t/is-there-a-standard-way-to-do-indentation-in-template-files/27673)

<div class="topic-metadata">

**Author:** [@nusenu](https://forum.ansible.com/u/nusenu)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 12:59pm UTC](https://forum.ansible.com/t/is-there-a-standard-way-to-do-indentation-in-template-files/27673 "2018-05-31T12:59:00Z")

</div>

Hi, I'd like to have indentation in my jinja2 templates like: {% if .. {% if .. configline foo without having the indentation in the resulting config file. Is there a standard way to do that? thanks, nusenu …

---

## [seting environment](https://forum.ansible.com/t/seting-environment/26288)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 14\
**Last updated:** [May 31, 2018, 10:24am UTC](https://forum.ansible.com/t/seting-environment/26288 "2018-05-31T10:24:36Z")

</div>

I have few variables defined in a variable.yml file for example cat variable.com ( its a dynamic file and the value keeps changing ) ptr\_image: my.example.com/jobname/testname ver\_number: v99 I am using this in my pl…

---

## ["Shared connection to 35.167.29.179 closed.\\r\\n"](https://forum.ansible.com/t/shared-connection-to-35-167-29-179-closed-r-n/27671)

<div class="topic-metadata">

**Author:** [@Sudheer\_Bhimireddy](https://forum.ansible.com/u/Sudheer_Bhimireddy)\
**Replies:** 0\
**Last updated:** [May 31, 2018, 5:37am UTC](https://forum.ansible.com/t/shared-connection-to-35-167-29-179-closed-r-n/27671 "2018-05-31T05:37:30Z")

</div>

Hi All, I’m trying to ping the machines and it was showing me this error. I couldn’t find the solution. Any help would be appreciated. Thanks

---

## [How to stop the play only for one hostgroup if any one host failed in that hostgroup ?](https://forum.ansible.com/t/how-to-stop-the-play-only-for-one-hostgroup-if-any-one-host-failed-in-that-hostgroup/27659)

<div class="topic-metadata">

**Author:** [@Venkatsm\_V](https://forum.ansible.com/u/Venkatsm_V)\
**Replies:** 4\
**Last updated:** [May 30, 2018, 10:53pm UTC](https://forum.ansible.com/t/how-to-stop-the-play-only-for-one-hostgroup-if-any-one-host-failed-in-that-hostgroup/27659 "2018-05-30T22:53:49Z")

</div>

Hi, Instead of passing to specific hostgroup, can i pass the regex to “hosts: ” for the play hosts ?. eg:- name: pre-step of the setup process hosts: cluster\_.\* gather\_facts: false strategy: free any\_errors\_fatal…

---

## [Best Practice Question: Branching Strategy for Ansible Playbook with roles dependency](https://forum.ansible.com/t/best-practice-question-branching-strategy-for-ansible-playbook-with-roles-dependency/27019)

<div class="topic-metadata">

**Author:** [@Xavier1](https://forum.ansible.com/u/Xavier1)\
**Replies:** 1\
**Last updated:** [May 30, 2018, 10:25pm UTC](https://forum.ansible.com/t/best-practice-question-branching-strategy-for-ansible-playbook-with-roles-dependency/27019 "2018-05-30T22:25:52Z")

</div>

Hi all, I have a newbie question. We want to build Ansible playbook in a reusable fashion by leveraging the Ansible Galaxy concept. Common functionalities playbooks will be used be be included as a role. They spread a…

---

## [How to execute one task/role if all others exit with 0](https://forum.ansible.com/t/how-to-execute-one-task-role-if-all-others-exit-with-0/27669)

<div class="topic-metadata">

**Author:** [@Venkatsm\_V](https://forum.ansible.com/u/Venkatsm_V)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 10:21pm UTC](https://forum.ansible.com/t/how-to-execute-one-task-role-if-all-others-exit-with-0/27669 "2018-05-30T22:21:04Z")

</div>

I have a play with multiple section. I want to execute all sections and execute the final section only all above are success. name: pre-step of the setup process hosts: HostSet gather\_facts: false strategy: free a…

---

## [Cygwin on Managed Nodes](https://forum.ansible.com/t/cygwin-on-managed-nodes/27665)

<div class="topic-metadata">

**Author:** [@Ab\_Generette](https://forum.ansible.com/u/Ab_Generette)\
**Replies:** 1\
**Last updated:** [May 30, 2018, 8:50pm UTC](https://forum.ansible.com/t/cygwin-on-managed-nodes/27665 "2018-05-30T20:50:50Z")

</div>

I recently inherited a number of Windows Server 2012 hosts that have Cygwin installed on them and a number of data-processing jobs setup to be run in that shell/environment. I would like to make it such that the people r…

---

## [Please help to reduce number of lines in tasks](https://forum.ansible.com/t/please-help-to-reduce-number-of-lines-in-tasks/27649)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 1\
**Last updated:** [May 30, 2018, 3:56pm UTC](https://forum.ansible.com/t/please-help-to-reduce-number-of-lines-in-tasks/27649 "2018-05-30T15:56:19Z")

</div>

Hello All, I think it could better. Basically, copy module is repeated based application and hostname the content changes Could you please help me to reduce the number of lines in below tasks.

---

## [Question on 'networks' parameter for VMWare cloud module](https://forum.ansible.com/t/question-on-networks-parameter-for-vmware-cloud-module/27338)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 4\
**Last updated:** [May 30, 2018, 9:28am UTC](https://forum.ansible.com/t/question-on-networks-parameter-for-vmware-cloud-module/27338 "2018-05-30T09:28:09Z")

</div>

I have a question about the ‘networks’ parameter for the VMWare cloud module. How do the options in this particular parameter get passed to the operating system during the initial deployment or setup process? With the vi…

---

## [Ansible Tower Installation Failing](https://forum.ansible.com/t/ansible-tower-installation-failing/27663)

<div class="topic-metadata">

**Author:** [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 8:52am UTC](https://forum.ansible.com/t/ansible-tower-installation-failing/27663 "2018-05-30T08:52:49Z")

</div>

Ansible tower installation is failing with the below error message. failed: \[localhost\] (item={u’id’: u’0x6B73A36E6026DFCA’, u’keyserver’: u’hkps.pool.sks-keyservers.net’}) =\> {“changed”: false, “cmd”: “/usr/bin/apt-key…

---

## [Troubles using Ansible with not standard PowerBroker configuration](https://forum.ansible.com/t/troubles-using-ansible-with-not-standard-powerbroker-configuration/27662)

<div class="topic-metadata">

**Author:** [@maciej.przezdziecki8](https://forum.ansible.com/u/maciej.przezdziecki8)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 7:38am UTC](https://forum.ansible.com/t/troubles-using-ansible-with-not-standard-powerbroker-configuration/27662 "2018-05-30T07:38:39Z")

</div>

Hello, I’ve read about using Powerbroker by ansible to elevate privileges however I realised that its designed to connect into target host via SSH then elevate privileges by pbrun command unfortunatelly I have different…

---

## [Locked/Unlocked states in user module](https://forum.ansible.com/t/locked-unlocked-states-in-user-module/12415)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 9\
**Last updated:** [May 30, 2018, 7:04am UTC](https://forum.ansible.com/t/locked-unlocked-states-in-user-module/12415 "2018-05-30T07:04:35Z")

</div>

Would a patch that adds two new states, locked and unlocked, be accepted into the user module? My use case is this: I have a lot of machines with lots of different users that have access to different machines. (i.e. It’…

---

## [Could not able to run Multiple Plays.](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660)

<div class="topic-metadata">

**Author:** [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Replies:** 2\
**Last updated:** [May 30, 2018, 6:08am UTC](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660 "2018-05-30T06:08:55Z")

</div>

Hi Team, I am able to execute a single play in the play book. But i am not able to execute the second play in the playbook. Getting the Below error:- ERROR! no action detected in task. This often indicates a misspell…

---

## [find module not matching something that is present](https://forum.ansible.com/t/find-module-not-matching-something-that-is-present/27658)

<div class="topic-metadata">

**Author:** [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Replies:** 0\
**Last updated:** [May 29, 2018, 9:35pm UTC](https://forum.ansible.com/t/find-module-not-matching-something-that-is-present/27658 "2018-05-29T21:35:14Z")

</div>

It works at it should You probably want to put patterns="^CentOS.\*\\.repo" with a point to represent any character... (not tested) Your regex match a repetition of S Be careful that these files will came back when upg…

---

## [windows host not reachable](https://forum.ansible.com/t/windows-host-not-reachable/27624)

<div class="topic-metadata">

**Author:** [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Replies:** 6\
**Last updated:** [May 29, 2018, 6:12pm UTC](https://forum.ansible.com/t/windows-host-not-reachable/27624 "2018-05-29T18:12:16Z")

</div>

Hi, I have installed ansible tower on rhel. I could ping my windows host from that server. But when i configured a job template it has error of connection timeout. Error message: “msg”: “plaintext: HTTPConnectionPool(…

---

## [Having difficulty getting LDAP authentication to work](https://forum.ansible.com/t/having-difficulty-getting-ldap-authentication-to-work/27654)

<div class="topic-metadata">

**Author:** [@Dennis](https://forum.ansible.com/u/Dennis)\
**Replies:** 2\
**Last updated:** [May 29, 2018, 6:04pm UTC](https://forum.ansible.com/t/having-difficulty-getting-ldap-authentication-to-work/27654 "2018-05-29T18:04:22Z")

</div>

I’m new to Ansible and looking for some help setting up LDAP authentication for Ansible Tower. I am using Ansible AWX - is it okay to ask support questions here? If so: I’ve not been able to sign into Ansible Tower AWX …

---

## [with\_items + with\_sequence](https://forum.ansible.com/t/with-items-with-sequence/27655)

<div class="topic-metadata">

**Author:** [@David\_Villasmil](https://forum.ansible.com/u/David_Villasmil)\
**Replies:** 2\
**Last updated:** [May 29, 2018, 4:52pm UTC](https://forum.ansible.com/t/with-items-with-sequence/27655 "2018-05-29T16:52:24Z")

</div>

Hello guys, I need to do something like: \` name: test debug: msg: “{{ item.0 }} → {{ item.1 }}” with\_together: “{{ ips }}” with\_sequence: start={{ cluster\_start }} end={{ cluster\_end }} format=%02x \` Is there a …

---

## [Is there any way in ansible to check code coverage of playbooks?](https://forum.ansible.com/t/is-there-any-way-in-ansible-to-check-code-coverage-of-playbooks/27656)

<div class="topic-metadata">

**Author:** [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Replies:** 0\
**Last updated:** [May 29, 2018, 4:40pm UTC](https://forum.ansible.com/t/is-there-any-way-in-ansible-to-check-code-coverage-of-playbooks/27656 "2018-05-29T16:40:55Z")

</div>

Hello All, Is there any way in ansible to check code coverage of playbooks?

---

## [Zenoss playbook](https://forum.ansible.com/t/zenoss-playbook/27653)

<div class="topic-metadata">

**Author:** [@Craig\_Massey](https://forum.ansible.com/u/Craig_Massey)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 9:14pm UTC](https://forum.ansible.com/t/zenoss-playbook/27653 "2018-05-28T21:14:40Z")

</div>

A Zenoss user has posted a playbook to install it that I would like to use, but my experience with Ansible is limited and I can’t see how to drive it. Mainly, I’ve used Ansible from Vagrant and that handles the inventor…

---

## [How to use host ranges with \`ansible-playbook --limit\`?](https://forum.ansible.com/t/how-to-use-host-ranges-with-ansible-playbook-limit/26409)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 4\
**Last updated:** [May 28, 2018, 3:56pm UTC](https://forum.ansible.com/t/how-to-use-host-ranges-with-ansible-playbook-limit/26409 "2018-05-28T15:56:17Z")

</div>

Hi, I assumed, that host ranges could be used with ansible-playbook's --limit as they can be used in the inventory itself. However this doesn't seem to be possible: $ ansible-playbook site.yml --limit='host\[010:027\]' …

---

## [apt module is not installing anything if package source is standard apt repository](https://forum.ansible.com/t/apt-module-is-not-installing-anything-if-package-source-is-standard-apt-repository/27652)

<div class="topic-metadata">

**Author:** [@f.floimair.commend](https://forum.ansible.com/u/f.floimair.commend)\
**Replies:** 3\
**Last updated:** [May 28, 2018, 2:17pm UTC](https://forum.ansible.com/t/apt-module-is-not-installing-anything-if-package-source-is-standard-apt-repository/27652 "2018-05-28T14:17:49Z")

</div>

Hi! I’m having an issue with the apt module and my playbook with Ansible 2.5.3 (2.5.2 is behaving the same). I’m running the following playbook snippet: tasks: name: Install packages required for VMs apt: name {{ …

---

## [win\_domain\_user:](https://forum.ansible.com/t/win-domain-user/27651)

<div class="topic-metadata">

**Author:** [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 9:12am UTC](https://forum.ansible.com/t/win-domain-user/27651 "2018-05-28T09:12:45Z")

</div>

i have a single server in my inventory and its a domain controller as well (server is created and promoted in the same script). when i try to create domain users using win\_domain\_user, it gives me the following error mes…

---

## [Need help with sros\_config ansible module](https://forum.ansible.com/t/need-help-with-sros-config-ansible-module/27650)

<div class="topic-metadata">

**Author:** [@Rakesh\_Sharma\_Madugu](https://forum.ansible.com/u/Rakesh_Sharma_Madugu)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 9:12am UTC](https://forum.ansible.com/t/need-help-with-sros-config-ansible-module/27650 "2018-05-28T09:12:34Z")

</div>

Hi All, I am trying to use sros\_config/sros\_command module for alcatel switches. However when i run my plabook, connection to alcatel switch is failing. Are there any dependencies for connection establishment( such as e…

---

## [Windows OS installation/Deployment using Ansible](https://forum.ansible.com/t/windows-os-installation-deployment-using-ansible/27410)

<div class="topic-metadata">

**Author:** [@Lalit\_Choudhary](https://forum.ansible.com/u/Lalit_Choudhary)\
**Replies:** 3\
**Last updated:** [May 28, 2018, 6:50am UTC](https://forum.ansible.com/t/windows-os-installation-deployment-using-ansible/27410 "2018-05-28T06:50:08Z")

</div>

Hello Team, Is there any way to install Windows Operating System on remote machine using Ansible, if anyone know the Link or Guide to installation please let me know. I successfully did it for Linux OS. Thanks, Lalit …

---

## [Using ansible to manage windows 10 vm software applications with no Internet Access](https://forum.ansible.com/t/using-ansible-to-manage-windows-10-vm-software-applications-with-no-internet-access/27394)

<div class="topic-metadata">

**Author:** [@Matt\_Davies](https://forum.ansible.com/u/Matt_Davies)\
**Replies:** 3\
**Last updated:** [May 28, 2018, 6:47am UTC](https://forum.ansible.com/t/using-ansible-to-manage-windows-10-vm-software-applications-with-no-internet-access/27394 "2018-05-28T06:47:54Z")

</div>

Hi everyone I’ve been asked to look into using ansible to manage all the software on our windows10 vm farm. Here’s the kicker, neither the windows VM’s OR the ansible server will have internet access. I have no idea w…

---

## [Multiple plays in the same playbook resolve group variables incorrectly](https://forum.ansible.com/t/multiple-plays-in-the-same-playbook-resolve-group-variables-incorrectly/27648)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 1\
**Last updated:** [May 28, 2018, 4:53am UTC](https://forum.ansible.com/t/multiple-plays-in-the-same-playbook-resolve-group-variables-incorrectly/27648 "2018-05-28T04:53:30Z")

</div>

Source code: https://github.com/behrangsa/sample-ansible-role Background: I have three different environments: test, staging, and prod and 3 applications that I deploy to them. In staging and prod, each application ha…

---

## [delegate\_to not working](https://forum.ansible.com/t/delegate-to-not-working/27647)

<div class="topic-metadata">

**Author:** [@Manous](https://forum.ansible.com/u/Manous)\
**Replies:** 0\
**Last updated:** [May 27, 2018, 11:16pm UTC](https://forum.ansible.com/t/delegate-to-not-working/27647 "2018-05-27T23:16:17Z")

</div>

Hi, i have to understand “synchronize” module with “delegate\_to” i am installing corosync on 2 nodes here infos: \[corosync\] node\_a ansible\_host=192.168.122.200 node\_b ansible\_host=192.168.122.201 playbook.yml n…

---

## [Debug with with\_items and the Task Name.](https://forum.ansible.com/t/debug-with-with-items-and-the-task-name/27645)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 2\
**Last updated:** [May 27, 2018, 7:38pm UTC](https://forum.ansible.com/t/debug-with-with-items-and-the-task-name/27645 "2018-05-27T19:38:49Z")

</div>

Hi All Request your help on where to put the debug statement Requirement 1: If a package is missing the output should be like “Package {{ package name }} missing” When debug is used the task name does not display ins…

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

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