# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=534

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

**Page:** 535

---

## [Parse registered output into a variable?](https://forum.ansible.com/t/parse-registered-output-into-a-variable/23129)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 8:49pm UTC](https://forum.ansible.com/t/parse-registered-output-into-a-variable/23129 "2016-11-29T20:49:13Z")

</div>

Hello - Is there a way to parse registered output into a variable? Pseudo Code: \` tasks: name: Sample Task command: ‘blah’ register: output debug: var=output.stdout \` TASK \[debug\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How to use different variables file between prod, dev1, dev2, etc?](https://forum.ansible.com/t/how-to-use-different-variables-file-between-prod-dev1-dev2-etc/23128)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Wen](https://forum.ansible.com/u/Jeffrey_Wen)\
**Replies:** 4\
**Last updated:** [November 29, 2016, 8:41pm UTC](https://forum.ansible.com/t/how-to-use-different-variables-file-between-prod-dev1-dev2-etc/23128 "2016-11-29T20:41:27Z")

</div>

Here is what my current ansible/ directory looks like: \` ├── development │ └── hosts ├── production │ └── hosts ├── group\_vars │ └── prod.example.com │ └── dev1.example.com │ └── dev2.example.com ├── playbooks …

---

## [PEP8 compliance in codebase](https://forum.ansible.com/t/pep8-compliance-in-codebase/18876)

<div class="topic-metadata">

**Author:** [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Replies:** 7\
**Last updated:** [November 29, 2016, 6:39pm UTC](https://forum.ansible.com/t/pep8-compliance-in-codebase/18876 "2016-11-29T18:39:16Z")

</div>

Hey, Our CI system runs pep8 and pyflakes separately on every commit as well and it's been something I've wanted to work on cleaning up since I discovered it. However, v2.0 has made it harder for me since time has be…

---

## [Is it possible to use files from the "playbook" layer for the "copy" module?](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104)

<div class="topic-metadata">

**Author:** [@General\_Luken](https://forum.ansible.com/u/General_Luken)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 5:50pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-files-from-the-playbook-layer-for-the-copy-module/23104 "2016-11-29T17:50:44Z")

</div>

Hi! What I mean by the title: In roles we can have a “files” directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the…

---

## [Launch powershell script with argument by ansible](https://forum.ansible.com/t/launch-powershell-script-with-argument-by-ansible/23101)

<div class="topic-metadata">

**Author:** [@jvieira](https://forum.ansible.com/u/jvieira)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 5:06pm UTC](https://forum.ansible.com/t/launch-powershell-script-with-argument-by-ansible/23101 "2016-11-29T17:06:01Z")

</div>

Hi everyone, My ansible version is : 2.2.0.0 I make a powershell script to deploy a new VM on vcenter. Ansible correctly work with windows system but i have some trouble. I would like ansible take my arguments for th…

---

## [Update local vars](https://forum.ansible.com/t/update-local-vars/23126)

<div class="topic-metadata">

**Author:** [@Aleksey\_Ezhov](https://forum.ansible.com/u/Aleksey_Ezhov)\
**Replies:** 0\
**Last updated:** [November 29, 2016, 3:37pm UTC](https://forum.ansible.com/t/update-local-vars/23126 "2016-11-29T15:37:34Z")

</div>

Hello. how to update the local vars, after receiving the input parameter example: roles/new/vars/main.yaml list: name: service1 pckg: namepckg version: trunk name: service2 pckg: namepckg version: trunk r…

---

## [Need to get the network interface status.](https://forum.ansible.com/t/need-to-get-the-network-interface-status/23094)

<div class="topic-metadata">

**Author:** [@lishyalak](https://forum.ansible.com/u/lishyalak)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 3:29pm UTC](https://forum.ansible.com/t/need-to-get-the-network-interface-status/23094 "2016-11-29T15:29:44Z")

</div>

Number of network interfaces varies in our environment and we have atleast 5 variants, hardcoding is not an option. This playbook need to check {{ ansible\_interfaces }} and then get the status of all available interface…

---

## [Unable to Install PostgreSQL using Ansible](https://forum.ansible.com/t/unable-to-install-postgresql-using-ansible/23097)

<div class="topic-metadata">

**Author:** [@Gustavo\_da\_Silva\_Car](https://forum.ansible.com/u/Gustavo_da_Silva_Car)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 2:35pm UTC](https://forum.ansible.com/t/unable-to-install-postgresql-using-ansible/23097 "2016-11-29T14:35:44Z")

</div>

Hello Everyone, I’m new to Ansible, and I ended up having a problem with my playbook to install psql. I already tried everything and searched everywhere. When I perform the following task: name: Ensure database is c…

---

## [ansible-playbook-sudo](https://forum.ansible.com/t/ansible-playbook-sudo/23122)

<div class="topic-metadata">

**Author:** [@naaga.wip](https://forum.ansible.com/u/naaga.wip)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 2:00pm UTC](https://forum.ansible.com/t/ansible-playbook-sudo/23122 "2016-11-29T14:00:57Z")

</div>

Hi, Can any one please let me know why to use “-sudo” flag in ansible-playbook command line. ansible-playbook-sudo -i /opt///ansible/inventories/dev/hosts /opt///ansible/playbooks/new\_deployments.yml --extra-vars “arti…

---

## [Gitter chat/channel for Ansible?](https://forum.ansible.com/t/gitter-chat-channel-for-ansible/18988)

<div class="topic-metadata">

**Author:** [@Hristo\_Stoyanov](https://forum.ansible.com/u/Hristo_Stoyanov)\
**Replies:** 10\
**Last updated:** [November 29, 2016, 1:26pm UTC](https://forum.ansible.com/t/gitter-chat-channel-for-ansible/18988 "2016-11-29T13:26:36Z")

</div>

Hi, I tried the IRC chat for Ansible and it is painful (especially from mobile device). Since Ansible is hosted on Github anyway, wouldn’t it be better to leverage the free and integrated Gitter chat? I have seen other …

---

## [Error creating Cluster on windows 2012 R2 Server through Ansible](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106)

<div class="topic-metadata">

**Author:** [@ashish\_chanda](https://forum.ansible.com/u/ashish_chanda)\
**Replies:** 1\
**Last updated:** [November 29, 2016, 8:44am UTC](https://forum.ansible.com/t/error-creating-cluster-on-windows-2012-r2-server-through-ansible/23106 "2016-11-29T08:44:36Z")

</div>

Hi, I am using ansible to create Cluster on windows 2012 R2 Server where i am getting issues like access denied on new cluster command on adding the second node to the cluster.# I am using kerberos authentication since…

---

## [ANSIBALLZ, zipped ansible library](https://forum.ansible.com/t/ansiballz-zipped-ansible-library/23124)

<div class="topic-metadata">

**Author:** [@Ted\_Timmons](https://forum.ansible.com/u/Ted_Timmons)\
**Replies:** 2\
**Last updated:** [November 29, 2016, 7:43am UTC](https://forum.ansible.com/t/ansiballz-zipped-ansible-library/23124 "2016-11-29T07:43:22Z")

</div>

ANSIBALLZ puts a compressed zip blob on the remote machine. It seems that python can read a compressed library? I mean, it isn’t exploded, yet it works. This is relevant because it fails on pypy, which means coreos mach…

---

## [Name Conflicts: Role Task File Names Conflict with Modules](https://forum.ansible.com/t/name-conflicts-role-task-file-names-conflict-with-modules/23125)

<div class="topic-metadata">

**Author:** [@Karl\_Davis](https://forum.ansible.com/u/Karl_Davis)\
**Replies:** 0\
**Last updated:** [November 29, 2016, 4:08am UTC](https://forum.ansible.com/t/name-conflicts-role-task-file-names-conflict-with-modules/23125 "2016-11-29T04:08:21Z")

</div>

I’ve got the following: \` ansible.cfg library = ~/.ansible/roles \` $ ls -la ~/.ansible/roles/L-P.acmetool/tasks/ total 24 drwxrwxr-x 2 karl karl 4096 Nov 28 18:59 . drwxrwxr-x 7 karl karl 4096 Nov 28 18:50 .. -rw-rw-…

---

## [Getting error while creating VM using VMWare templates](https://forum.ansible.com/t/getting-error-while-creating-vm-using-vmware-templates/22612)

<div class="topic-metadata">

**Author:** [@yogesh\_joshi](https://forum.ansible.com/u/yogesh_joshi)\
**Replies:** 3\
**Last updated:** [November 28, 2016, 11:47pm UTC](https://forum.ansible.com/t/getting-error-while-creating-vm-using-vmware-templates/22612 "2016-11-28T23:47:51Z")

</div>

Hello, I am new to ansible. I want to create VMs from VM template, I am not sure what should be the template format? is it the one we directly mark VM as convert to template and then use that as template\_src in playboo…

---

## [A "first time" unexpected templating error - what did I do?](https://forum.ansible.com/t/a-first-time-unexpected-templating-error-what-did-i-do/23058)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 28, 2016, 11:24pm UTC](https://forum.ansible.com/t/a-first-time-unexpected-templating-error-what-did-i-do/23058 "2016-11-28T23:24:49Z")

</div>

Hello - Assistance requested. I believe I’ve coded a nasty bug into my ansible playbook and I’m not sure how to unravel it. In my observations, the code throws an “Unexpected templating type error occurred” whenever I f…

---

## [Store playbook name as a 'global' variable across plays?](https://forum.ansible.com/t/store-playbook-name-as-a-global-variable-across-plays/22984)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 2\
**Last updated:** [November 28, 2016, 11:23pm UTC](https://forum.ansible.com/t/store-playbook-name-as-a-global-variable-across-plays/22984 "2016-11-28T23:23:33Z")

</div>

Hello - Is there a way to store playbook name as a ‘global’ variable across plays?? I’ve seen potential options via callbacks or group\_vars:all but still struggling with the solve. At the end of the day I want to log c…

---

## [New module to subscribe a system to RHSM repositories (RHEL)](https://forum.ansible.com/t/new-module-to-subscribe-a-system-to-rhsm-repositories-rhel/23123)

<div class="topic-metadata">

**Author:** [@Jerome\_Fenal](https://forum.ansible.com/u/Jerome_Fenal)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 8:51pm UTC](https://forum.ansible.com/t/new-module-to-subscribe-a-system-to-rhsm-repositories-rhel/23123 "2016-11-28T20:51:18Z")

</div>

Hi all, Just a head up if someone wants to have a look and test my first attempt at a module, available at: https://github.com/jfenal/ansible-modules-jfenal/redhat\_repositories Bear with my python-fu, I’m more a Perl …

---

## [Performance issue when loading all host group vars before starting playbook](https://forum.ansible.com/t/performance-issue-when-loading-all-host-group-vars-before-starting-playbook/23120)

<div class="topic-metadata">

**Author:** [@John\_Wadleigh](https://forum.ansible.com/u/John_Wadleigh)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:50pm UTC](https://forum.ansible.com/t/performance-issue-when-loading-all-host-group-vars-before-starting-playbook/23120 "2016-11-28T14:50:48Z")

</div>

Hi everyone, We have a large ‘hosts’ file with many different host groups defined. When running ansible-playbook command with ‘-i’ pointing to our hosts file, Ansible will then call our custom code in the VarsModule cl…

---

## [MODULE FAILURE using Replace and with\_together](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23117)

<div class="topic-metadata">

**Author:** [@John\_Galts](https://forum.ansible.com/u/John_Galts)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:40am UTC](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23117 "2016-11-28T02:40:42Z")

</div>

Hello, I’m getting a module failure when trying to use ‘replace’ and with\_together. Is there something wrong with my script? thank you. Tasks: name: Gather Current DB Settings - Database Name shell: grep -v “|” /tm…

---

## [MODULE FAILURE using Replace and with\_together](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23115)

<div class="topic-metadata">

**Author:** [@John\_Galts](https://forum.ansible.com/u/John_Galts)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:03am UTC](https://forum.ansible.com/t/module-failure-using-replace-and-with-together/23115 "2016-11-28T02:03:36Z")

</div>

Hello, I’m getting a module failure when trying to use ‘replace’ and with\_together. Is there something wrong with my script? thank you. Tasks: name: Gather Current DB Settings - Database Name shell: grep -v “|” /tm…

---

## [Access dict key when using with\_subelements](https://forum.ansible.com/t/access-dict-key-when-using-with-subelements/21082)

<div class="topic-metadata">

**Author:** [@Peter\_Thorson](https://forum.ansible.com/u/Peter_Thorson)\
**Replies:** 4\
**Last updated:** [November 27, 2016, 10:26pm UTC](https://forum.ansible.com/t/access-dict-key-when-using-with-subelements/21082 "2016-11-27T22:26:51Z")

</div>

when using with\_dict, item.key retrieves the dict key and item.value retrieves the value. however, when using with\_subelements and having the first item being looped over be a dict, item.0 seems to return only the value…

---

## [Proxmox network interface configuration: template error while templating string: Encountered unknown tag 'item'](https://forum.ansible.com/t/proxmox-network-interface-configuration-template-error-while-templating-string-encountered-unknown-tag-item/23112)

<div class="topic-metadata">

**Author:** [@Samuel\_Vandamme](https://forum.ansible.com/u/Samuel_Vandamme)\
**Replies:** 0\
**Last updated:** [November 27, 2016, 11:32am UTC](https://forum.ansible.com/t/proxmox-network-interface-configuration-template-error-while-templating-string-encountered-unknown-tag-item/23112 "2016-11-27T11:32:27Z")

</div>

Hi everyone I’m trying to setup multiple proxmox network interfaces for my containers with Ansible. Here is the code that I’m using. You can see in the netif property that I sometimes want to add a second interface to …

---

## [Syntax to access item in with\_sequence in a complex variable](https://forum.ansible.com/t/syntax-to-access-item-in-with-sequence-in-a-complex-variable/23110)

<div class="topic-metadata">

**Author:** [@bonheur.sorn](https://forum.ansible.com/u/bonheur.sorn)\
**Replies:** 1\
**Last updated:** [November 27, 2016, 6:06am UTC](https://forum.ansible.com/t/syntax-to-access-item-in-with-sequence-in-a-complex-variable/23110 "2016-11-27T06:06:46Z")

</div>

Hi everyone I’m trying to use the item value in ‘with\_sequence’ to access an element in my array variable. I understand that to access variables using the bracket syntax \[…\] in vars =\> use vars\[…\] hostvars =\> use…

---

## [is it possible to tag all tasks in a role?](https://forum.ansible.com/t/is-it-possible-to-tag-all-tasks-in-a-role/23109)

<div class="topic-metadata">

**Author:** [@Spike1](https://forum.ansible.com/u/Spike1)\
**Replies:** 0\
**Last updated:** [November 26, 2016, 11:35pm UTC](https://forum.ansible.com/t/is-it-possible-to-tag-all-tasks-in-a-role/23109 "2016-11-26T23:35:53Z")

</div>

Hi, I’d like to be able to tag all tasks in a role, however I’m not seeing an option… tags are not allowed globally in tasks/main.yml and if I tag a role in the play all depended roles will be tagged too. An option wou…

---

## [Possible Improvement to the 'command' Module](https://forum.ansible.com/t/possible-improvement-to-the-command-module/23105)

<div class="topic-metadata">

**Author:** [@Jon\_Forrest](https://forum.ansible.com/u/Jon_Forrest)\
**Replies:** 1\
**Last updated:** [November 26, 2016, 4:29pm UTC](https://forum.ansible.com/t/possible-improvement-to-the-command-module/23105 "2016-11-26T16:29:32Z")

</div>

The Ansible documentation shows the following example for the 'command' module" - command: /usr/bin/make\_database.sh arg1 arg2 creates=/path/to/database The idea here is that if the /path/to/database file already exis…

---

## [ansible async module result in bind service is done](https://forum.ansible.com/t/ansible-async-module-result-in-bind-service-is-done/23108)

<div class="topic-metadata">

**Author:** [@hao\_huang](https://forum.ansible.com/u/hao_huang)\
**Replies:** 0\
**Last updated:** [November 26, 2016, 3:39pm UTC](https://forum.ansible.com/t/ansible-async-module-result-in-bind-service-is-done/23108 "2016-11-26T15:39:07Z")

</div>

ansible version : 2.1.1.0 hosts: hhh gather\_facts: no become: yes tasks: block: name: hhh conf shell: bash /tmp/hhh.sh async: 2000 poll: 0 register: update\_hhh name: check hhh async\_status: jid={{ upd…

---

## [Getting Access Denied while creating Cluster on Win2012 R2 using PywinRM](https://forum.ansible.com/t/getting-access-denied-while-creating-cluster-on-win2012-r2-using-pywinrm/23107)

<div class="topic-metadata">

**Author:** [@ashish\_chanda](https://forum.ansible.com/u/ashish_chanda)\
**Replies:** 0\
**Last updated:** [November 26, 2016, 6:10am UTC](https://forum.ansible.com/t/getting-access-denied-while-creating-cluster-on-win2012-r2-using-pywinrm/23107 "2016-11-26T06:10:44Z")

</div>

Hi, I am using Ansible PywinRm to connect and run powershell on the remote windows 2012 R2 server. I am getting the error access denied on new cluster command on adding the second node to the cluster. Below are the co…

---

## [ansible play getting failed due to sudo issue](https://forum.ansible.com/t/ansible-play-getting-failed-due-to-sudo-issue/23100)

<div class="topic-metadata">

**Author:** [@stack4cl](https://forum.ansible.com/u/stack4cl)\
**Replies:** 1\
**Last updated:** [November 25, 2016, 4:55pm UTC](https://forum.ansible.com/t/ansible-play-getting-failed-due-to-sudo-issue/23100 "2016-11-25T16:55:15Z")

</div>

Issue - \[sysadm@ccldevcftsebs1 ~\]$ sudo yum repolist -v \[sudo\] password for sysadm: User part of wheel group and still its asking password ,any idea to fix it ? \[sysadm@ccldevcftsebs1 ~\]$ id sysadm uid=504(sysadm) g…

---

## [Concatenate text and variable for a key in a dict](https://forum.ansible.com/t/concatenate-text-and-variable-for-a-key-in-a-dict/23098)

<div class="topic-metadata">

**Author:** [@Guillaume\_Abrioux](https://forum.ansible.com/u/Guillaume_Abrioux)\
**Replies:** 0\
**Last updated:** [November 25, 2016, 1:46pm UTC](https://forum.ansible.com/t/concatenate-text-and-variable-for-a-key-in-a-dict/23098 "2016-11-25T13:46:05Z")

</div>

Hi, I would like to define a dict in group\_vars/all.yml where a key inside this dict would consist of a fixed string concatened to the result of : “{{ hostvars\[inventory\_hostname\]\[‘ansible\_hostname’\] }}”. This should l…

---

## [i CANT connect to a windows server](https://forum.ansible.com/t/i-cant-connect-to-a-windows-server/23018)

<div class="topic-metadata">

**Author:** [@Aitor\_Gomez](https://forum.ansible.com/u/Aitor_Gomez)\
**Replies:** 11\
**Last updated:** [November 25, 2016, 1:11pm UTC](https://forum.ansible.com/t/i-cant-connect-to-a-windows-server/23018 "2016-11-25T13:11:05Z")

</div>

i configured host \[windows\] server.domain.es Windows.yml ansible\_user: domain\\user ansible\_password: passw ansible\_port: 5986 ansible\_connection: winrm ansible\_winrm\_server\_cert\_validation: ignore I’ve tried it …

[Previous page](https://forum.ansible.com/c/archives/31.md?page=533)

[Next page](https://forum.ansible.com/c/archives/31.md?page=535)
