# Ansible Project

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

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

**Page:** 262

---

## [Why do I have to split up this set\_fact into multiple? or am I doing something incorrect?](https://forum.ansible.com/t/why-do-i-have-to-split-up-this-set-fact-into-multiple-or-am-i-doing-something-incorrect/27487)

<div class="topic-metadata">

**Author:** [@MarcG](https://forum.ansible.com/u/MarcG)\
**Replies:** 2\
**Last updated:** [May 10, 2018, 7:09am UTC](https://forum.ansible.com/t/why-do-i-have-to-split-up-this-set-fact-into-multiple-or-am-i-doing-something-incorrect/27487 "2018-05-10T07:09:04Z")

</div>

Hi can someone please explain why the following two seperate 'set\_fact’s work. name : combine network and wildcard set\_fact: net\_mask: “{{ ‘{{network}}/{{wildcard}}’ }}” when: ansible\_network\_os == ‘asa’ name : de…

---

## [Custom Module](https://forum.ansible.com/t/custom-module/27497)

<div class="topic-metadata">

**Author:** [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Replies:** 0\
**Last updated:** [May 10, 2018, 6:51am UTC](https://forum.ansible.com/t/custom-module/27497 "2018-05-10T06:51:06Z")

</div>

Hi All, I am trying to create the custom module, can anyone help me on this? Looking forward for reply… Thanks & Regards Sumit Sahay

---

## [Ansible loop query](https://forum.ansible.com/t/ansible-loop-query/27496)

<div class="topic-metadata">

**Author:** [@Aman\_Kaushik](https://forum.ansible.com/u/Aman_Kaushik)\
**Replies:** 1\
**Last updated:** [May 10, 2018, 5:59am UTC](https://forum.ansible.com/t/ansible-loop-query/27496 "2018-05-10T05:59:05Z")

</div>

Hello Team, Below is my playbook & variable for Ansible. Could you please check and help with my query. Playbook name: GIN\_MNG Routing lineinfile: line: set routing-instances GIN\_MNG routing-options static route {{…

---

## [ALB module coming soon?](https://forum.ansible.com/t/alb-module-coming-soon/27493)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 2\
**Last updated:** [May 9, 2018, 10:10pm UTC](https://forum.ansible.com/t/alb-module-coming-soon/27493 "2018-05-09T22:10:25Z")

</div>

Does anyone know if an AWS application load balancer module is coming soon? I’ve seen a few requests for one when googling, but no indication of a new module. Hmmm? Regards, K.

---

## [Noob question - inventory and group\_vars](https://forum.ansible.com/t/noob-question-inventory-and-group-vars/27489)

<div class="topic-metadata">

**Author:** [@Lee\_Drew](https://forum.ansible.com/u/Lee_Drew)\
**Replies:** 2\
**Last updated:** [May 9, 2018, 8:10pm UTC](https://forum.ansible.com/t/noob-question-inventory-and-group-vars/27489 "2018-05-09T20:10:06Z")

</div>

So far I’ve found out that if I have an inventory file (E.G inventory.yml) within a playbook folder, and a file named web.yml in group\_vars I can do a win\_ping without issues when the inventory file contains a group name…

---

## [Convert an XML to JSON using ansible](https://forum.ansible.com/t/convert-an-xml-to-json-using-ansible/27482)

<div class="topic-metadata">

**Author:** [@Madushan\_Chathuranga](https://forum.ansible.com/u/Madushan_Chathuranga)\
**Replies:** 6\
**Last updated:** [May 9, 2018, 1:54pm UTC](https://forum.ansible.com/t/convert-an-xml-to-json-using-ansible/27482 "2018-05-09T13:54:22Z")

</div>

Hi, Is there a filter or any work around to convert an XML to JSON using ansible? Thanks.

---

## [Unable to install through dpkg in Ansible](https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 1\
**Last updated:** [May 9, 2018, 1:03pm UTC](https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465 "2018-05-09T13:03:36Z")

</div>

Hi, I am trying to install a .deb Package through Ansible, it is not getting installed. Error:-

---

## [Alteon Rest Api](https://forum.ansible.com/t/alteon-rest-api/27490)

<div class="topic-metadata">

**Author:** [@mamadouadaba](https://forum.ansible.com/u/mamadouadaba)\
**Replies:** 0\
**Last updated:** [May 9, 2018, 10:13am UTC](https://forum.ansible.com/t/alteon-rest-api/27490 "2018-05-09T10:13:52Z")

</div>

Hello there, I would like to get config of the Radware alteon vadc through Rest API. Since I want to access directly without using vdirect, I inialized a module. But the fact is I don’t know the tree being the api in …

---

## [Unable to Ping Ansible Hosts in Inventory from Azure Cloudshell](https://forum.ansible.com/t/unable-to-ping-ansible-hosts-in-inventory-from-azure-cloudshell/27475)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 4\
**Last updated:** [May 9, 2018, 6:47am UTC](https://forum.ansible.com/t/unable-to-ping-ansible-hosts-in-inventory-from-azure-cloudshell/27475 "2018-05-09T06:47:05Z")

</div>

Hello Community, I have created a Centos host in Azure and added the hosts to my Ansible inventory, however whenever I attempt to ping the host with ansible, from Azure Cloud Shell I get the error shown in image. How…

---

## [Deprecation warnings](https://forum.ansible.com/t/deprecation-warnings/27486)

<div class="topic-metadata">

**Author:** [@Mathias\_Buresch](https://forum.ansible.com/u/Mathias_Buresch)\
**Replies:** 0\
**Last updated:** [May 9, 2018, 5:46am UTC](https://forum.ansible.com/t/deprecation-warnings/27486 "2018-05-09T05:46:00Z")

</div>

Hey there, I am running Ansible 2.5.2 now. Already with version 2.4 I got some deprecation warning and so on. Do I have to adjust all roles by myself or is there a magic script which can find those issues and fix them …

---

## [Variable disappears...](https://forum.ansible.com/t/variable-disappears/27484)

<div class="topic-metadata">

**Author:** [@David\_Villasmil](https://forum.ansible.com/u/David_Villasmil)\
**Replies:** 7\
**Last updated:** [May 8, 2018, 10:01pm UTC](https://forum.ansible.com/t/variable-disappears/27484 "2018-05-08T22:01:10Z")

</div>

Hello all, I’ve got a playbook that does: name: Get db cluster endpoint shell: “aws --region=us-east-1 rds describe-db-clusters --db-cluster-identifier {{ cluster }}-kam-db” register: aws\_cluster\_res set\_fact: …

---

## [What is recommended version???](https://forum.ansible.com/t/what-is-recommended-version/27479)

<div class="topic-metadata">

**Author:** [@Lee\_Drew](https://forum.ansible.com/u/Lee_Drew)\
**Replies:** 6\
**Last updated:** [May 8, 2018, 9:52pm UTC](https://forum.ansible.com/t/what-is-recommended-version/27479 "2018-05-08T21:52:04Z")

</div>

Hi - I’m completely new to Ansible (and not too familiar with Linux). What is the recommended Ansible version? If I download via apt-get or pip by default it is downloading the latest version (2.5.2) - isn’t this a dev …

---

## [gce.py - toggling between GCE projects](https://forum.ansible.com/t/gce-py-toggling-between-gce-projects/27485)

<div class="topic-metadata">

**Author:** [@Michael\_Bubb](https://forum.ansible.com/u/Michael_Bubb)\
**Replies:** 0\
**Last updated:** [May 8, 2018, 4:53pm UTC](https://forum.ansible.com/t/gce-py-toggling-between-gce-projects/27485 "2018-05-08T16:53:16Z")

</div>

Hello - We are using gce.py / gce.ini in our inventory and it works nicely. One glitch is that I have not found a great way to toggle between projects so I simlink to the gce.ini file I need: ls -lia /etc/ansible/hos…

---

## [if-elseif-if](https://forum.ansible.com/t/if-elseif-if/27462)

<div class="topic-metadata">

**Author:** [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Replies:** 4\
**Last updated:** [May 8, 2018, 1:57pm UTC](https://forum.ansible.com/t/if-elseif-if/27462 "2018-05-08T13:57:02Z")

</div>

i am trying to set a variable based on the value of a variable in the config file but unable to do so. here’s my config file: sql\_ver: “2012” # available sql versions are: 2008 | 2012 | 2014 | 2016 sp\_ver: “2010” # av…

---

## [Question about hosts and playbooks](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468)

<div class="topic-metadata">

**Author:** [@Edmund\_Cheng](https://forum.ansible.com/u/Edmund_Cheng)\
**Replies:** 6\
**Last updated:** [May 8, 2018, 4:47am UTC](https://forum.ansible.com/t/question-about-hosts-and-playbooks/27468 "2018-05-08T04:47:35Z")

</div>

Hi, I recently started ansible and have a question: Lets say we have like 100 playbooks running against a few hundred hosts, perhaps some playbooks are running against different groups as defined in the ansible host f…

---

## [elb\_application\_lb  http/2 attribute](https://forum.ansible.com/t/elb-application-lb-http-2-attribute/27477)

<div class="topic-metadata">

**Author:** [@Michael\_Pechner](https://forum.ansible.com/u/Michael_Pechner)\
**Replies:** 0\
**Last updated:** [May 8, 2018, 1:04am UTC](https://forum.ansible.com/t/elb-application-lb-http-2-attribute/27477 "2018-05-08T01:04:49Z")

</div>

Did the snake bite me, or is enabling the http/2 attribute not there yet?

---

## [Extracting data from ec2 output](https://forum.ansible.com/t/extracting-data-from-ec2-output/27476)

<div class="topic-metadata">

**Author:** [@David\_Villasmil](https://forum.ansible.com/u/David_Villasmil)\
**Replies:** 0\
**Last updated:** [May 7, 2018, 6:06pm UTC](https://forum.ansible.com/t/extracting-data-from-ec2-output/27476 "2018-05-07T18:06:37Z")

</div>

hello all, After executing ec2 create, with “with\_sequence”, i need to retrieve each instance’s “id”, “dns\_name” and “tags”-\>“Name”. the response is as follows: \` \<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /home/admin/.an…

---

## [how to re-use a role in a single playbook?](https://forum.ansible.com/t/how-to-re-use-a-role-in-a-single-playbook/27472)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [May 7, 2018, 12:19pm UTC](https://forum.ansible.com/t/how-to-re-use-a-role-in-a-single-playbook/27472 "2018-05-07T12:19:37Z")

</div>

I have a very simple role called “make\_vpc” that creates an EC2 VPC. It takes as inputs three variables: region, vpc\_name and vpc\_cidr\_block. In my playbook I can just set those variables, call the role, and I get a VPC…

---

## [count ignore\_errors as failed in play recap.](https://forum.ansible.com/t/count-ignore-errors-as-failed-in-play-recap/27471)

<div class="topic-metadata">

**Author:** [@mxj](https://forum.ansible.com/u/mxj)\
**Replies:** 0\
**Last updated:** [May 7, 2018, 11:28am UTC](https://forum.ansible.com/t/count-ignore-errors-as-failed-in-play-recap/27471 "2018-05-07T11:28:50Z")

</div>

Hi, can someone help me is it possible to count ignore\_errors as failed in play recap ? as below sample. it supposed to have 4 Failed. Thanks, Mujahiddin Janapi PLAY \[all\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Why playbook take wrong values for group variables?](https://forum.ansible.com/t/why-playbook-take-wrong-values-for-group-variables/27404)

<div class="topic-metadata">

**Author:** [@user30](https://forum.ansible.com/u/user30)\
**Replies:** 5\
**Last updated:** [May 6, 2018, 8:30pm UTC](https://forum.ansible.com/t/why-playbook-take-wrong-values-for-group-variables/27404 "2018-05-06T20:30:51Z")

</div>

Hi, favorite I have a problem with groups variables. Example: I have two inventory groups group\_A and group\_B, and also have the same name files in group\_vars: inventories/ hosts.inv \[gro…

---

## [no subnet id in ec2\_vpc\_subnet?](https://forum.ansible.com/t/no-subnet-id-in-ec2-vpc-subnet/27467)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [May 6, 2018, 6:32pm UTC](https://forum.ansible.com/t/no-subnet-id-in-ec2-vpc-subnet/27467 "2018-05-06T18:32:25Z")

</div>

The doco for ec2\_vpc\_subnet shows no ID attribute for a subnet, except in the return value. I tried a few obvious variants with no luck, just in case it had just been omitted from the doco. Without an ID attribute, am I…

---

## [Can ayone findout what wil be the issue cannot able to create nat](https://forum.ansible.com/t/can-ayone-findout-what-wil-be-the-issue-cannot-able-to-create-nat/27466)

<div class="topic-metadata">

**Author:** [@karthick\_selvam](https://forum.ansible.com/u/karthick_selvam)\
**Replies:** 0\
**Last updated:** [May 6, 2018, 11:17am UTC](https://forum.ansible.com/t/can-ayone-findout-what-wil-be-the-issue-cannot-able-to-create-nat/27466 "2018-05-06T11:17:34Z")

</div>

---

## [trying vagrant + ansible for windows server target. cant win\_ping](https://forum.ansible.com/t/trying-vagrant-ansible-for-windows-server-target-cant-win-ping/27444)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [May 6, 2018, 12:52am UTC](https://forum.ansible.com/t/trying-vagrant-ansible-for-windows-server-target-cant-win-ping/27444 "2018-05-06T00:52:03Z")

</div>

host: ubuntu-16.04 vagrant: 2.0.4 vagrant-hostmanager (1.8.8) vagrant-libvirt (0.0.43) vagrant-mutate (1.2.0) vagrant-sshfs (1.3.1) there is a virtualbox version of the same windows box. used pip to update winrm (a…

---

## [finding tagged AWS instances](https://forum.ansible.com/t/finding-tagged-aws-instances/27463)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [May 5, 2018, 12:32pm UTC](https://forum.ansible.com/t/finding-tagged-aws-instances/27463 "2018-05-05T12:32:44Z")

</div>

I am going nuts over what seems to be a very simple thing. I am using ec2.py. I want a list of the EC2 instance IDs, but only of instances that are tagged with a particular name and value, e.g. MyTag:MyValue. I know th…

---

## [How to set an environment variable on Linux distro for a user using ansible playbook?](https://forum.ansible.com/t/how-to-set-an-environment-variable-on-linux-distro-for-a-user-using-ansible-playbook/19411)

<div class="topic-metadata">

**Author:** [@Pratik\_Dhandharia](https://forum.ansible.com/u/Pratik_Dhandharia)\
**Replies:** 3\
**Last updated:** [May 5, 2018, 6:50am UTC](https://forum.ansible.com/t/how-to-set-an-environment-variable-on-linux-distro-for-a-user-using-ansible-playbook/19411 "2018-05-05T06:50:28Z")

</div>

Hi All, I need to set some environment variable for all the user who is executing the ansible script. Currently I am doing something like this in the playbook: hosts: all task: name: get path shell: which R reg…

---

## [looking for script to create custom vpc with public and private subnet and deploy rds on private subnet](https://forum.ansible.com/t/looking-for-script-to-create-custom-vpc-with-public-and-private-subnet-and-deploy-rds-on-private-subnet/27446)

<div class="topic-metadata">

**Author:** [@karthick\_selvam](https://forum.ansible.com/u/karthick_selvam)\
**Replies:** 1\
**Last updated:** [May 5, 2018, 4:56am UTC](https://forum.ansible.com/t/looking-for-script-to-create-custom-vpc-with-public-and-private-subnet-and-deploy-rds-on-private-subnet/27446 "2018-05-05T04:56:14Z")

</div>

---

## [ansible playbook become-method not working](https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277)

<div class="topic-metadata">

**Author:** [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Replies:** 1\
**Last updated:** [May 5, 2018, 12:02am UTC](https://forum.ansible.com/t/ansible-playbook-become-method-not-working/27277 "2018-05-05T00:02:10Z")

</div>

Hi, so i got this playbook with this header: \` — #WEBSERVVER hosts: webserver user: ansible become: yes become\_method: su \` when running the playbook via command: \` ansible-playbook -i …/hosts webserver.yml -…

---

## [CLI "choco install rsat" works win\_chocolatey install rsat fails](https://forum.ansible.com/t/cli-choco-install-rsat-works-win-chocolatey-install-rsat-fails/27393)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 14\
**Last updated:** [May 4, 2018, 10:43pm UTC](https://forum.ansible.com/t/cli-choco-install-rsat-works-win-chocolatey-install-rsat-fails/27393 "2018-05-04T22:43:57Z")

</div>

Discussing CLI "choco install rsat" works win\_chocolatey install rsat fails · Issue #39384 · ansible/ansible · GitHub, was told The error indicates it is trying to install an msu (windows update) which doesn’t work ove…

---

## [recommended indent style for tasks](https://forum.ansible.com/t/recommended-indent-style-for-tasks/27420)

<div class="topic-metadata">

**Author:** [@Josef\_Fortier](https://forum.ansible.com/u/Josef_Fortier)\
**Replies:** 1\
**Last updated:** [May 4, 2018, 6:13pm UTC](https://forum.ansible.com/t/recommended-indent-style-for-tasks/27420 "2018-05-04T18:13:40Z")

</div>

I’m modifying an EOL vim ansible plugin for my own use and am wondering about indent style. In the Ansible Intro to Playbooks doc ( http://docs.ansible.com/ansible/latest/user\_guide/playbooks\_intro.html ) there are two s…

---

## [Apache Karaf Output via Ansible](https://forum.ansible.com/t/apache-karaf-output-via-ansible/27456)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 1\
**Last updated:** [May 4, 2018, 5:33pm UTC](https://forum.ansible.com/t/apache-karaf-output-via-ansible/27456 "2018-05-04T17:33:37Z")

</div>

Hi Team, Is there any way to get the output of Karaf through ansible:: If i am executing the below command::- echo encrypt-text abcd | ./client ( I am getting the below output ) 1249 \[sshd-SshClient\[6d78f375\]-nio2-thr…

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

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