# Ansible Project

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

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

**Page:** 144

---

## [How to get clean output ?](https://forum.ansible.com/t/how-to-get-clean-output/32206)

<div class="topic-metadata">

**Author:** [@Anand\_Solomon](https://forum.ansible.com/u/Anand_Solomon)\
**Replies:** 10\
**Last updated:** [February 12, 2020, 8:49pm UTC](https://forum.ansible.com/t/how-to-get-clean-output/32206 "2020-02-12T20:49:03Z")

</div>

Hi, How will I get only the sql statement from the json output ? I am registering this as " register: query\_result" Here is my json output \` “msg”: { “ansible\_facts”: { “discovered\_interpreter\_python”: “/usr/bin/py…

---

## [Ansible Vault online tool for encrypt/decrypt](https://forum.ansible.com/t/ansible-vault-online-tool-for-encrypt-decrypt/32207)

<div class="topic-metadata">

**Author:** [@Mamed\_Shahmaliyev](https://forum.ansible.com/u/Mamed_Shahmaliyev)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 6:19pm UTC](https://forum.ansible.com/t/ansible-vault-online-tool-for-encrypt-decrypt/32207 "2020-02-12T18:19:55Z")

</div>

Dear Ansible users, recently i have been looking for some online service for on-hand ansible vault encrypt decrypt service and could not find anything. So i decided to write my own web interface: https://ansible-vault-t…

---

## [Automating LDAP integration of artifactory using ansible](https://forum.ansible.com/t/automating-ldap-integration-of-artifactory-using-ansible/32198)

<div class="topic-metadata">

**Author:** [@Vishal\_Bobade](https://forum.ansible.com/u/Vishal_Bobade)\
**Replies:** 1\
**Last updated:** [February 12, 2020, 12:59pm UTC](https://forum.ansible.com/t/automating-ldap-integration-of-artifactory-using-ansible/32198 "2020-02-12T12:59:40Z")

</div>

Hi, could some one help me in understanding if the below yaml code can be used in ansible-playbook to achieve the automation of LDAP integration. security: #Security configuration (LDAP, SAML, Password Policy, ...) l…

---

## [How to use group\_vars in ansible templates](https://forum.ansible.com/t/how-to-use-group-vars-in-ansible-templates/32189)

<div class="topic-metadata">

**Author:** [@Bala\_Mutyam](https://forum.ansible.com/u/Bala_Mutyam)\
**Replies:** 4\
**Last updated:** [February 12, 2020, 12:54pm UTC](https://forum.ansible.com/t/how-to-use-group-vars-in-ansible-templates/32189 "2020-02-12T12:54:23Z")

</div>

Hi there, Could someone help me with how to template this config like below please? cluster\_formation.classic\_config.nodes.1 = rabbit@rabbitmq-1 cluster\_formation.classic\_config.nodes.2 = rabbit@rabbitmq-2 cluster\_fo…

---

## [use rules from different git repos/locations](https://forum.ansible.com/t/use-rules-from-different-git-repos-locations/32208)

<div class="topic-metadata">

**Author:** [@sanctc](https://forum.ansible.com/u/sanctc)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 12:31pm UTC](https://forum.ansible.com/t/use-rules-from-different-git-repos-locations/32208 "2020-02-12T12:31:39Z")

</div>

Hi Folks, Can I use roles from several different git repos/locations to single ansible? e.g.

---

## [Adding body: to uri: task results in Status code was -1 and not \[200\]: An unknown error occurred: unhashable type](https://forum.ansible.com/t/adding-body-to-uri-task-results-in-status-code-was-1-and-not-200-an-unknown-error-occurred-unhashable-type/32209)

<div class="topic-metadata">

**Author:** [@Stephen\_Elves](https://forum.ansible.com/u/Stephen_Elves)\
**Replies:** 0\
**Last updated:** [February 12, 2020, 7:34am UTC](https://forum.ansible.com/t/adding-body-to-uri-task-results-in-status-code-was-1-and-not-200-an-unknown-error-occurred-unhashable-type/32209 "2020-02-12T07:34:08Z")

</div>

Hi, Tearing what little hair I have left: This is the fragment of the playbook: name: create new RE if RE doesn’t exist uri: url: https://api.eu.cloud.talend.com/tmc/v1.3/runtimes/remote-engines method: POST head…

---

## [how can i have my windows instances to use IP address instead of dns name?](https://forum.ansible.com/t/how-can-i-have-my-windows-instances-to-use-ip-address-instead-of-dns-name/32196)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 11:57pm UTC](https://forum.ansible.com/t/how-can-i-have-my-windows-instances-to-use-ip-address-instead-of-dns-name/32196 "2020-02-11T23:57:05Z")

</div>

Hello, how can i have my windows instances to use IP address instead of dns name? it works with my Linux instances but windows.

---

## [When var1 == "yes" and var2 == "no"](https://forum.ansible.com/t/when-var1-yes-and-var2-no/32205)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 9:34pm UTC](https://forum.ansible.com/t/when-var1-yes-and-var2-no/32205 "2020-02-11T21:34:05Z")

</div>

So, I’m having fits with when conditionals matching strings No matter what I do, it applies each conditional, the combination of the variables doesn’t seem to count for … anything. what the heck am I doing wrong? addi…

---

## [How do I include another playbook in current playbook?](https://forum.ansible.com/t/how-do-i-include-another-playbook-in-current-playbook/32031)

<div class="topic-metadata">

**Author:** [@Xinhuan\_Zheng](https://forum.ansible.com/u/Xinhuan_Zheng)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 9:31pm UTC](https://forum.ansible.com/t/how-do-i-include-another-playbook-in-current-playbook/32031 "2020-02-11T21:31:51Z")

</div>

Hello, I created a playbook which needs to call another playbook. This is my current playbook:

---

## [How to fix warning message conditional statements should not include jinja2 templating delimiters](https://forum.ansible.com/t/how-to-fix-warning-message-conditional-statements-should-not-include-jinja2-templating-delimiters/32203)

<div class="topic-metadata">

**Author:** [@Shifa\_Shaikh](https://forum.ansible.com/u/Shifa_Shaikh)\
**Replies:** 1\
**Last updated:** [February 11, 2020, 7:26pm UTC](https://forum.ansible.com/t/how-to-fix-warning-message-conditional-statements-should-not-include-jinja2-templating-delimiters/32203 "2020-02-11T19:26:04Z")

</div>

How do I make changes to the below complex when condition without breaking the code in order to address the warning. - debug: msg: "Hi" when: entrycurrdb.stdout.find("{{ hostvars\['localhost'\]\['BASEPATH\_FINAL'\] }}/{{ va…

---

## [win\_domain\_group\_membership](https://forum.ansible.com/t/win-domain-group-membership/32190)

<div class="topic-metadata">

**Author:** [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Replies:** 4\
**Last updated:** [February 11, 2020, 5:50pm UTC](https://forum.ansible.com/t/win-domain-group-membership/32190 "2020-02-11T17:50:50Z")

</div>

Hey Folks, I’ve got a couple of specific questions about win\_domain\_group\_membership. I can find where support was backported to 2.8, and where its listed as supported in 2.9 (same post: https://github.com/ansible/ansi…

---

## [How to split a json key containing a colon into 2 keys](https://forum.ansible.com/t/how-to-split-a-json-key-containing-a-colon-into-2-keys/32175)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 5:39pm UTC](https://forum.ansible.com/t/how-to-split-a-json-key-containing-a-colon-into-2-keys/32175 "2020-02-11T17:39:06Z")

</div>

I receive some json data which sometimes start with the first key within “json\_data” variable containing a ‘:’, such as: \` “json\_data”: { “key1:key2”: { “key3”: \[ “value31”, “value32”, “…” \] } } \` The goal is…

---

## [use binascii.unhexlify() in Jinja2 template](https://forum.ansible.com/t/use-binascii-unhexlify-in-jinja2-template/32204)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 5:32pm UTC](https://forum.ansible.com/t/use-binascii-unhexlify-in-jinja2-template/32204 "2020-02-11T17:32:48Z")

</div>

HI! I'm using stat task to let ansible calculate the SHA-512 checksum of a file on the managed node \[1\] which returns hex-encoded hash values. Now I have to convert the checksum to bytes prior to base64-encoding this…

---

## [simple problem has me stumped](https://forum.ansible.com/t/simple-problem-has-me-stumped/32194)

<div class="topic-metadata">

**Author:** [@Tony\_Walsh](https://forum.ansible.com/u/Tony_Walsh)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 3:13pm UTC](https://forum.ansible.com/t/simple-problem-has-me-stumped/32194 "2020-02-11T15:13:14Z")

</div>

I have a simple scenario that fails, but I can’t figure out why. Here’s the command line invocation and the result: \[root@cluster-mgmt tasks\]# ansible-playbook -i ./hosts main.yml PLAY \[CLUSTERS team downtime orchestra…

---

## [Jinja2 template loop with JSON](https://forum.ansible.com/t/jinja2-template-loop-with-json/32201)

<div class="topic-metadata">

**Author:** [@Juergen\_Hofer](https://forum.ansible.com/u/Juergen_Hofer)\
**Replies:** 2\
**Last updated:** [February 11, 2020, 12:45pm UTC](https://forum.ansible.com/t/jinja2-template-loop-with-json/32201 "2020-02-11T12:45:50Z")

</div>

Hello all, I am a Network Engineer and Ansible is relative new for me. At the moment I am trying to build a template with “JSON” as source. See below. The template should do the follwing (hopefully you get the idea). …

---

## [How to ron SQL stored Procedures with Ansible](https://forum.ansible.com/t/how-to-ron-sql-stored-procedures-with-ansible/32149)

<div class="topic-metadata">

**Author:** [@Jeff\_Knights](https://forum.ansible.com/u/Jeff_Knights)\
**Replies:** 1\
**Last updated:** [February 11, 2020, 11:35am UTC](https://forum.ansible.com/t/how-to-ron-sql-stored-procedures-with-ansible/32149 "2020-02-11T11:35:55Z")

</div>

How do I get ansible to run a folder full of SQL stored procedures on a remote sql server? any help would be appreciated.

---

## [aws ec2 attach snapshot ansible playbook error  message](https://forum.ansible.com/t/aws-ec2-attach-snapshot-ansible-playbook-error-message/32197)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 1\
**Last updated:** [February 11, 2020, 8:36am UTC](https://forum.ansible.com/t/aws-ec2-attach-snapshot-ansible-playbook-error-message/32197 "2020-02-11T08:36:53Z")

</div>

Dear all: I have some problem I don’t know I attach ebs from snapshot but attach show error message please help thanks. fatal: \[localhost\]: FAILED! =\> { “msg”: “The task includes an option with an undefined variable. …

---

## [Switch to root user using dzdo](https://forum.ansible.com/t/switch-to-root-user-using-dzdo/32173)

<div class="topic-metadata">

**Author:** [@Jeremy\_Njock](https://forum.ansible.com/u/Jeremy_Njock)\
**Replies:** 12\
**Last updated:** [February 11, 2020, 7:27am UTC](https://forum.ansible.com/t/switch-to-root-user-using-dzdo/32173 "2020-02-11T07:27:52Z")

</div>

I have an ansible playblook running some tasks for my user, which I log in through ssh. The user has root privileges by running following command in the terminal: dzdo su - It’s actually the only way (no sudo, no root…

---

## [Updating software on cluster nodes without dropping traffic on those nodes](https://forum.ansible.com/t/updating-software-on-cluster-nodes-without-dropping-traffic-on-those-nodes/32170)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 5\
**Last updated:** [February 11, 2020, 6:48am UTC](https://forum.ansible.com/t/updating-software-on-cluster-nodes-without-dropping-traffic-on-those-nodes/32170 "2020-02-11T06:48:55Z")

</div>

Hi Ansible Gurus, I need some suggestions for performing online opeations on a cluster. Problem : I have a 5 nodes cluster set up by Ansible . All nodes of cluster carrying some network traffic. Now I want to update a…

---

## [nmcli module seems broken.  Documention mentions old libraries for CentOS8/RHEL8](https://forum.ansible.com/t/nmcli-module-seems-broken-documention-mentions-old-libraries-for-centos8-rhel8/32167)

<div class="topic-metadata">

**Author:** [@matzuba](https://forum.ansible.com/u/matzuba)\
**Replies:** 6\
**Last updated:** [February 11, 2020, 2:05am UTC](https://forum.ansible.com/t/nmcli-module-seems-broken-documention-mentions-old-libraries-for-centos8-rhel8/32167 "2020-02-11T02:05:26Z")

</div>

I am trying to use the nmcli module to set DNS server and other network related configuration rather than using templates Is it still broken? should i give up on this module? the module dependencies mention an old libr…

---

## [Apache NiFi ansible script](https://forum.ansible.com/t/apache-nifi-ansible-script/32195)

<div class="topic-metadata">

**Author:** [@Nishu\_Sinha](https://forum.ansible.com/u/Nishu_Sinha)\
**Replies:** 1\
**Last updated:** [February 10, 2020, 10:34pm UTC](https://forum.ansible.com/t/apache-nifi-ansible-script/32195 "2020-02-10T22:34:13Z")

</div>

Hi I need some help in ansible scripting for Apache NiFi with\_items: - { src: 'templates/activity-history.properties.j2', dest: '/opt/cts/nifi/conf/activity-history.properties' } - { src: 'templates/nifi.properties…

---

## [Not able to ssh on fortigate from ansible](https://forum.ansible.com/t/not-able-to-ssh-on-fortigate-from-ansible/32187)

<div class="topic-metadata">

**Author:** [@Bharat\_Bhushan\_Mehta](https://forum.ansible.com/u/Bharat_Bhushan_Mehta)\
**Replies:** 0\
**Last updated:** [February 10, 2020, 10:40am UTC](https://forum.ansible.com/t/not-able-to-ssh-on-fortigate-from-ansible/32187 "2020-02-10T10:40:03Z")

</div>

Hi Team, I am trying to take config backup of fortigate vm which is having version v6.2.3 using ansible, while doing this i am getting below error:- The full traceback is: WARNING: The below traceback may not be relat…

---

## [Elastic Beanstalk module](https://forum.ansible.com/t/elastic-beanstalk-module/32186)

<div class="topic-metadata">

**Author:** [@Giles\_Westwood](https://forum.ansible.com/u/Giles_Westwood)\
**Replies:** 0\
**Last updated:** [February 10, 2020, 10:31am UTC](https://forum.ansible.com/t/elastic-beanstalk-module/32186 "2020-02-10T10:31:00Z")

</div>

The current module in Ansible:- https://docs.ansible.com/ansible/latest/modules/aws\_elasticbeanstalk\_app\_module.html#aws-elasticbeanstalk-app-module Doesn’t seem to do much that’s useful, without a version or environme…

---

## [Ansible module with Python replace string in multiple files](https://forum.ansible.com/t/ansible-module-with-python-replace-string-in-multiple-files/32184)

<div class="topic-metadata">

**Author:** [@Uppara\_venkat](https://forum.ansible.com/u/Uppara_venkat)\
**Replies:** 0\
**Last updated:** [February 10, 2020, 9:08am UTC](https://forum.ansible.com/t/ansible-module-with-python-replace-string-in-multiple-files/32184 "2020-02-10T09:08:24Z")

</div>

Hi all, I’m new to Ansible module with Python needed some help for below scenario; we have windows\_config.yml defined all variable in this file, like target\_disk: 'D:'have to find all \*ResponseFile.txt in folder in tha…

---

## [how to get specified order of strings in list ?](https://forum.ansible.com/t/how-to-get-specified-order-of-strings-in-list/32182)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 4:43am UTC](https://forum.ansible.com/t/how-to-get-specified-order-of-strings-in-list/32182 "2020-02-10T04:43:59Z")

</div>

I have a list like this user: name: chchang comment: “Chang Chic Hung” and I want to add more attrs like last\_name: Chang mid\_name: Chic but how to get the specifed order of the values ? I try to use filter “firs…

---

## [Ansible VM and GNS3 routers](https://forum.ansible.com/t/ansible-vm-and-gns3-routers/32177)

<div class="topic-metadata">

**Author:** [@jesty\_sam](https://forum.ansible.com/u/jesty_sam)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 4:36am UTC](https://forum.ansible.com/t/ansible-vm-and-gns3-routers/32177 "2020-02-10T04:36:13Z")

</div>

Hi I have two VM’s in Azure, 1 VM running Ansible and the other having GNS3 (with connected routers and switches). I am able to telnet from Ansible server to the Routers configured in GNS3 however when i run a playbook …

---

## [Anible windows script get stuck for my of my machine - Although reboot command is provided to reboot if required. any idea, why ?](https://forum.ansible.com/t/anible-windows-script-get-stuck-for-my-of-my-machine-although-reboot-command-is-provided-to-reboot-if-required-any-idea-why/32166)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 2\
**Last updated:** [February 7, 2020, 11:14pm UTC](https://forum.ansible.com/t/anible-windows-script-get-stuck-for-my-of-my-machine-although-reboot-command-is-provided-to-reboot-if-required-any-idea-why/32166 "2020-02-07T23:14:55Z")

</div>

Ansible:-

---

## [ec2 asg does not spin or replace instances when existing auto scaling group is modified with new launch configuration](https://forum.ansible.com/t/ec2-asg-does-not-spin-or-replace-instances-when-existing-auto-scaling-group-is-modified-with-new-launch-configuration/32178)

<div class="topic-metadata">

**Author:** [@shivani](https://forum.ansible.com/u/shivani)\
**Replies:** 0\
**Last updated:** [February 7, 2020, 7:47pm UTC](https://forum.ansible.com/t/ec2-asg-does-not-spin-or-replace-instances-when-existing-auto-scaling-group-is-modified-with-new-launch-configuration/32178 "2020-02-07T19:47:43Z")

</div>

Hi I am facing an issue with ec2\_asg module when I use target group arn it does not spin or replace instances. I I use classic load balancer it works fine replaces the instances. When new asg is created it spins up the …

---

## [aws ece dettach Volume error](https://forum.ansible.com/t/aws-ece-dettach-volume-error/32171)

<div class="topic-metadata">

**Author:** [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Replies:** 1\
**Last updated:** [February 7, 2020, 9:58am UTC](https://forum.ansible.com/t/aws-ece-dettach-volume-error/32171 "2020-02-07T09:58:52Z")

</div>

dear all: please help me how to detach volume name: Detach a Volume ec2\_vol: id: vol-0a75b01a93b9e6778 region: “{{ region }}” instance: None PLAY \[localhost\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Ansible setting - add proxy](https://forum.ansible.com/t/ansible-setting-add-proxy/32148)

<div class="topic-metadata">

**Author:** [@Oxs](https://forum.ansible.com/u/Oxs)\
**Replies:** 2\
**Last updated:** [February 7, 2020, 8:01am UTC](https://forum.ansible.com/t/ansible-setting-add-proxy/32148 "2020-02-07T08:01:15Z")

</div>

Guys, how we can add proxy setting in ansible when we use ansible\_connection=winrm? fatal: \[10.2.20.56\]: UNREACHABLE! =\> { “changed”: false, “msg”: “ssl: HTTPSConnectionPool(host=‘10.2.20.56’, port=5986): Max retries…

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

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