# Ansible Project

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

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

**Page:** 320

---

## [Ansible python scripts and registers issue](https://forum.ansible.com/t/ansible-python-scripts-and-registers-issue/25269)

<div class="topic-metadata">

**Author:** [@Tom\_Monte](https://forum.ansible.com/u/Tom_Monte)\
**Replies:** 1\
**Last updated:** [August 16, 2017, 4:43pm UTC](https://forum.ansible.com/t/ansible-python-scripts-and-registers-issue/25269 "2017-08-16T16:43:54Z")

</div>

down votefavorite | I am running a Ansible script that calls a python script, which manipulates some data and turns it into a dictionary. I want to redirect the python dictionary to a register and then use it r…

---

## [Ansible tower inventories and variables](https://forum.ansible.com/t/ansible-tower-inventories-and-variables/25268)

<div class="topic-metadata">

**Author:** [@Andrew\_Latham](https://forum.ansible.com/u/Andrew_Latham)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 3:23pm UTC](https://forum.ansible.com/t/ansible-tower-inventories-and-variables/25268 "2017-08-16T15:23:36Z")

</div>

For tower questions and support please utilize https://access.redhat.com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project.

---

## [ansible tower, inventories, group and host\_vars](https://forum.ansible.com/t/ansible-tower-inventories-group-and-host-vars/25267)

<div class="topic-metadata">

**Author:** [@Asil](https://forum.ansible.com/u/Asil)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 3:12pm UTC](https://forum.ansible.com/t/ansible-tower-inventories-group-and-host-vars/25267 "2017-08-16T15:12:14Z")

</div>

We’ve implemented our ansible directory structure for multi-stage environments as per the digital ocean blogpost The inventory files and roles vars are separated out in this manner and kept in version control along with…

---

## [User data Not working](https://forum.ansible.com/t/user-data-not-working/25265)

<div class="topic-metadata">

**Author:** [@Rohit\_Maheshwari](https://forum.ansible.com/u/Rohit_Maheshwari)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 12:11pm UTC](https://forum.ansible.com/t/user-data-not-working/25265 "2017-08-16T12:11:18Z")

</div>

Hi, I am putting the below config in ec2\_lc module for the server to run the script at the time of start. user\_data: { #!/bin/bash source /home/centos/startup.sh } But It is not working. It is giving me below err…

---

## [Does anybody have users stories about the use of multi -inventory introduced in ansible 2.4 ?](https://forum.ansible.com/t/does-anybody-have-users-stories-about-the-use-of-multi-inventory-introduced-in-ansible-2-4/25264)

<div class="topic-metadata">

**Author:** [@Vincent\_JOBARD](https://forum.ansible.com/u/Vincent_JOBARD)\
**Replies:** 0\
**Last updated:** [August 16, 2017, 8:24am UTC](https://forum.ansible.com/t/does-anybody-have-users-stories-about-the-use-of-multi-inventory-introduced-in-ansible-2-4/25264 "2017-08-16T08:24:16Z")

</div>

Hi everyone, I’m studiying ansible 2.4 behaviour and the impact of multi inventory possibilities to evaluate the impact on our project. I tried many things to try to understand how it will work, but I think it could be…

---

## [Skipping: no hosts matched](https://forum.ansible.com/t/skipping-no-hosts-matched/25228)

<div class="topic-metadata">

**Author:** [@eclipxsydney](https://forum.ansible.com/u/eclipxsydney)\
**Replies:** 3\
**Last updated:** [August 16, 2017, 7:42am UTC](https://forum.ansible.com/t/skipping-no-hosts-matched/25228 "2017-08-16T07:42:17Z")

</div>

Hi all, I am in need of help/pointers from the community in setting up Ansible ansible 2.3.2.0 on ubuntu 14.04. At the current stage it has been configure to retrieve the information from the remote server, but when I …

---

## [Using Cpanel with Ansible](https://forum.ansible.com/t/using-cpanel-with-ansible/24894)

<div class="topic-metadata">

**Author:** [@Fayad](https://forum.ansible.com/u/Fayad)\
**Replies:** 9\
**Last updated:** [August 16, 2017, 3:21am UTC](https://forum.ansible.com/t/using-cpanel-with-ansible/24894 "2017-08-16T03:21:09Z")

</div>

Hi, Let me explain our environment first: We have about 500 cpanel servers which are either openvz VEs or physical servers. We are now using puppet to manage and carry out any common system administration tasks on the …

---

## [Total Ansible n00b needing guidance on translating bash command to Ansible playlist](https://forum.ansible.com/t/total-ansible-n00b-needing-guidance-on-translating-bash-command-to-ansible-playlist/25257)

<div class="topic-metadata">

**Author:** [@EspressoBeanies](https://forum.ansible.com/u/EspressoBeanies)\
**Replies:** 7\
**Last updated:** [August 15, 2017, 8:07pm UTC](https://forum.ansible.com/t/total-ansible-n00b-needing-guidance-on-translating-bash-command-to-ansible-playlist/25257 "2017-08-15T20:07:23Z")

</div>

Hi, I’m trying to run the following nested bash command: rm $( locate somefile ) but Ansible is kicking back an error asking me to use “state=absent” instead. How do I execute this while I’m searching for the potential …

---

## [Built-in variable that stores playbook name?](https://forum.ansible.com/t/built-in-variable-that-stores-playbook-name/25262)

<div class="topic-metadata">

**Author:** [@Ryan1](https://forum.ansible.com/u/Ryan1)\
**Replies:** 0\
**Last updated:** [August 15, 2017, 6:56pm UTC](https://forum.ansible.com/t/built-in-variable-that-stores-playbook-name/25262 "2017-08-15T18:56:51Z")

</div>

I am creating log files where I use the playbook name in the name of the log file. I am just hard coding the name into the playbooks, but I was wondering if there was a built-in variable that stores “test” if the playboo…

---

## [Add conditionals to debug msg](https://forum.ansible.com/t/add-conditionals-to-debug-msg/25226)

<div class="topic-metadata">

**Author:** [@Ryan1](https://forum.ansible.com/u/Ryan1)\
**Replies:** 9\
**Last updated:** [August 15, 2017, 6:49pm UTC](https://forum.ansible.com/t/add-conditionals-to-debug-msg/25226 "2017-08-15T18:49:04Z")

</div>

How do I add a conditionals to debug msg lists? name: Print results debug: msg: “Board: {{ ansible\_product\_name }}” “CPU: {{ ansible\_processor\[1\] }} Cores: {{ ansible\_processor\_cores }} CPU Count: {{ ansible\_processo…

---

## [include\_vars behavior](https://forum.ansible.com/t/include-vars-behavior/25261)

<div class="topic-metadata">

**Author:** [@chronidev](https://forum.ansible.com/u/chronidev)\
**Replies:** 0\
**Last updated:** [August 15, 2017, 6:26pm UTC](https://forum.ansible.com/t/include-vars-behavior/25261 "2017-08-15T18:26:40Z")

</div>

Hi, I just want to know if it’s normal that the variables loaded with include\_vars in a play are still accessible in subsequent play ? Does this behavior will change in the future ? Regards,

---

## [ansible\_ssh\_pass parameter with salt encrypt value of ansible\_user password makes client server Unreachable on playbook run](https://forum.ansible.com/t/ansible-ssh-pass-parameter-with-salt-encrypt-value-of-ansible-user-password-makes-client-server-unreachable-on-playbook-run/25124)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Farinas](https://forum.ansible.com/u/Lorenzo_Farinas)\
**Replies:** 11\
**Last updated:** [August 15, 2017, 3:52pm UTC](https://forum.ansible.com/t/ansible-ssh-pass-parameter-with-salt-encrypt-value-of-ansible-user-password-makes-client-server-unreachable-on-playbook-run/25124 "2017-08-15T15:52:58Z")

</div>

I successfully created and tested some Ansible playbooks, that’s when ansible\_ssh\_pass parameter value is the actual password of the ansible\_user for the involved server specified in a group in the /etc/ansible/hosts fil…

---

## [Define group in hosts file based on intersection of 2 groups](https://forum.ansible.com/t/define-group-in-hosts-file-based-on-intersection-of-2-groups/22445)

<div class="topic-metadata">

**Author:** [@Iain\_M\_Conochie](https://forum.ansible.com/u/Iain_M_Conochie)\
**Replies:** 2\
**Last updated:** [August 15, 2017, 3:43pm UTC](https://forum.ansible.com/t/define-group-in-hosts-file-based-on-intersection-of-2-groups/22445 "2017-08-15T15:43:50Z")

</div>

Hello, It is possible to limit the hosts the ansible command runs against by specifying patterns on the command line like so: ansible webservers:!staging -m ping Is it possible to use the same technique to define grou…

---

## [winrm Unable to connect to windows10 desktop](https://forum.ansible.com/t/winrm-unable-to-connect-to-windows10-desktop/22347)

<div class="topic-metadata">

**Author:** [@Deep18](https://forum.ansible.com/u/Deep18)\
**Replies:** 4\
**Last updated:** [August 15, 2017, 3:26pm UTC](https://forum.ansible.com/t/winrm-unable-to-connect-to-windows10-desktop/22347 "2017-08-15T15:26:30Z")

</div>

Hi, I am trying to use ansible to controla windows 10 desktop VM in my lab and cannot seem to get past the connection error.Appreciate your help here. Here is my setup: MacBook is the control host and trying to connec…

---

## [ansible.utils.unicode.to\_str is deprecated.  Use ansible.module\_utils.\_text.to\_native instead](https://forum.ansible.com/t/ansible-utils-unicode-to-str-is-deprecated-use-ansible-module-utils-text-to-native-instead/25254)

<div class="topic-metadata">

**Author:** [@Fabrizio\_Pandini](https://forum.ansible.com/u/Fabrizio_Pandini)\
**Replies:** 1\
**Last updated:** [August 15, 2017, 3:17pm UTC](https://forum.ansible.com/t/ansible-utils-unicode-to-str-is-deprecated-use-ansible-module-utils-text-to-native-instead/25254 "2017-08-15T15:17:17Z")

</div>

According to the message in the codebase ansible.utils.unicode.to\_str is deprecated, and instead we have to use ansible.module\_utils.\_text.to\_native starting from 2.4 which is expected in mid september. However, the pac…

---

## [mysql\_db module, variables and hyphenated DB names](https://forum.ansible.com/t/mysql-db-module-variables-and-hyphenated-db-names/25256)

<div class="topic-metadata">

**Author:** [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Replies:** 0\
**Last updated:** [August 15, 2017, 2:03pm UTC](https://forum.ansible.com/t/mysql-db-module-variables-and-hyphenated-db-names/25256 "2017-08-15T14:03:39Z")

</div>

So, I’m trying to built a task list for backing up our primary DB server. The issue is that ONE database has a hyphenated name (no, I’m not the one that did something that stupid). Here’s the task that bombs: name: ba…

---

## [Need an Intro section for "become" for Windows](https://forum.ansible.com/t/need-an-intro-section-for-become-for-windows/25250)

<div class="topic-metadata">

**Author:** [@Marvin\_Greenberg](https://forum.ansible.com/u/Marvin_Greenberg)\
**Replies:** 2\
**Last updated:** [August 15, 2017, 1:37pm UTC](https://forum.ansible.com/t/need-an-intro-section-for-become-for-windows/25250 "2017-08-15T13:37:45Z")

</div>

How “become” works on windows is confusing in general, and with limited and evolving support (doesn’t work for Kerberos, for example?), a documentation section describing how it works for Windows is important. Further, …

---

## [Not able to update windows using ansible win\_update](https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255)

<div class="topic-metadata">

**Author:** [@tarvinder7](https://forum.ansible.com/u/tarvinder7)\
**Replies:** 1\
**Last updated:** [August 15, 2017, 9:38am UTC](https://forum.ansible.com/t/not-able-to-update-windows-using-ansible-win-update/25255 "2017-08-15T09:38:49Z")

</div>

\--- - name: Install Updates hosts: winserver gather\_facts: true tasks: - win\_updates: category\_names: - SecurityUpdates - CriticalUpdates - UpdateRollups state: installed Result ro…

---

## [Will more CPU cores on the control machine speed up ansible?](https://forum.ansible.com/t/will-more-cpu-cores-on-the-control-machine-speed-up-ansible/25253)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [August 15, 2017, 8:36am UTC](https://forum.ansible.com/t/will-more-cpu-cores-on-the-control-machine-speed-up-ansible/25253 "2017-08-15T08:36:20Z")

</div>

As it says on the tin. Is there any performance gain in an Ansible controller with a quad core CPU versus a dual core? Thanks

---

## [If get\_url is cancelled on a large file following executions fail](https://forum.ansible.com/t/if-get-url-is-cancelled-on-a-large-file-following-executions-fail/25252)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 1\
**Last updated:** [August 15, 2017, 2:33am UTC](https://forum.ansible.com/t/if-get-url-is-cancelled-on-a-large-file-following-executions-fail/25252 "2017-08-15T02:33:37Z")

</div>

Did you look into "local\_tmp" and "remote\_tmp" configured in your Ansible config?

---

## [Database dump with mssql\_db module](https://forum.ansible.com/t/database-dump-with-mssql-db-module/25227)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 9:53pm UTC](https://forum.ansible.com/t/database-dump-with-mssql-db-module/25227 "2017-08-14T21:53:07Z")

</div>

I am curious to see what you are all doing to do DB dumps of MSSQL schema’s using Ansible. Looking at the mssql\_db module, the only option I see is for importing. What is everyone else doing to get some backups via Ansib…

---

## [Getting "502 Bad Gateway" after Ansible Tower 3.1.4 Install](https://forum.ansible.com/t/getting-502-bad-gateway-after-ansible-tower-3-1-4-install/25251)

<div class="topic-metadata">

**Author:** [@Joel\_Chaney](https://forum.ansible.com/u/Joel_Chaney)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 8:22pm UTC](https://forum.ansible.com/t/getting-502-bad-gateway-after-ansible-tower-3-1-4-install/25251 "2017-08-14T20:22:58Z")

</div>

Ansible Tower installed on CentOs 7 minimal installed server. Install completed with 0 errors but nginx generates 502 error when trying to access new Ansible Tower configuration. Any ideas on fix?

---

## [Capture ansible playbook command line](https://forum.ansible.com/t/capture-ansible-playbook-command-line/25249)

<div class="topic-metadata">

**Author:** [@graftonmaple](https://forum.ansible.com/u/graftonmaple)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 7:02pm UTC](https://forum.ansible.com/t/capture-ansible-playbook-command-line/25249 "2017-08-14T19:02:55Z")

</div>

For auditing purpose we would like to capture all ansible playbook commands being run by another team. How do I approach this? Ideally we would like to assign it same pid as rest of the play and be part of ansible.log B…

---

## [win\_package unable to install .exe Chart Director](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180)

<div class="topic-metadata">

**Author:** [@daniyal.javed](https://forum.ansible.com/u/daniyal.javed)\
**Replies:** 4\
**Last updated:** [August 14, 2017, 6:41pm UTC](https://forum.ansible.com/t/win-package-unable-to-install-exe-chart-director/25180 "2017-08-14T18:41:27Z")

</div>

Hello, I am trying to install Chart Director which is an .exe file with ansible. I am trying to use win\_package to do the install as I have already checked for the registries in the uninstall directory (HKLM:Software\\Wow…

---

## [Quote mismatch when executing a command on windows boxes](https://forum.ansible.com/t/quote-mismatch-when-executing-a-command-on-windows-boxes/25122)

<div class="topic-metadata">

**Author:** [@rambius](https://forum.ansible.com/u/rambius)\
**Replies:** 1\
**Last updated:** [August 14, 2017, 5:00pm UTC](https://forum.ansible.com/t/quote-mismatch-when-executing-a-command-on-windows-boxes/25122 "2017-08-14T17:00:12Z")

</div>

Hello, I have several windows boxes with directories on them full of log files. I want to delete all log files older then 7 days. The dos command that does it is forfiles /d -7 /c “cmd /c del @path” I tested the comma…

---

## [Access dynamically loaded variables by name](https://forum.ansible.com/t/access-dynamically-loaded-variables-by-name/25248)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 0\
**Last updated:** [August 14, 2017, 4:44pm UTC](https://forum.ansible.com/t/access-dynamically-loaded-variables-by-name/25248 "2017-08-14T16:44:44Z")

</div>

Hi again, I'm looking for a way to merge multiple lists into one. Difficulty is that the lists have dynamic names. E.g. #### cluster.yaml ####

---

## [Fetch Time Out with Windows Server 2008 SP2 and R2 - Works for Server 2012](https://forum.ansible.com/t/fetch-time-out-with-windows-server-2008-sp2-and-r2-works-for-server-2012/25077)

<div class="topic-metadata">

**Author:** [@Richard\_Rogers](https://forum.ansible.com/u/Richard_Rogers)\
**Replies:** 4\
**Last updated:** [August 14, 2017, 4:42pm UTC](https://forum.ansible.com/t/fetch-time-out-with-windows-server-2008-sp2-and-r2-works-for-server-2012/25077 "2017-08-14T16:42:03Z")

</div>

Hi, Pretty new to Ansible, but enjoying it so far :slight\_smile: I have a playbook that connects to a Windows server, creates a zip file of a specific folder, sub folders and files, then upload to the Ansible server. T…

---

## [Cisco Spark - Token](https://forum.ansible.com/t/cisco-spark-token/25247)

<div class="topic-metadata">

**Author:** [@Rodrigo](https://forum.ansible.com/u/Rodrigo)\
**Replies:** 0\
**Last updated:** [August 14, 2017, 4:38pm UTC](https://forum.ansible.com/t/cisco-spark-token/25247 "2017-08-14T16:38:13Z")

</div>

Hello Everyone, Do you know if anyone in this group already work with Cisco Spark integration in order to send message via ansible ( playbook ) to room in Spark? I am receiving errors with try to authentication via tok…

---

## [Variable expansion in include\_vars](https://forum.ansible.com/t/variable-expansion-in-include-vars/25246)

<div class="topic-metadata">

**Author:** [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Replies:** 0\
**Last updated:** [August 14, 2017, 4:26pm UTC](https://forum.ansible.com/t/variable-expansion-in-include-vars/25246 "2017-08-14T16:26:08Z")

</div>

Hi, I'm trying to keep my playbooks and related var files portable. Currently I'm stuck with the following: ### input.yaml ###

---

## [ansible\_host + proxy + windows servers (WinRM) not working](https://forum.ansible.com/t/ansible-host-proxy-windows-servers-winrm-not-working/25222)

<div class="topic-metadata">

**Author:** [@Mike\_Klebolt](https://forum.ansible.com/u/Mike_Klebolt)\
**Replies:** 3\
**Last updated:** [August 14, 2017, 2:23pm UTC](https://forum.ansible.com/t/ansible-host-proxy-windows-servers-winrm-not-working/25222 "2017-08-14T14:23:07Z")

</div>

Hello, We’re using ansible on some windows servers. The ansible\_host is configured with a proxy and is preventing us from connecting to the windows hosts. My current workaround involves manually exporting no\_proxy with …

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

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