# Ansible Project

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

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

**Page:** 186

---

## [jinja2 warnings](https://forum.ansible.com/t/jinja2-warnings/30507)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [June 6, 2019, 7:23pm UTC](https://forum.ansible.com/t/jinja2-warnings/30507 "2019-06-06T19:23:32Z")

</div>

Hi all, After the latest ansible upgrade, I’ve started seeing these alerts when running playbooks: \[WARNING\]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ rhe…

---

## [Ansible 2.8 uri module follows 302 even if follow\_redirects is set to none](https://forum.ansible.com/t/ansible-2-8-uri-module-follows-302-even-if-follow-redirects-is-set-to-none/30504)

<div class="topic-metadata">

**Author:** [@Sam5](https://forum.ansible.com/u/Sam5)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 3:52pm UTC](https://forum.ansible.com/t/ansible-2-8-uri-module-follows-302-even-if-follow-redirects-is-set-to-none/30504 "2019-06-06T15:52:22Z")

</div>

ansible 2.8.0 Running uri module as uri: dest: . url: https://{{ hostvars\[inventory\_hostname\].ansible\_host }}:{{ apache.port }}/context-root/some-context validate\_certs: false return\_content: true follow\_redirects…

---

## [How use mssql-cli on Debian](https://forum.ansible.com/t/how-use-mssql-cli-on-debian/30502)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 3\
**Last updated:** [June 6, 2019, 3:13pm UTC](https://forum.ansible.com/t/how-use-mssql-cli-on-debian/30502 "2019-06-06T15:13:07Z")

</div>

Hi all, I have install mssql-cli for execut command line on instance MSSQL but when i use this task: name: “conenct instance mssql” command: mssql-cli -S my\_hote -U my\_user delegate\_to: localhost This task not work…

---

## [When condition and fetching values](https://forum.ansible.com/t/when-condition-and-fetching-values/30499)

<div class="topic-metadata">

**Author:** [@Tanisha\_Mishra](https://forum.ansible.com/u/Tanisha_Mishra)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 1:29pm UTC](https://forum.ansible.com/t/when-condition-and-fetching-values/30499 "2019-06-06T13:29:13Z")

</div>

I am using csv python module for importing a csv file The csv is importing but unable to fetch the values properly. My main aim is the prompt that takes as server name needs to check from the csv list whether it exists…

---

## [Probleme mssql-cli on ansible](https://forum.ansible.com/t/probleme-mssql-cli-on-ansible/30494)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 6\
**Last updated:** [June 6, 2019, 10:05am UTC](https://forum.ansible.com/t/probleme-mssql-cli-on-ansible/30494 "2019-06-06T10:05:00Z")

</div>

Hi all, When i want do “sudo apt-get update” on my debian 8.11, i have this error : E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql-cli.list (\[arch\] is not an assignment) E: The list of sources could …

---

## [Why "java -version" command output was placed in stderr and not in stdout using win\_command.](https://forum.ansible.com/t/why-java-version-command-output-was-placed-in-stderr-and-not-in-stdout-using-win-command/30501)

<div class="topic-metadata">

**Author:** [@Cindy](https://forum.ansible.com/u/Cindy)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 9:26am UTC](https://forum.ansible.com/t/why-java-version-command-output-was-placed-in-stderr-and-not-in-stdout-using-win-command/30501 "2019-06-06T09:26:28Z")

</div>

Hi, I was new on Ansible and testing some functionalities with Windows hosts. Task: name: Check if Java is installed win\_command: java -version register: java\_result name: Print Java\_result debug: msg: “{{ jav…

---

## [How to update Jinja2 for Ansible](https://forum.ansible.com/t/how-to-update-jinja2-for-ansible/30492)

<div class="topic-metadata">

**Author:** [@Sylvia\_Possenau](https://forum.ansible.com/u/Sylvia_Possenau)\
**Replies:** 1\
**Last updated:** [June 6, 2019, 7:35am UTC](https://forum.ansible.com/t/how-to-update-jinja2-for-ansible/30492 "2019-06-06T07:35:04Z")

</div>

Hi, regarding this issue: https://github.com/ansible/ansible/issues/57311 I’ve tried all the suggested ways of upgrading Jinja including the last one: $ python -m pip install -U jinja2 Pip and the python pip upgrade …

---

## [need help with nested loop](https://forum.ansible.com/t/need-help-with-nested-loop/30491)

<div class="topic-metadata">

**Author:** [@eric\_sandgren](https://forum.ansible.com/u/eric_sandgren)\
**Replies:** 2\
**Last updated:** [June 6, 2019, 6:59am UTC](https://forum.ansible.com/t/need-help-with-nested-loop/30491 "2019-06-06T06:59:06Z")

</div>

First I’m a sysadmin not a developer I often use ansible to set up things in f5 -ltm i often need to add several hosts to a number of pools. The loadbalancing setup in f5 products in a glance consist of av VIP (virtual s…

---

## [Help using yum-repository](https://forum.ansible.com/t/help-using-yum-repository/30500)

<div class="topic-metadata">

**Author:** [@Paul\_Evans](https://forum.ansible.com/u/Paul_Evans)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 11:08pm UTC](https://forum.ansible.com/t/help-using-yum-repository/30500 "2019-06-05T23:08:21Z")

</div>

Trying to install docker-ce. Manually, the commands to do this are: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Then yum install docker-ce -y works just fine. To replicate th…

---

## [azure\_rm\_virtualmachine module causing error to start or stop VM](https://forum.ansible.com/t/azure-rm-virtualmachine-module-causing-error-to-start-or-stop-vm/30487)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 2\
**Last updated:** [June 5, 2019, 5:28pm UTC](https://forum.ansible.com/t/azure-rm-virtualmachine-module-causing-error-to-start-or-stop-vm/30487 "2019-06-05T17:28:38Z")

</div>

Hi I am getting the following error whenever I try to control an Azure VM to start or stop: The full traceback is: Traceback (most recent call last): File “/tmp/ansible-tmp-1559657705.67-271285273530579/AnsiballZ\_azu…

---

## [vmware\_vm\_facts - limit to set of matched names](https://forum.ansible.com/t/vmware-vm-facts-limit-to-set-of-matched-names/30495)

<div class="topic-metadata">

**Author:** [@gforster](https://forum.ansible.com/u/gforster)\
**Replies:** 0\
**Last updated:** [June 5, 2019, 2:05pm UTC](https://forum.ansible.com/t/vmware-vm-facts-limit-to-set-of-matched-names/30495 "2019-06-05T14:05:42Z")

</div>

Is it possible to limit the vmware\_vm\_facts module to only return a subset of regex-matched vms? Big picture: I have a hostname standard that, in part, goes by a sequence # e.g. something-app-prod3a (where 3 is the sequ…

---

## [Ignore whole block with ios\_config module](https://forum.ansible.com/t/ignore-whole-block-with-ios-config-module/30493)

<div class="topic-metadata">

**Author:** [@Erjol\_Bane](https://forum.ansible.com/u/Erjol_Bane)\
**Replies:** 0\
**Last updated:** [June 5, 2019, 9:22am UTC](https://forum.ansible.com/t/ignore-whole-block-with-ios-config-module/30493 "2019-06-05T09:22:46Z")

</div>

Hi, is it possible to ignore the below block via the ios\_config module with diff\_ignore\_lines? certificate self-signed 01 3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030 31312F30 2D060355 04031…

---

## [add\_host and --limit](https://forum.ansible.com/t/add-host-and-limit/30486)

<div class="topic-metadata">

**Author:** [@powcarz](https://forum.ansible.com/u/powcarz)\
**Replies:** 4\
**Last updated:** [June 5, 2019, 8:42am UTC](https://forum.ansible.com/t/add-host-and-limit/30486 "2019-06-05T08:42:49Z")

</div>

Hello All I have the following inventory: … \[group1\] host1 \[group2\] host2 \[all\] host1 host2 … and a playbook: name: play1 hosts: group1 tasks: add\_host: name: “{{groups\[group2\] | first}}” groups: tem…

---

## [Ansible AWS Route53 module](https://forum.ansible.com/t/ansible-aws-route53-module/30488)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 0\
**Last updated:** [June 4, 2019, 2:57pm UTC](https://forum.ansible.com/t/ansible-aws-route53-module/30488 "2019-06-04T14:57:35Z")

</div>

Hi When running the AWS CLI command it is possible to add a comment on creating or delete a record. Is it possible with the route53 module as well?

---

## [Ansible with Windows hosts](https://forum.ansible.com/t/ansible-with-windows-hosts/30415)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 5\
**Last updated:** [June 4, 2019, 2:50pm UTC](https://forum.ansible.com/t/ansible-with-windows-hosts/30415 "2019-06-04T14:50:32Z")

</div>

Hey, I would like to know if there is only one solution for that ansible communicate with Windows host ? winrm and script powershell execute on Windows host ==\> is the only solution for that ansible can communicate wit…

---

## [unarchive, zip and idempotence](https://forum.ansible.com/t/unarchive-zip-and-idempotence/30440)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 7\
**Last updated:** [June 4, 2019, 11:09am UTC](https://forum.ansible.com/t/unarchive-zip-and-idempotence/30440 "2019-06-04T11:09:58Z")

</div>

Hi, I have a zip files with 3 jars inside (no directory). When I use unarchive it always finds diff, even if files already exist. With simple diff i see: .f....o..?? bcpkix-jdk15on-1.60.jar .f....o..?? bcprov-jdk15o…

---

## [How configure Tower Template to use Dynamic Inventory Script.](https://forum.ansible.com/t/how-configure-tower-template-to-use-dynamic-inventory-script/30404)

<div class="topic-metadata">

**Author:** [@Flavio\_Gobber](https://forum.ansible.com/u/Flavio_Gobber)\
**Replies:** 6\
**Last updated:** [June 4, 2019, 10:09am UTC](https://forum.ansible.com/t/how-configure-tower-template-to-use-dynamic-inventory-script/30404 "2019-06-04T10:09:39Z")

</div>

Hello Ansible Team, I have written a Python script “inv-sched.py” which generates a JSON format inventory. This script is working using the command line ansible, with ansible command and ansible-playbook. Now I want to…

---

## [How to debug Ansible modules](https://forum.ansible.com/t/how-to-debug-ansible-modules/30484)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 3\
**Last updated:** [June 4, 2019, 9:47am UTC](https://forum.ansible.com/t/how-to-debug-ansible-modules/30484 "2019-06-04T09:47:00Z")

</div>

Hi, I'm looking to peek into an Ansible module. It is the 'unarchvie' module which in special circumstances is not idempotent (https://github.com/ansible/ansible/issues/57303). I read the code. It looks sensible to m…

---

## [Choose inventory hosts.ini file based on condition](https://forum.ansible.com/t/choose-inventory-hosts-ini-file-based-on-condition/30439)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 4\
**Last updated:** [June 4, 2019, 6:58am UTC](https://forum.ansible.com/t/choose-inventory-hosts-ini-file-based-on-condition/30439 "2019-06-04T06:58:46Z")

</div>

I have different staging environments under inventory. Inventory/ Qa/ Group\_vars hosts.ini Uat/ group\_vars hosts.ini Prod/ group\_vars hosts.ini I want to choose inventory file based on enviro…

---

## [Problems finding handler after updating 2.7.10 to 2.8.0](https://forum.ansible.com/t/problems-finding-handler-after-updating-2-7-10-to-2-8-0/30476)

<div class="topic-metadata">

**Author:** [@Jan-Philipp\_Bolle](https://forum.ansible.com/u/Jan-Philipp_Bolle)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 6:06am UTC](https://forum.ansible.com/t/problems-finding-handler-after-updating-2-7-10-to-2-8-0/30476 "2019-06-04T06:06:20Z")

</div>

Hi, In my roles I use the following Handler definition: \` name: restart prometheus include: “roles/common/tasks/restart-service.yml service\_name=prometheus” \` This works fine in 2.7.10. After updating to 2.8.0 I …

---

## [See individual, module-level debug statements](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482)

<div class="topic-metadata">

**Author:** [@Julian\_Montez](https://forum.ansible.com/u/Julian_Montez)\
**Replies:** 2\
**Last updated:** [June 3, 2019, 10:16pm UTC](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482 "2019-06-03T22:16:16Z")

</div>

Hi, I’m trying to view debug statements within individual modules. For example, ec2\_asg.py (https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/amazon/ec2\_asg.py) has debug statements describing when…

---

## [Run one playbook after another has finished?](https://forum.ansible.com/t/run-one-playbook-after-another-has-finished/30475)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [June 3, 2019, 7:37pm UTC](https://forum.ansible.com/t/run-one-playbook-after-another-has-finished/30475 "2019-06-03T19:37:40Z")

</div>

Hi I have a play that fetches some custom roles into a directory. These roles are then used in a subsequent play. My overarching playbook looks like: - name: Fetch roles hosts: all connection: local tags: al…

---

## [Upgrading Ansible Tower to 3.5. failed on database schema migration stage](https://forum.ansible.com/t/upgrading-ansible-tower-to-3-5-failed-on-database-schema-migration-stage/30480)

<div class="topic-metadata">

**Author:** [@Jia\_Sian\_Lee](https://forum.ansible.com/u/Jia_Sian_Lee)\
**Replies:** 1\
**Last updated:** [June 3, 2019, 3:52pm UTC](https://forum.ansible.com/t/upgrading-ansible-tower-to-3-5-failed-on-database-schema-migration-stage/30480 "2019-06-03T15:52:38Z")

</div>

Trying to upgrade existing Ansible Tower from version 3.2.5 to 3.5.01 using the bundled installer but ran into the following problem during the upgrade (using setup.sh): start: ‘2019-06-03 22:57:36.592912’ stderr: |- …

---

## [playbook to start AWS instance, run some tasks on the AWS instance, then terminate the instance](https://forum.ansible.com/t/playbook-to-start-aws-instance-run-some-tasks-on-the-aws-instance-then-terminate-the-instance/30416)

<div class="topic-metadata">

**Author:** [@Tuyen\_Nguyen](https://forum.ansible.com/u/Tuyen_Nguyen)\
**Replies:** 7\
**Last updated:** [June 3, 2019, 3:49pm UTC](https://forum.ansible.com/t/playbook-to-start-aws-instance-run-some-tasks-on-the-aws-instance-then-terminate-the-instance/30416 "2019-06-03T15:49:14Z")

</div>

Hi Currently, to do what I want to do above, I have 3 different playbooks running with a shell script. First the script runs a playbook aws.yml to start up an instance with a static IP address using the ec2 module, and…

---

## [ios\_facts not picking up Neighbors](https://forum.ansible.com/t/ios-facts-not-picking-up-neighbors/30474)

<div class="topic-metadata">

**Author:** [@Adam\_Lowery](https://forum.ansible.com/u/Adam_Lowery)\
**Replies:** 0\
**Last updated:** [June 3, 2019, 9:56am UTC](https://forum.ansible.com/t/ios-facts-not-picking-up-neighbors/30474 "2019-06-03T09:56:29Z")

</div>

I am running ios\_facts using “gather facts: all” and i am not recieving any neighbor facts. this works with nxos\_facts but not ios\_facts. can anyone help?

---

## [NSupdate issue](https://forum.ansible.com/t/nsupdate-issue/30473)

<div class="topic-metadata">

**Author:** [@MIke\_Drtikol](https://forum.ansible.com/u/MIke_Drtikol)\
**Replies:** 0\
**Last updated:** [June 3, 2019, 6:34am UTC](https://forum.ansible.com/t/nsupdate-issue/30473 "2019-06-03T06:34:58Z")

</div>

Hi all, I have a issue to make dns record in my win AD server. Im sugin kerberos because its more convinient and MS AD does not support tsig. With kinit standalone application nsupdate works ok, but with ansible module,…

---

## [Slowness changing VM port group with vmware\_guest module](https://forum.ansible.com/t/slowness-changing-vm-port-group-with-vmware-guest-module/30471)

<div class="topic-metadata">

**Author:** [@mamullen13316](https://forum.ansible.com/u/mamullen13316)\
**Replies:** 0\
**Last updated:** [June 2, 2019, 5:41pm UTC](https://forum.ansible.com/t/slowness-changing-vm-port-group-with-vmware-guest-module/30471 "2019-06-02T17:41:39Z")

</div>

Hello, I am using the vmware\_guest module to change a port group on a VM and it is taking over a minute to change the port group for each VM. Below is the playbook: name: “Change VM port group in vCenter DC {{ item\[‘v…

---

## [Which plugin to write?](https://forum.ansible.com/t/which-plugin-to-write/30468)

<div class="topic-metadata">

**Author:** [@Lassi\_Polonen](https://forum.ansible.com/u/Lassi_Polonen)\
**Replies:** 0\
**Last updated:** [June 1, 2019, 11:22am UTC](https://forum.ansible.com/t/which-plugin-to-write/30468 "2019-06-01T11:22:50Z")

</div>

Hi, I’m considering of writing a plugin, but would need some pointers/tips what’s the best way to achieve what I’m after. Basically I do a lot of firewall rules for host to host connections (based on groups), so I’ve c…

---

## [serious issues with autoescaping quotes in variables with output](https://forum.ansible.com/t/serious-issues-with-autoescaping-quotes-in-variables-with-output/30451)

<div class="topic-metadata">

**Author:** [@erik\_clark](https://forum.ansible.com/u/erik_clark)\
**Replies:** 14\
**Last updated:** [June 1, 2019, 8:17am UTC](https://forum.ansible.com/t/serious-issues-with-autoescaping-quotes-in-variables-with-output/30451 "2019-06-01T08:17:21Z")

</div>

Simple problem, apparently not a simple solution. tasks: name: packages shell: dpkg -l | awk -F ’ ’ ‘{print “{"package":"”$1"", “"version":"”$2""}"}’ register: bleh ignore\_errors: yes set\_fact: packages: “{{ b…

---

## [Patching using local repository](https://forum.ansible.com/t/patching-using-local-repository/30461)

<div class="topic-metadata">

**Author:** [@Dung\_Do](https://forum.ansible.com/u/Dung_Do)\
**Replies:** 3\
**Last updated:** [May 31, 2019, 5:25pm UTC](https://forum.ansible.com/t/patching-using-local-repository/30461 "2019-05-31T17:25:48Z")

</div>

I am thinking about pointing Ansible to my local repository for updates. How do I accomplish the task? And more importantly, is pointing Ansible to local repository the right way to design Ansible patching architect?

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

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