# Archives

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

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

**Page:** 523

---

## [Var substitution help](https://forum.ansible.com/t/var-substitution-help/23491)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 2\
**Last updated:** [January 18, 2017, 3:35pm UTC](https://forum.ansible.com/t/var-substitution-help/23491 "2017-01-18T15:35:17Z")

</div>

Hello, all. A while ago, I created a quck-'n-dirty user creation playbook. With the following line, I was able to both create the user, and his/her encrypted password (for CentOS 6/7): user: name=“someuser” password={{…

---

## [EC2 compound tags and limiting dynamic inventory](https://forum.ansible.com/t/ec2-compound-tags-and-limiting-dynamic-inventory/23492)

<div class="topic-metadata">

**Author:** [@Bass\_Slap](https://forum.ansible.com/u/Bass_Slap)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 3:15pm UTC](https://forum.ansible.com/t/ec2-compound-tags-and-limiting-dynamic-inventory/23492 "2017-01-18T15:15:20Z")

</div>

I’m using ec2.py dynamic inventory successfully with limiting by multiple tags, but my need is to be able to limit by a tag where one of the compound values matches, but I haven’t found a way to do so yet. Example: Tag …

---

## [What is the difference between inventory group\_vars and playbook group\_vars?](https://forum.ansible.com/t/what-is-the-difference-between-inventory-group-vars-and-playbook-group-vars/23490)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 2:36pm UTC](https://forum.ansible.com/t/what-is-the-difference-between-inventory-group-vars-and-playbook-group-vars/23490 "2017-01-18T14:36:23Z")

</div>

The following document http://docs.ansible.com/ansible/playbooks\_variables.html#variable-precedence-where-should-i-put-a-variable states that inventory group\_vars have lower precedence than playbook group\_vars. But I …

---

## [Conditional broken with Ansible 2.2.1.0-1 running on Rhel6/CentOS6](https://forum.ansible.com/t/conditional-broken-with-ansible-2-2-1-0-1-running-on-rhel6-centos6/23489)

<div class="topic-metadata">

**Author:** [@PhilEv](https://forum.ansible.com/u/PhilEv)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 12:36pm UTC](https://forum.ansible.com/t/conditional-broken-with-ansible-2-2-1-0-1-running-on-rhel6-centos6/23489 "2017-01-18T12:36:57Z")

</div>

Hello The ansible 2.2.1.0-1 running on Rhel6/CentOS6 leads to error for existing playbooks with roles applied conditionally. The fix is available in the stable-2.2 branch (and others) We have numerous playbooks based …

---

## [Run multiple tasks with different Ansible users for Windows hosts](https://forum.ansible.com/t/run-multiple-tasks-with-different-ansible-users-for-windows-hosts/23451)

<div class="topic-metadata">

**Author:** [@davidfof](https://forum.ansible.com/u/davidfof)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 10:12am UTC](https://forum.ansible.com/t/run-multiple-tasks-with-different-ansible-users-for-windows-hosts/23451 "2017-01-18T10:12:35Z")

</div>

Hi all, I have role that contains several tasks that should be run by different Ansible users. The playbook that uses this role should run on Windows hosts and I do this using a command similar to the following: ans…

---

## [how to access variables set on target env](https://forum.ansible.com/t/how-to-access-variables-set-on-target-env/23476)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 3\
**Last updated:** [January 18, 2017, 10:01am UTC](https://forum.ansible.com/t/how-to-access-variables-set-on-target-env/23476 "2017-01-18T10:01:16Z")

</div>

Hi i have a shell script which is setWLSEnv.sh on target machine, i run this first to set up web logic env after that i run the command java weblogic.WLST {{ pyhton file}} now i get Error: could not find or load main…

---

## [multiple commands in single ssh connection](https://forum.ansible.com/t/multiple-commands-in-single-ssh-connection/23482)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 1\
**Last updated:** [January 17, 2017, 10:55pm UTC](https://forum.ansible.com/t/multiple-commands-in-single-ssh-connection/23482 "2017-01-17T22:55:36Z")

</div>

Hi does any body know how to run multiple commands in single ssh connection i have the code command: “{{ item }}” with\_items: /bin/sh test.sh /bin/sh test2.sh when run this i can see “ESTABLISH SSH CONNECTION for …

---

## [Ansible 2.2.1 and 2.1.4 FINAL have been released!](https://forum.ansible.com/t/ansible-2-2-1-and-2-1-4-final-have-been-released/23468)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 1\
**Last updated:** [January 17, 2017, 8:40pm UTC](https://forum.ansible.com/t/ansible-2-2-1-and-2-1-4-final-have-been-released/23468 "2017-01-17T20:40:43Z")

</div>

Hi all, we are happy to announce that Ansible 2.2.1 and 2.1.4 have been released. This release fixes a few bugs, but the main fix is for CVE-2016-9587 which was previously disclosed during the RC process. As always, th…

---

## [How to avoid error when using a registered variable in check mode?](https://forum.ansible.com/t/how-to-avoid-error-when-using-a-registered-variable-in-check-mode/23461)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 4\
**Last updated:** [January 17, 2017, 7:36pm UTC](https://forum.ansible.com/t/how-to-avoid-error-when-using-a-registered-variable-in-check-mode/23461 "2017-01-17T19:36:32Z")

</div>

Hi, I have a playbook that has to use the command module and registers its output in a variable like so: - command: do something here register: my\_variable - debug: msg="Here is the output of {{ my\_variable.stdout…

---

## [anisble Tower user account](https://forum.ansible.com/t/anisble-tower-user-account/23480)

<div class="topic-metadata">

**Author:** [@jithendra\_myla](https://forum.ansible.com/u/jithendra_myla)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 7:28pm UTC](https://forum.ansible.com/t/anisble-tower-user-account/23480 "2017-01-17T19:28:04Z")

</div>

Can i install Ansible tower as user account “ansible” instead of “awx” ?

---

## [Ansible host license across multiple inventories](https://forum.ansible.com/t/ansible-host-license-across-multiple-inventories/23479)

<div class="topic-metadata">

**Author:** [@driverA](https://forum.ansible.com/u/driverA)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 6:42pm UTC](https://forum.ansible.com/t/ansible-host-license-across-multiple-inventories/23479 "2017-01-17T18:42:52Z")

</div>

Hi everyone, the Ansible/Tower license model is based on hosts. What if I have a host that is a member of multiple inventories? Does Ansible assign a license to the existence of each host within an inventory or does it a…

---

## [Ansible role to deploy on weblogic](https://forum.ansible.com/t/ansible-role-to-deploy-on-weblogic/23478)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 3:57pm UTC](https://forum.ansible.com/t/ansible-role-to-deploy-on-weblogic/23478 "2017-01-17T15:57:46Z")

</div>

Hi did anybody succeed with unusable role/play to connect to weblogic on t3s protocol? as i was able to use regular python scripts using normal t3 protocol as wlst.sh {{ env variables }} {{ pythonscript}} but with t3…

---

## [Remote Env Setup Queries](https://forum.ansible.com/t/remote-env-setup-queries/23433)

<div class="topic-metadata">

**Author:** [@John\_Patrick](https://forum.ansible.com/u/John_Patrick)\
**Replies:** 7\
**Last updated:** [January 17, 2017, 3:53pm UTC](https://forum.ansible.com/t/remote-env-setup-queries/23433 "2017-01-17T15:53:17Z")

</div>

I’m working on a custom module but having issues with the environment setup on the remote server. How should the remote environment variables be correctly setup. I’ve been looking here http://docs.ansible.com/ansible/de…

---

## [copy from remote a to remote b](https://forum.ansible.com/t/copy-from-remote-a-to-remote-b/23475)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 1\
**Last updated:** [January 17, 2017, 1:09pm UTC](https://forum.ansible.com/t/copy-from-remote-a-to-remote-b/23475 "2017-01-17T13:09:42Z")

</div>

I need to copy the very big file X from remote system A to remote system B, only if X is newer on A or if X is missing on B. I can do it in two steps: first transfer X from A to the Ansible server and next from the Ansi…

---

## [NPM module --no-optional param](https://forum.ansible.com/t/npm-module-no-optional-param/23471)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Vieira](https://forum.ansible.com/u/Rodrigo_Vieira)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 12:50am UTC](https://forum.ansible.com/t/npm-module-no-optional-param/23471 "2017-01-17T00:50:43Z")

</div>

Hey everyone, I need to add this param on my npm install. I created a commit, it’s okay send a PR or I should do something before? Thank you!

---

## [Formerly working ansible playbook now quietly does nothing - how to debug ?](https://forum.ansible.com/t/formerly-working-ansible-playbook-now-quietly-does-nothing-how-to-debug/23470)

<div class="topic-metadata">

**Author:** [@Traiano\_Welcome](https://forum.ansible.com/u/Traiano_Welcome)\
**Replies:** 0\
**Last updated:** [January 16, 2017, 9:21pm UTC](https://forum.ansible.com/t/formerly-working-ansible-playbook-now-quietly-does-nothing-how-to-debug/23470 "2017-01-16T21:21:01Z")

</div>

Hi List I’ve previously run a playbook to deploy an ec2 instance to aws, which worked fine. Except now, having made no changes to the playbook, it does nothing. There are no apparent errors or messages to indicate wha…

---

## [PostgreSQL query and dealing with results](https://forum.ansible.com/t/postgresql-query-and-dealing-with-results/23469)

<div class="topic-metadata">

**Author:** [@Christian\_Tardif](https://forum.ansible.com/u/Christian_Tardif)\
**Replies:** 0\
**Last updated:** [January 16, 2017, 8:55pm UTC](https://forum.ansible.com/t/postgresql-query-and-dealing-with-results/23469 "2017-01-16T20:55:06Z")

</div>

Hi, I’m trying to build an ansible playbook that would be able to execute a SQL query and then parse the command output to play with the data and update some stuff from it. My SQL request looks like: SELECT row\_to\_jso…

---

## [Shell script in handler](https://forum.ansible.com/t/shell-script-in-handler/23464)

<div class="topic-metadata">

**Author:** [@Shantanu\_Jain](https://forum.ansible.com/u/Shantanu_Jain)\
**Replies:** 1\
**Last updated:** [January 16, 2017, 6:52pm UTC](https://forum.ansible.com/t/shell-script-in-handler/23464 "2017-01-16T18:52:50Z")

</div>

Can I write a shell script in handler and call it again and again?

---

## [Using module.is\_executable(path) results in an exception](https://forum.ansible.com/t/using-module-is-executable-path-results-in-an-exception/23465)

<div class="topic-metadata">

**Author:** [@ER1](https://forum.ansible.com/u/ER1)\
**Replies:** 1\
**Last updated:** [January 16, 2017, 5:01pm UTC](https://forum.ansible.com/t/using-module-is-executable-path-results-in-an-exception/23465 "2017-01-16T17:01:33Z")

</div>

I am trying to develop a new module for Ansible. I need to validate a provided parameter points to a valid executable on the system. I am having problems using the is\_executable helper function from Ansible module\_utils. …

---

## [sefcontext restorecon](https://forum.ansible.com/t/sefcontext-restorecon/23379)

<div class="topic-metadata">

**Author:** [@Andy\_Mangion](https://forum.ansible.com/u/Andy_Mangion)\
**Replies:** 4\
**Last updated:** [January 16, 2017, 4:54pm UTC](https://forum.ansible.com/t/sefcontext-restorecon/23379 "2017-01-16T16:54:30Z")

</div>

Hi, I am using Ansible 2.2 and wanted to implement a step to set a selinux context of a file using the sefcontext module. After some work to get it to work on RHEL 7; it is successfully writing to the local policy file …

---

## [Ansilbe apt handling of dpkg\_options](https://forum.ansible.com/t/ansilbe-apt-handling-of-dpkg-options/23216)

<div class="topic-metadata">

**Author:** [@adam.frederick](https://forum.ansible.com/u/adam.frederick)\
**Replies:** 3\
**Last updated:** [January 16, 2017, 3:40pm UTC](https://forum.ansible.com/t/ansilbe-apt-handling-of-dpkg-options/23216 "2017-01-16T15:40:30Z")

</div>

I am attempting to perform the follow in order to only upgrade ubuntu security updates… apt: upgrade=yes update\_cache=yes dpkg\_options=‘Dir::Etc::SourceList=/etc/apt/security.sources.list’ and I receive the following e…

---

## [How to acces ansible\_host from the inventory?](https://forum.ansible.com/t/how-to-acces-ansible-host-from-the-inventory/23456)

<div class="topic-metadata">

**Author:** [@Cev\_Ing](https://forum.ansible.com/u/Cev_Ing)\
**Replies:** 2\
**Last updated:** [January 16, 2017, 8:50am UTC](https://forum.ansible.com/t/how-to-acces-ansible-host-from-the-inventory/23456 "2017-01-16T08:50:28Z")

</div>

I have an inventory with IP addresses: \[myhosts\] host1 ansible\_host=10.0.0.1 host2 ansible\_host=10.0.0.2 This makes me independent from the /etc/hosts file, which I want to manage with Ansible. I wrote a bootstrap p…

---

## [Application Deployment Process](https://forum.ansible.com/t/application-deployment-process/23463)

<div class="topic-metadata">

**Author:** [@Sai\_Janakiram](https://forum.ansible.com/u/Sai_Janakiram)\
**Replies:** 0\
**Last updated:** [January 16, 2017, 6:56am UTC](https://forum.ansible.com/t/application-deployment-process/23463 "2017-01-16T06:56:51Z")

</div>

Dear Experts, I am planning to deploy application in AWS using Ansible. Is Ansbile responsible of Infrastructure provision part? or do I need to get the Infrastructure first then feed the IP address during the Applicat…

---

## [Text::FastTemplate  module is missing missing](https://forum.ansible.com/t/text-fasttemplate-module-is-missing-missing/23462)

<div class="topic-metadata">

**Author:** [@bohdan\_kalytovskyy](https://forum.ansible.com/u/bohdan_kalytovskyy)\
**Replies:** 0\
**Last updated:** [January 15, 2017, 6:39pm UTC](https://forum.ansible.com/t/text-fasttemplate-module-is-missing-missing/23462 "2017-01-15T18:39:04Z")

</div>

Hello all, trying to install perl module Text::FastTemplate using cpan on ubuntu. Tried using this http://docs.ansible.com/ansible/cpanm\_module.html but keep getting error that module is missing. How can i make this hap…

---

## [Using rabbitmq\_user module with multiple permissions](https://forum.ansible.com/t/using-rabbitmq-user-module-with-multiple-permissions/23459)

<div class="topic-metadata">

**Author:** [@Dan82](https://forum.ansible.com/u/Dan82)\
**Replies:** 1\
**Last updated:** [January 14, 2017, 5:31pm UTC](https://forum.ansible.com/t/using-rabbitmq-user-module-with-multiple-permissions/23459 "2017-01-14T17:31:54Z")

</div>

Hello, I’m working on a rabbitmqAnsible role and I have to write the task dedicated to users creation and configuration. I defined the following variable in my playbook: vars: rabbitmq\_resources: type\_resource: “vho…

---

## [Parse error at Handler](https://forum.ansible.com/t/parse-error-at-handler/23460)

<div class="topic-metadata">

**Author:** [@Ram\_P](https://forum.ansible.com/u/Ram_P)\
**Replies:** 1\
**Last updated:** [January 14, 2017, 4:13pm UTC](https://forum.ansible.com/t/parse-error-at-handler/23460 "2017-01-14T16:13:13Z")

</div>

Hi All, I have started learning ansible, and written a playbook. — # This is my first playbook to install httpd (apache webserver) hosts: test.server.com sudo: yes connection: ssh user: ansibleuser tasks: name: I…

---

## [IMPORTANT - Updated (x2) RCs for Security Bug CVE-2016-9587](https://forum.ansible.com/t/important-updated-x2-rcs-for-security-bug-cve-2016-9587/23458)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [January 13, 2017, 10:57pm UTC](https://forum.ansible.com/t/important-updated-x2-rcs-for-security-bug-cve-2016-9587/23458 "2017-01-13T22:57:16Z")

</div>

Hi all, We are releasing a new set of candidates for the security bug in CVE-2016-9587: 2.1.4 RC3 2.2.1 RC5 Due to this release, we are moving the final release to Monday, January 16th. Sorry for the delay in getting…

---

## [Run multiple tasks with different Ansible users for Windows hosts](https://forum.ansible.com/t/run-multiple-tasks-with-different-ansible-users-for-windows-hosts/23448)

<div class="topic-metadata">

**Author:** [@davidfof](https://forum.ansible.com/u/davidfof)\
**Replies:** 2\
**Last updated:** [January 13, 2017, 8:19pm UTC](https://forum.ansible.com/t/run-multiple-tasks-with-different-ansible-users-for-windows-hosts/23448 "2017-01-13T20:19:52Z")

</div>

Hi all, I have role that contains several tasks that should be run by different Ansible users. The playbook that uses this role should run on Windows hosts and I do this using a command similar to the following: ansi…

---

## [List of keywords - no, not a glossary.](https://forum.ansible.com/t/list-of-keywords-no-not-a-glossary/23457)

<div class="topic-metadata">

**Author:** [@Justin\_Clancy](https://forum.ansible.com/u/Justin_Clancy)\
**Replies:** 1\
**Last updated:** [January 13, 2017, 7:16pm UTC](https://forum.ansible.com/t/list-of-keywords-no-not-a-glossary/23457 "2017-01-13T19:16:35Z")

</div>

What would be really useful would be a list of ansible keywords with an explanation of syntax and usage for each one. I don’t mean a glossary or a list of modules, but things like with\_items:, when:, name: and notify: a…

---

## [How create new Git repository from Ansible  directly?](https://forum.ansible.com/t/how-create-new-git-repository-from-ansible-directly/23453)

<div class="topic-metadata">

**Author:** [@SwApNiL\_PATIL](https://forum.ansible.com/u/SwApNiL_PATIL)\
**Replies:** 2\
**Last updated:** [January 13, 2017, 7:05pm UTC](https://forum.ansible.com/t/how-create-new-git-repository-from-ansible-directly/23453 "2017-01-13T19:05:52Z")

</div>

Hello All , I am only able to clone the repository from Git with the help of Git module of Ansible. I am able to create new repository from shell and attach that shell script to Ansible. But I want to know can I create…

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

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