# Latest

**URL:** https://forum.ansible.com/latest.md?page=736

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

**Page:** 737

---

## [Variable (for Windows/Powershell) that contains a character which must by escaped?](https://forum.ansible.com/t/variable-for-windows-powershell-that-contains-a-character-which-must-by-escaped/22231)

<div class="topic-metadata">

**Author:** [@Matt\_Gagliardi](https://forum.ansible.com/u/Matt_Gagliardi)\
**Replies:** 1\
**Last updated:** [August 8, 2016, 5:52pm UTC](https://forum.ansible.com/t/variable-for-windows-powershell-that-contains-a-character-which-must-by-escaped/22231 "2016-08-08T17:52:06Z")

</div>

I searched around but didn’t see anything that appeared to apply to the Windows/Powershell application I need advice on. I’ve got a playbook that works 100% fine as long as a certain variable doesn’t contain a “$” charac…

---

## [cant find /opt/bin/python even though the environment path is specified](https://forum.ansible.com/t/cant-find-opt-bin-python-even-though-the-environment-path-is-specified/22226)

<div class="topic-metadata">

**Author:** [@Gallo](https://forum.ansible.com/u/Gallo)\
**Replies:** 2\
**Last updated:** [August 8, 2016, 5:20pm UTC](https://forum.ansible.com/t/cant-find-opt-bin-python-even-though-the-environment-path-is-specified/22226 "2016-08-08T17:20:02Z")

</div>

Hey guys, i have a coreOS system running python and pip with toolbox localhost ~ # cat /etc/rele |grep DISTRIB\_RELEASE ; which python ;which pip DISTRIB\_RELEASE=1068.8.0 /opt/bin/python /opt/bin/pip $ ls -l total 1…

---

## [Windows playbooks causes cryptographic, windows remote management services to crash](https://forum.ansible.com/t/windows-playbooks-causes-cryptographic-windows-remote-management-services-to-crash/22151)

<div class="topic-metadata">

**Author:** [@Michael\_Perzel](https://forum.ansible.com/u/Michael_Perzel)\
**Replies:** 9\
**Last updated:** [August 8, 2016, 3:26pm UTC](https://forum.ansible.com/t/windows-playbooks-causes-cryptographic-windows-remote-management-services-to-crash/22151 "2016-08-08T15:26:34Z")

</div>

Since upgrading to ansible 2.0 my windows playbooks have been failing with the following error. This error has been seen when running setup, win\_template, script tasks. The easiest way to repeat it is to have multiple si…

---

## [How the get the output of module.log calls in a custom module?](https://forum.ansible.com/t/how-the-get-the-output-of-module-log-calls-in-a-custom-module/22234)

<div class="topic-metadata">

**Author:** [@Jakub\_Holy1](https://forum.ansible.com/u/Jakub_Holy1)\
**Replies:** 0\
**Last updated:** [August 8, 2016, 12:50pm UTC](https://forum.ansible.com/t/how-the-get-the-output-of-module-log-calls-in-a-custom-module/22234 "2016-08-08T12:50:27Z")

</div>

Hello! I am trying to write an Ansible (2.1.x) module. In the module, I make calls to module.log(“some message”) (where module is an instance of ansible.module\_utils.basic.AnsibleModule). I am not able to find any way …

---

## [ansible\_vault\_password\_file](https://forum.ansible.com/t/ansible-vault-password-file/22232)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 3\
**Last updated:** [August 8, 2016, 9:09am UTC](https://forum.ansible.com/t/ansible-vault-password-file/22232 "2016-08-08T09:09:29Z")

</div>

Hello, I try to run a playbook to connect to a windows server with host external parameters set this way: In my inventory file, I only want to set these parameter: ansible\_host and ansible\_user \[windows\] ansible\_host…

---

## [Start tomcat through tomcat-standalone](https://forum.ansible.com/t/start-tomcat-through-tomcat-standalone/22229)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 2\
**Last updated:** [August 7, 2016, 1:13pm UTC](https://forum.ansible.com/t/start-tomcat-through-tomcat-standalone/22229 "2016-08-07T13:13:58Z")

</div>

hi, I am using tomcat standalone example from git-examples to start tomcat server but customised it a little meaning I already have tomcat installed and it starts fine by sudo service tomcat7 start. So this is my main.x…

---

## [Best way to handle nginx config/vhosts](https://forum.ansible.com/t/best-way-to-handle-nginx-config-vhosts/22228)

<div class="topic-metadata">

**Author:** [@michaeleaton](https://forum.ansible.com/u/michaeleaton)\
**Replies:** 0\
**Last updated:** [August 6, 2016, 6:47pm UTC](https://forum.ansible.com/t/best-way-to-handle-nginx-config-vhosts/22228 "2016-08-06T18:47:00Z")

</div>

So I’m trying to find a role/create a role for my Ansible config to configure nginx. Here’s how it currently (manually!) works: I have numerous nginx conf files for each website that I host on this machine. api.p123.d…

---

## [How to check for each value in a list that if the value exists somewhere in another using jinja2 templates](https://forum.ansible.com/t/how-to-check-for-each-value-in-a-list-that-if-the-value-exists-somewhere-in-another-using-jinja2-templates/22218)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 6, 2016, 8:52am UTC](https://forum.ansible.com/t/how-to-check-for-each-value-in-a-list-that-if-the-value-exists-somewhere-in-another-using-jinja2-templates/22218 "2016-08-06T08:52:18Z")

</div>

I am trying to check if a given mount point exists for each host in my playbook. I am trying to generate a kind of report by printing Success or Failed using if-else, loops and flags (need something better than flags) in…

---

## [Having trouble with Ansible Ad-hoc commands (page 28 of 'Ansible for DevOps' book)](https://forum.ansible.com/t/having-trouble-with-ansible-ad-hoc-commands-page-28-of-ansible-for-devops-book/22191)

<div class="topic-metadata">

**Author:** [@P\_Retzel](https://forum.ansible.com/u/P_Retzel)\
**Replies:** 3\
**Last updated:** [August 6, 2016, 3:24am UTC](https://forum.ansible.com/t/having-trouble-with-ansible-ad-hoc-commands-page-28-of-ansible-for-devops-book/22191 "2016-08-06T03:24:37Z")

</div>

From page 28 in the book “Ansible for DevOps”, the author says to try the following examples: $ ansible multi -s -a "service ntpd stop" $ ansible multi -s -a "ntpdate -q 0.rhel.pool.ntp.org" $ ansible multi -s -a "servi…

---

## [How to install linux server using ansible-playbook in cloud](https://forum.ansible.com/t/how-to-install-linux-server-using-ansible-playbook-in-cloud/22170)

<div class="topic-metadata">

**Author:** [@pvlrjr](https://forum.ansible.com/u/pvlrjr)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:54pm UTC](https://forum.ansible.com/t/how-to-install-linux-server-using-ansible-playbook-in-cloud/22170 "2016-08-05T21:54:19Z")

</div>

Hi Team, I requesting you, is there any possibility to install linux server using ansible-playbook in cloud? If possible could you please share how we can achieve… Regards, Jagadesh

---

## [Passing dynamic variable into a role](https://forum.ansible.com/t/passing-dynamic-variable-into-a-role/22116)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:52pm UTC](https://forum.ansible.com/t/passing-dynamic-variable-into-a-role/22116 "2016-08-05T21:52:22Z")

</div>

For each of our servers (webs and perls), we have different mount points for each type of servers. So for web servers, I want to use the entries for “web\_mounts” and perls would be “perl\_mounts.” If I hard code “web\_mou…

---

## [loop over roles?](https://forum.ansible.com/t/loop-over-roles/22150)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:37pm UTC](https://forum.ansible.com/t/loop-over-roles/22150 "2016-08-05T21:37:45Z")

</div>

Hi I have a bunch of roles in my playbook: roles: - role\_1 - role\_b - { role: install\_app, install\_dir=/opt/foo } - { role: install\_app, install\_dir=/opt/bar } - { role: install\_app, install\_dir=/opt/baz…

---

## [Insert hosts and host variables into a python script](https://forum.ansible.com/t/insert-hosts-and-host-variables-into-a-python-script/22158)

<div class="topic-metadata">

**Author:** [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:32pm UTC](https://forum.ansible.com/t/insert-hosts-and-host-variables-into-a-python-script/22158 "2016-08-05T21:32:39Z")

</div>

Hello, Is it possible to take a hostname and other information in the hosts file and insert each one into a python file as an ansible playbook runs the python file for each host?

---

## [yum module not updating local rpm](https://forum.ansible.com/t/yum-module-not-updating-local-rpm/22165)

<div class="topic-metadata">

**Author:** [@Giovanni\_Torres](https://forum.ansible.com/u/Giovanni_Torres)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 9:22pm UTC](https://forum.ansible.com/t/yum-module-not-updating-local-rpm/22165 "2016-08-05T21:22:50Z")

</div>

Running ansible 2.1.1.0 on CentOS 6. I have a package (v5.5.0) that is installed on the remote host: \[remotehost ~\] $ rpm -q mypkg mypkg-5.5.0-1.el6.x86\_64 I tried to use this command on the ansible server to update …

---

## [not seeing any changes on target host(Running git example of deploying stand-alone tomcat server)](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 3\
**Last updated:** [August 5, 2016, 9:13pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224 "2016-08-05T21:13:03Z")

</div>

hi, I am running examples from git-ansible examples project and running “tomcat-standalone” server example. Not seeing any changes on the target host. Below is the output: Also I changed the hosts file to be : \[tomcat…

---

## [You need to be root to perform this command.](https://forum.ansible.com/t/you-need-to-be-root-to-perform-this-command/22216)

<div class="topic-metadata">

**Author:** [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Replies:** 3\
**Last updated:** [August 5, 2016, 6:42pm UTC](https://forum.ansible.com/t/you-need-to-be-root-to-perform-this-command/22216 "2016-08-05T18:42:23Z")

</div>

hi,I have been trying to run this playbook. hosts: webservers vars: http\_port: 80 max\_clients: 200 remote\_user: root tasks: name: ensure apache is at the latest version yum: name=httpd state=latest name: writ…

---

## [ERR : msg: src (or content) and dest are required](https://forum.ansible.com/t/err-msg-src-or-content-and-dest-are-required/22221)

<div class="topic-metadata">

**Author:** [@Kiran\_Patil](https://forum.ansible.com/u/Kiran_Patil)\
**Replies:** 2\
**Last updated:** [August 5, 2016, 6:39pm UTC](https://forum.ansible.com/t/err-msg-src-or-content-and-dest-are-required/22221 "2016-08-05T18:39:54Z")

</div>

Hello, Can someone help on this ? I am getting err failed: \[xxx01\] =\> {“failed”: true} msg: src (or content) and dest are required FATAL: all hosts have already failed – aborting name: Set puppet.conf copy: src=/…

---

## [rsync data 1:1 between old/new servers w/roles](https://forum.ansible.com/t/rsync-data-1-1-between-old-new-servers-w-roles/22222)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 5:42pm UTC](https://forum.ansible.com/t/rsync-data-1-1-between-old-new-servers-w-roles/22222 "2016-08-05T17:42:22Z")

</div>

I have a group of oldservers and matching new servers. I need to rsync a dir from each old one to each corresponding new one. e.g. oldserver1:/some/path → newserver1:/some/path oldserver2:/some/path → newserver2:/some…

---

## [How to override a role default dictionary variable value from command line](https://forum.ansible.com/t/how-to-override-a-role-default-dictionary-variable-value-from-command-line/22223)

<div class="topic-metadata">

**Author:** [@Ajay\_B](https://forum.ansible.com/u/Ajay_B)\
**Replies:** 0\
**Last updated:** [August 5, 2016, 3:49pm UTC](https://forum.ansible.com/t/how-to-override-a-role-default-dictionary-variable-value-from-command-line/22223 "2016-08-05T15:49:13Z")

</div>

I have in a role(A) a dictionary variable defined under defaults as follows : ceph\_disks: /dev/vdb: “/es1” This role A is being included in another role B thru dependencies in meta file. When this role B is executed a…

---

## [dynamic inventory jinja2 template help](https://forum.ansible.com/t/dynamic-inventory-jinja2-template-help/22197)

<div class="topic-metadata">

**Author:** [@Bryan\_Pearson](https://forum.ansible.com/u/Bryan_Pearson)\
**Replies:** 1\
**Last updated:** [August 5, 2016, 8:43am UTC](https://forum.ansible.com/t/dynamic-inventory-jinja2-template-help/22197 "2016-08-05T08:43:43Z")

</div>

I have nodes in AWS and I’d like to use the dynamic inventory to create a template. Currently I cant get the facts from all the nodes into the one template file. The template only gets populated with the node thats in “r…

---

## [Encrypting password without using vault](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193)

<div class="topic-metadata">

**Author:** [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Replies:** 2\
**Last updated:** [August 5, 2016, 8:08am UTC](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193 "2016-08-05T08:08:31Z")

</div>

Hi, Is there a way to encrypt a password in the hosts file without using a vault? Thanks!

---

## [Ansible module ecs\_taskdefinition - No JSON could be decoded](https://forum.ansible.com/t/ansible-module-ecs-taskdefinition-no-json-could-be-decoded/22219)

<div class="topic-metadata">

**Author:** [@Luismy\_Saez](https://forum.ansible.com/u/Luismy_Saez)\
**Replies:** 0\
**Last updated:** [August 5, 2016, 7:00am UTC](https://forum.ansible.com/t/ansible-module-ecs-taskdefinition-no-json-could-be-decoded/22219 "2016-08-05T07:00:26Z")

</div>

Hi everyone, I have opened this ‘thread’ to show an error than I am getting with ansible ecs\_\* modules ( Amazon Elastic Container Service ). First, my server details: CentOS 7.2.1511 Python 2.7.5 ansible 2.1.0.0 I b…

---

## [Lineinfile always reporting changed](https://forum.ansible.com/t/lineinfile-always-reporting-changed/20631)

<div class="topic-metadata">

**Author:** [@Austin\_Butler](https://forum.ansible.com/u/Austin_Butler)\
**Replies:** 3\
**Last updated:** [August 5, 2016, 6:42am UTC](https://forum.ansible.com/t/lineinfile-always-reporting-changed/20631 "2016-08-05T06:42:10Z")

</div>

The lineinfile module is consistently reporting changed on a step. The actual replace works fine the first time, and it’s not harming anything on subsequent runs so I guess it’s mostly a cosmetic issue, but still I am tr…

---

## [mysql\_user EXECUTE ON PROCEDURE](https://forum.ansible.com/t/mysql-user-execute-on-procedure/22204)

<div class="topic-metadata">

**Author:** [@Lance\_Onken](https://forum.ansible.com/u/Lance_Onken)\
**Replies:** 1\
**Last updated:** [August 4, 2016, 8:44pm UTC](https://forum.ansible.com/t/mysql-user-execute-on-procedure/22204 "2016-08-04T20:44:17Z")

</div>

Hello, I’d like to grant EXECUTE ON to a single stored PROCEDURE. priv=\*.\*:SELECT/mydb.get\_readings:EXECUTE 'Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used' MySQL doc…

---

## [Running ansible playbook in AWS EC2 instance using Jenkins Job from a local PC using ssh-agent](https://forum.ansible.com/t/running-ansible-playbook-in-aws-ec2-instance-using-jenkins-job-from-a-local-pc-using-ssh-agent/22215)

<div class="topic-metadata">

**Author:** [@Raj\_Boruah](https://forum.ansible.com/u/Raj_Boruah)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 7:48pm UTC](https://forum.ansible.com/t/running-ansible-playbook-in-aws-ec2-instance-using-jenkins-job-from-a-local-pc-using-ssh-agent/22215 "2016-08-04T19:48:38Z")

</div>

Hi, I am trying to run ansible playbook from jenkins installed in my local PC. Ansible playbook is available in AWS EC2 instance. I am using ssh-agent plugin in Jenkins to forward the ssh key but ansible is not able to …

---

## [nested include\_vars not overriding a variable between each loops](https://forum.ansible.com/t/nested-include-vars-not-overriding-a-variable-between-each-loops/22214)

<div class="topic-metadata">

**Author:** [@Aalaesar](https://forum.ansible.com/u/Aalaesar)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 5:21pm UTC](https://forum.ansible.com/t/nested-include-vars-not-overriding-a-variable-between-each-loops/22214 "2016-08-04T17:21:54Z")

</div>

Hello, I’m actually making a role for managing bind configuration but i’m stuck with what seems to be a regression in my role. briefly : Using ansible 2.1.1.0. The role user should be able to give a yml file containi…

---

## [kerberos configuration to ping Windows server with Ansible](https://forum.ansible.com/t/kerberos-configuration-to-ping-windows-server-with-ansible/22211)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 4\
**Last updated:** [August 4, 2016, 4:23pm UTC](https://forum.ansible.com/t/kerberos-configuration-to-ping-windows-server-with-ansible/22211 "2016-08-04T16:23:32Z")

</div>

Hello, I am new in Windows and in Kerberos, following the http://docs.ansible.com/ansible/intro\_windows.html documentation, I tried to parameter kerberos and then ping the windows server without success. Here is the is…

---

## [Deploying Cisco banner with network modules?](https://forum.ansible.com/t/deploying-cisco-banner-with-network-modules/22213)

<div class="topic-metadata">

**Author:** [@Brandon](https://forum.ansible.com/u/Brandon)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 1:39pm UTC](https://forum.ansible.com/t/deploying-cisco-banner-with-network-modules/22213 "2016-08-04T13:39:41Z")

</div>

Has anyone managed to do this? I’ve been using a lot of the new ansible network modules but have ran into a snag trying to configure an exec banner. Looking at accounting logs I see Ansible login, pass the command " bann…

---

## [ansible variables key:value](https://forum.ansible.com/t/ansible-variables-key-value/22212)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 12:42pm UTC](https://forum.ansible.com/t/ansible-variables-key-value/22212 "2016-08-04T12:42:08Z")

</div>

Hi guys, I am writing a number of yaml playbook to run some JSON curl command. the first part of that JSON once run returned a response which is call versionId and applicationId. something key and value.That part 2 supp…

---

## [Using set-up facts before doing tasks](https://forum.ansible.com/t/using-set-up-facts-before-doing-tasks/22209)

<div class="topic-metadata">

**Author:** [@user24](https://forum.ansible.com/u/user24)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 3:32am UTC](https://forum.ansible.com/t/using-set-up-facts-before-doing-tasks/22209 "2016-08-04T03:32:23Z")

</div>

Hello fellas. I’m new 'bout Ansible and English as well I’v tried to use var\_prompt module in my yml file. and now i am stuck by it. I wanna show my remote’s ip address when my prompt is shown up but as far as i kno…

[Previous page](https://forum.ansible.com/latest.md?page=735)

[Next page](https://forum.ansible.com/latest.md?page=737)
