# Ansible Project

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

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

**Page:** 266

---

## [installing windows package with msiexec...](https://forum.ansible.com/t/installing-windows-package-with-msiexec/27331)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 4\
**Last updated:** [April 21, 2018, 2:39am UTC](https://forum.ansible.com/t/installing-windows-package-with-msiexec/27331 "2018-04-21T02:39:56Z")

</div>

Hi… I should probably know how to search for this as I am sure others have asked it - I have a very short time frame to get something working and then I have to work on another project - if anyone could help me with thi…

---

## [Kubernetes on GCP](https://forum.ansible.com/t/kubernetes-on-gcp/27340)

<div class="topic-metadata">

**Author:** [@Richard\_Stanley](https://forum.ansible.com/u/Richard_Stanley)\
**Replies:** 0\
**Last updated:** [April 20, 2018, 11:10pm UTC](https://forum.ansible.com/t/kubernetes-on-gcp/27340 "2018-04-20T23:10:37Z")

</div>

Hi, I’m curious if there is any interest in the community or a roadmap item for a Kubernetes cluster module for Google Cloud Platform. This would be to create/destroy Kubernetes clusters not manage clusters when running…

---

## [Create string from list](https://forum.ansible.com/t/create-string-from-list/27334)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 7\
**Last updated:** [April 20, 2018, 1:34pm UTC](https://forum.ansible.com/t/create-string-from-list/27334 "2018-04-20T13:34:43Z")

</div>

Hi there, I simply cannot figure out how to create a string from a list. What output I want in a variable: "{{10.0.0.1:8080,10.0.0.2:8080}}" I am retrieving a dynamic list of private IPs from Azure Scaleset. \` task…

---

## [Ansible 'win\_shell' working on one server and giving error on another:](https://forum.ansible.com/t/ansible-win-shell-working-on-one-server-and-giving-error-on-another/27328)

<div class="topic-metadata">

**Author:** [@Dinesh\_Vashisht](https://forum.ansible.com/u/Dinesh_Vashisht)\
**Replies:** 2\
**Last updated:** [April 20, 2018, 1:26pm UTC](https://forum.ansible.com/t/ansible-win-shell-working-on-one-server-and-giving-error-on-another/27328 "2018-04-20T13:26:36Z")

</div>

Team, Ansible ‘win\_shell’ working on one server and giving error on another: Success on ‘mytest.mydomain.com’ with .Net framework 4.5 and PowerShell 4. \[user@server1\]# ansible -i /etc/ansible/hosts windows-servers -m …

---

## [How to configure playbook serial value by group var from inventory file?](https://forum.ansible.com/t/how-to-configure-playbook-serial-value-by-group-var-from-inventory-file/26695)

<div class="topic-metadata">

**Author:** [@Bing\_Hsueh](https://forum.ansible.com/u/Bing_Hsueh)\
**Replies:** 4\
**Last updated:** [April 20, 2018, 1:26pm UTC](https://forum.ansible.com/t/how-to-configure-playbook-serial-value-by-group-var-from-inventory-file/26695 "2018-04-20T13:26:14Z")

</div>

I’ve tried to setup a group var “batch\_deploy” in my inventory file and use it in playbook serial field. But always got failed with following message. Is there any concept I misunderstanding? PLAYBOOK: playbook.yml …

---

## [ansible\_connection for Windows apart from winrm](https://forum.ansible.com/t/ansible-connection-for-windows-apart-from-winrm/27335)

<div class="topic-metadata">

**Author:** [@utkarsh\_srivastava](https://forum.ansible.com/u/utkarsh_srivastava)\
**Replies:** 1\
**Last updated:** [April 20, 2018, 11:43am UTC](https://forum.ansible.com/t/ansible-connection-for-windows-apart-from-winrm/27335 "2018-04-20T11:43:43Z")

</div>

Hi, I want to run a very long process on windows machine through ansible. I want to trigger this process in background. But wirnrm does not allow me to do this. it got stuck till that process not completed. I could no…

---

## [Output multi-line string as-is (not JSON format)](https://forum.ansible.com/t/output-multi-line-string-as-is-not-json-format/16207)

<div class="topic-metadata">

**Author:** [@AJ\_Daws](https://forum.ansible.com/u/AJ_Daws)\
**Replies:** 8\
**Last updated:** [April 20, 2018, 11:41am UTC](https://forum.ansible.com/t/output-multi-line-string-as-is-not-json-format/16207 "2018-04-20T11:41:02Z")

</div>

I have a large, multi-line string that I would like to output in a role. Currently I’m using the debug module like this: \` name: Cloud-init user\_data debug: msg: “{{ cloudinit\_user\_data|indent(6) }}” \` However thi…

---

## [service\_facts get full list of services](https://forum.ansible.com/t/service-facts-get-full-list-of-services/27326)

<div class="topic-metadata">

**Author:** [@Stevan\_Svilokos](https://forum.ansible.com/u/Stevan_Svilokos)\
**Replies:** 2\
**Last updated:** [April 20, 2018, 11:03am UTC](https://forum.ansible.com/t/service-facts-get-full-list-of-services/27326 "2018-04-20T11:03:04Z")

</div>

Hi all, I came across service\_facts (seems like previously called scan\_services) to gather information about available services on the host, and their state. Soon I realized that some services were missing, solution wa…

---

## [how to pass the value of a variable from one playbook to another.](https://forum.ansible.com/t/how-to-pass-the-value-of-a-variable-from-one-playbook-to-another/27322)

<div class="topic-metadata">

**Author:** [@radha\_gupta](https://forum.ansible.com/u/radha_gupta)\
**Replies:** 7\
**Last updated:** [April 20, 2018, 7:29am UTC](https://forum.ansible.com/t/how-to-pass-the-value-of-a-variable-from-one-playbook-to-another/27322 "2018-04-20T07:29:17Z")

</div>

Hello Guys, Can you please help me on how can we pass the value of a variables form one playbook to another.

---

## [os\_server module creates Compute Instance From Openstack but Ansible Playbook is Failed](https://forum.ansible.com/t/os-server-module-creates-compute-instance-from-openstack-but-ansible-playbook-is-failed/20328)

<div class="topic-metadata">

**Author:** [@Sachin\_Murkute](https://forum.ansible.com/u/Sachin_Murkute)\
**Replies:** 2\
**Last updated:** [April 20, 2018, 5:19am UTC](https://forum.ansible.com/t/os-server-module-creates-compute-instance-from-openstack-but-ansible-playbook-is-failed/20328 "2018-04-20T05:19:18Z")

</div>

hello, I have to create compute instance in Openstack. I used os\_server Ansible module. It creates instance successfully. But Playbook failed with error message “msg”: “Timeout waiting for the floating IP to be attach…

---

## [creating a list of dicts from a list](https://forum.ansible.com/t/creating-a-list-of-dicts-from-a-list/27332)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 2\
**Last updated:** [April 19, 2018, 10:26pm UTC](https://forum.ansible.com/t/creating-a-list-of-dicts-from-a-list/27332 "2018-04-19T22:26:46Z")

</div>

Hi, I'm wondering if anyone might know how I would use the standard ansible filters to create a new variable from an existing variable. I would like to take a list of items list1: - foo - bar - baz and conv…

---

## [Dynamic inventory json format question](https://forum.ansible.com/t/dynamic-inventory-json-format-question/27311)

<div class="topic-metadata">

**Author:** [@fseudiba](https://forum.ansible.com/u/fseudiba)\
**Replies:** 6\
**Last updated:** [April 19, 2018, 2:16pm UTC](https://forum.ansible.com/t/dynamic-inventory-json-format-question/27311 "2018-04-19T14:16:28Z")

</div>

Hello, in the past i used this inventory entries. inventory.ini format: \[DATABASE1\] hostname1.com \[DATABASE2\] hostname47.de dynamic inventory json format: { “DATABASE1” : { “hosts” : \[ "hostname1.com \] }, “DATA…

---

## [How to orchestrate master/slave configuration with Ansible group\_by, if that's the proper approach?](https://forum.ansible.com/t/how-to-orchestrate-master-slave-configuration-with-ansible-group-by-if-thats-the-proper-approach/27316)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [April 19, 2018, 2:03pm UTC](https://forum.ansible.com/t/how-to-orchestrate-master-slave-configuration-with-ansible-group-by-if-thats-the-proper-approach/27316 "2018-04-19T14:03:04Z")

</div>

I’m setting up a Github master/slave configuration via Ansible role.I set up my github inventory file looks like this \` \[github1\] github1.domain.com \[github2\] github2.domain.com \[github3\] github3.domain.com (more…

---

## [ansible problem](https://forum.ansible.com/t/ansible-problem/27329)

<div class="topic-metadata">

**Author:** [@liupinzhanglpz](https://forum.ansible.com/u/liupinzhanglpz)\
**Replies:** 0\
**Last updated:** [April 19, 2018, 1:21pm UTC](https://forum.ansible.com/t/ansible-problem/27329 "2018-04-19T13:21:04Z")

</div>

When the sleep value exceeds 10 seconds, restart will not be performed.I want to know why??

---

## [Updating Tomcat server port](https://forum.ansible.com/t/updating-tomcat-server-port/27325)

<div class="topic-metadata">

**Author:** [@Marouane\_Baini](https://forum.ansible.com/u/Marouane_Baini)\
**Replies:** 1\
**Last updated:** [April 19, 2018, 12:49pm UTC](https://forum.ansible.com/t/updating-tomcat-server-port/27325 "2018-04-19T12:49:55Z")

</div>

Hello every one, I’m working with Ansible to manipulate and make automation to tomcat server events, My objective is to update the tomcat server port , the default port is 8080, The port number is in the “server.xml”, …

---

## [Ansible 2.5.1 is available](https://forum.ansible.com/t/ansible-2-5-1-is-available/27319)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [April 19, 2018, 8:22am UTC](https://forum.ansible.com/t/ansible-2-5-1-is-available/27319 "2018-04-19T08:22:26Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.1 is now available! How do you get it?

---

## [Test that a variable is a valid IP address](https://forum.ansible.com/t/test-that-a-variable-is-a-valid-ip-address/22157)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 4\
**Last updated:** [April 19, 2018, 7:27am UTC](https://forum.ansible.com/t/test-that-a-variable-is-a-valid-ip-address/22157 "2018-04-19T07:27:15Z")

</div>

I’m trying to create a task that verifies a variable is a valid IP address. The task should pass if it is valid, and fail if it’s not. I feel like I’m close, but not quite there with this: \` name: Verify IP address …

---

## [Pip module does nothing when state=absent](https://forum.ansible.com/t/pip-module-does-nothing-when-state-absent/27317)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 2\
**Last updated:** [April 19, 2018, 5:59am UTC](https://forum.ansible.com/t/pip-module-does-nothing-when-state-absent/27317 "2018-04-19T05:59:23Z")

</div>

I recently upgraded to Ansible 2.4 and have run into a weird problem. I added a task to remove a python package that was breaking pip on one of our servers, the task is below: name: Remove pip package ndg-httpsclient a…

---

## [Walking the registry, searching DisplayName, removing matching packages?](https://forum.ansible.com/t/walking-the-registry-searching-displayname-removing-matching-packages/27318)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 1\
**Last updated:** [April 18, 2018, 11:54pm UTC](https://forum.ansible.com/t/walking-the-registry-searching-displayname-removing-matching-packages/27318 "2018-04-18T23:54:23Z")

</div>

I’d like to remove all the “Slack Machine-Wide Installer” packages. My approach is listed below. I’m wondering if there’s an easier way to do this? My approach. Trying to use Ansible to uninstall packages; with a twist…

---

## [Ansible 2.5 become directive and include\_tasks](https://forum.ansible.com/t/ansible-2-5-become-directive-and-include-tasks/27313)

<div class="topic-metadata">

**Author:** [@Petr\_Castulik](https://forum.ansible.com/u/Petr_Castulik)\
**Replies:** 2\
**Last updated:** [April 18, 2018, 4:29pm UTC](https://forum.ansible.com/t/ansible-2-5-become-directive-and-include-tasks/27313 "2018-04-18T16:29:55Z")

</div>

Hello, I have a question concerning the become directive and include\_tasks. After Ansible upgrade to 2.5 the become directive is not escalated to included tasks. I’m aware of https://docs.ansible.com/ansible/2.5/portin…

---

## [Ansible custom module\_utils in Ansible 2.1 & 2.2](https://forum.ansible.com/t/ansible-custom-module-utils-in-ansible-2-1-2-2/27310)

<div class="topic-metadata">

**Author:** [@Raja\_Shekar](https://forum.ansible.com/u/Raja_Shekar)\
**Replies:** 1\
**Last updated:** [April 18, 2018, 3:37pm UTC](https://forum.ansible.com/t/ansible-custom-module-utils-in-ansible-2-1-2-2/27310 "2018-04-18T15:37:44Z")

</div>

Hi, I am working on Juniper.junos role. We are trying to correct our module\_utils import style to include ansiballz framework. Currently, for our role we support Ansible \>= 2.1. I understand that there was no custom mod…

---

## [end\_play with verbocity level?](https://forum.ansible.com/t/end-play-with-verbocity-level/27307)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [April 18, 2018, 1:59pm UTC](https://forum.ansible.com/t/end-play-with-verbocity-level/27307 "2018-04-18T13:59:10Z")

</div>

Is there any way (maybe not with meta:) to end a play with a verbosity level? I don’t think the following does exist, but expresses well what I am looking for. ie. \` meta: end\_play verbosity: 2 \`

---

## [Ansible role with a reboot fails](https://forum.ansible.com/t/ansible-role-with-a-reboot-fails/27304)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 4\
**Last updated:** [April 18, 2018, 1:08pm UTC](https://forum.ansible.com/t/ansible-role-with-a-reboot-fails/27304 "2018-04-18T13:08:40Z")

</div>

I’ve trying to write an Ansible role that upgrades Github. The command to upgrade the server “ghe-upgrade github-2.13.1.pkg” for example, reboots the server, and when that happens, I get, the following connection because…

---

## [Problem with copy module in ansible 2.5](https://forum.ansible.com/t/problem-with-copy-module-in-ansible-2-5/27312)

<div class="topic-metadata">

**Author:** [@Fatima\_Elfakih](https://forum.ansible.com/u/Fatima_Elfakih)\
**Replies:** 0\
**Last updated:** [April 18, 2018, 8:48am UTC](https://forum.ansible.com/t/problem-with-copy-module-in-ansible-2-5/27312 "2018-04-18T08:48:10Z")

</div>

hello, I have a problem with ansible 2.5 and i don’t have the same behaviour with 2.2 When I copy a folder contain just a folder I have an OK not Changed example: name: copy files share copy: dest: “/opt/” mode: …

---

## [error query sqlcmd](https://forum.ansible.com/t/error-query-sqlcmd/27308)

<div class="topic-metadata">

**Author:** [@Christovam\_Paynes\_Si](https://forum.ansible.com/u/Christovam_Paynes_Si)\
**Replies:** 1\
**Last updated:** [April 18, 2018, 12:07am UTC](https://forum.ansible.com/t/error-query-sqlcmd/27308 "2018-04-18T00:07:34Z")

</div>

Hi, okay? I’m new to ansible, so understand my rookie mistakes, rsrsrs. I’m having an error interpreting my query. From what I realized the problem is in the comma, when you get into it the Ansible gives the error below…

---

## [Failed logic with when statement](https://forum.ansible.com/t/failed-logic-with-when-statement/27305)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [April 17, 2018, 9:00pm UTC](https://forum.ansible.com/t/failed-logic-with-when-statement/27305 "2018-04-17T21:00:45Z")

</div>

I have a variable ‘ntp\_timezone’ set to UTC by default. I am trying to override it in certain situation, but this ALWAYS overrides it. I think something with my logic is wrong and could use another pair of eyes: NOTE: a…

---

## [nmcli team slave creation error CentOS 7.4](https://forum.ansible.com/t/nmcli-team-slave-creation-error-centos-7-4/27303)

<div class="topic-metadata">

**Author:** [@ryan\_prihoda](https://forum.ansible.com/u/ryan_prihoda)\
**Replies:** 0\
**Last updated:** [April 17, 2018, 5:57pm UTC](https://forum.ansible.com/t/nmcli-team-slave-creation-error-centos-7-4/27303 "2018-04-17T17:57:12Z")

</div>

Has anyone seen this error before ? There is no “slave-type” in the nmcli module. “msg”: “Error: Failed to modify connection ‘em1’: connection.slave-type: Cannot set ‘master’ without ‘slave-type’\\n”, \`

---

## [dict object has no attribute](https://forum.ansible.com/t/dict-object-has-no-attribute/27302)

<div class="topic-metadata">

**Author:** [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Replies:** 0\
**Last updated:** [April 17, 2018, 4:48pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute/27302 "2018-04-17T16:48:51Z")

</div>

Hi all, I have the following playbook , and when I exeute it I get this error. I added the output fact also. ailed: \[r3 → localhost\] (item=zLJIsEYAtkH.0n4\_cMKj) =\> { “changed”: false, “item”: “zLJIsEYAtkH.0n4\_cMKj”, …

---

## [Ansible 2.5 is not accepting dynamic hosts variable](https://forum.ansible.com/t/ansible-2-5-is-not-accepting-dynamic-hosts-variable/27121)

<div class="topic-metadata">

**Author:** [@rummandba](https://forum.ansible.com/u/rummandba)\
**Replies:** 3\
**Last updated:** [April 17, 2018, 3:21pm UTC](https://forum.ansible.com/t/ansible-2-5-is-not-accepting-dynamic-hosts-variable/27121 "2018-04-17T15:21:42Z")

</div>

Hi, I have upgraded to Ansible 2.5 right now and facing an issue with variable hosts such as: --- - hosts: "{{ dbhosts }}" gather\_facts: false vars\_prompt: - name: dbhosts prompt: "Which hosts would you like to ru…

---

## [How to achieve sudo su  - root and run all command in ansible](https://forum.ansible.com/t/how-to-achieve-sudo-su-root-and-run-all-command-in-ansible/25183)

<div class="topic-metadata">

**Author:** [@Ganesh\_Batwal](https://forum.ansible.com/u/Ganesh_Batwal)\
**Replies:** 2\
**Last updated:** [April 17, 2018, 2:40pm UTC](https://forum.ansible.com/t/how-to-achieve-sudo-su-root-and-run-all-command-in-ansible/25183 "2018-04-17T14:40:24Z")

</div>

Hi All, We are not able to switch the ansible playbook connection to root id. eg. “sudo su -” and then execute the privilege commands. Kindly check and advice on correct approach. Error messages :-"Sorry, user ganeshba…

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

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