# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=553

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

**Page:** 554

---

## [Can I convince anybody that the mysql\_db state=import behavior is a bug?](https://forum.ansible.com/t/can-i-convince-anybody-that-the-mysql-db-state-import-behavior-is-a-bug/22581)

<div class="topic-metadata">

**Author:** [@Greg\_Bell](https://forum.ansible.com/u/Greg_Bell)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 4:19am UTC](https://forum.ansible.com/t/can-i-convince-anybody-that-the-mysql-db-state-import-behavior-is-a-bug/22581 "2016-09-19T04:19:16Z")

</div>

Hi, As discussed at here a long time ago,mysql\_db state=import will import the given file unconditionally. There’s a good chance the database has been updated since the original run of ansible, so this behavior means u…

---

## [keeping ansiballz uncompressed files](https://forum.ansible.com/t/keeping-ansiballz-uncompressed-files/22574)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 2\
**Last updated:** [September 18, 2016, 5:25pm UTC](https://forum.ansible.com/t/keeping-ansiballz-uncompressed-files/22574 "2016-09-18T17:25:08Z")

</div>

hey folks, I was wondering if someone might know of a way to keep the uncompressed ansiballz code around without deleting it or editing the ansible source? I specify ANSIBLE\_KEEP\_REMOTE\_FILES, and that keeps around the…

---

## [Timestamp formats in ansible](https://forum.ansible.com/t/timestamp-formats-in-ansible/18053)

<div class="topic-metadata">

**Author:** [@rambius](https://forum.ansible.com/u/rambius)\
**Replies:** 1\
**Last updated:** [September 18, 2016, 4:42am UTC](https://forum.ansible.com/t/timestamp-formats-in-ansible/18053 "2016-09-18T04:42:49Z")

</div>

Hello, I defined a timestamp variable used to name backup files: backup\_timestamp: “{{ ansible\_date\_time.year }}{{ ansible\_date\_time.month }}{{ ansible\_date\_time.day }}{{ ansible\_date\_time.hour }}{{ ansible\_date\_time.m…

---

## [Problems with NXOS Modules in Ansible 2.2](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 2\
**Last updated:** [September 17, 2016, 5:02pm UTC](https://forum.ansible.com/t/problems-with-nxos-modules-in-ansible-2-2/22571 "2016-09-17T17:02:42Z")

</div>

When I run: name: Configure the port channels for the VPCs nxos\_portchannel: provider: “{{ cli }}” group: 99 members: \[‘Ethernet1/1/1’\] mode: ‘active’ state: present I get: An exception occurred during task exe…

---

## [Ansibot issue with resolved\_by\_pr tag](https://forum.ansible.com/t/ansibot-issue-with-resolved-by-pr-tag/22567)

<div class="topic-metadata">

**Author:** [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Replies:** 1\
**Last updated:** [September 17, 2016, 4:09pm UTC](https://forum.ansible.com/t/ansibot-issue-with-resolved-by-pr-tag/22567 "2016-09-17T16:09:45Z")

</div>

Can we change the resolved\_by\_pr label to not close the issue if the PR hasn’t been merged yet? I don’t think the bot should close the ticket just in case the PR isn’t merged for one reason or another and the issue stil…

---

## [Set a fact based on a fact name in a fact](https://forum.ansible.com/t/set-a-fact-based-on-a-fact-name-in-a-fact/22538)

<div class="topic-metadata">

**Author:** [@Lise\_Mattice](https://forum.ansible.com/u/Lise_Mattice)\
**Replies:** 2\
**Last updated:** [September 17, 2016, 12:18pm UTC](https://forum.ansible.com/t/set-a-fact-based-on-a-fact-name-in-a-fact/22538 "2016-09-17T12:18:45Z")

</div>

I have a situation where I am trying to dynamically get the MAC address on the first NIC in a new VM created by Ansible. I could assume the HW Interface will be “eth0”, but it would be better to figure it out at runtime. …

---

## [How to compare two files in ansible ..](https://forum.ansible.com/t/how-to-compare-two-files-in-ansible/22577)

<div class="topic-metadata">

**Author:** [@shameer1687](https://forum.ansible.com/u/shameer1687)\
**Replies:** 0\
**Last updated:** [September 17, 2016, 10:31am UTC](https://forum.ansible.com/t/how-to-compare-two-files-in-ansible/22577 "2016-09-17T10:31:06Z")

</div>

Friends , Please help me on this How to compare two DIRECOTY files in ansible … i have one file called text.sh it is in one directory and i have two files in other diretory how to compare these two file , if no differe…

---

## [ansible-doc -l: module netapp\_e\_lun\_mapping has a documentation error formatting or is missing documentation](https://forum.ansible.com/t/ansible-doc-l-module-netapp-e-lun-mapping-has-a-documentation-error-formatting-or-is-missing-documentation/22576)

<div class="topic-metadata">

**Author:** [@engcheng](https://forum.ansible.com/u/engcheng)\
**Replies:** 0\
**Last updated:** [September 17, 2016, 9:08am UTC](https://forum.ansible.com/t/ansible-doc-l-module-netapp-e-lun-mapping-has-a-documentation-error-formatting-or-is-missing-documentation/22576 "2016-09-17T09:08:42Z")

</div>

Hi. An error occurred when trying to list out all the help modules in ansible-doc. Does anyone else face with the same issue? Tried: Update using "git pull --rebase" and "git submodule update --init --recursive" R…

---

## [best way to switch ansible mode to simply dump the output of jinja2 templating](https://forum.ansible.com/t/best-way-to-switch-ansible-mode-to-simply-dump-the-output-of-jinja2-templating/22572)

<div class="topic-metadata">

**Author:** [@K\_Dawg](https://forum.ansible.com/u/K_Dawg)\
**Replies:** 3\
**Last updated:** [September 17, 2016, 2:44am UTC](https://forum.ansible.com/t/best-way-to-switch-ansible-mode-to-simply-dump-the-output-of-jinja2-templating/22572 "2016-09-17T02:44:54Z")

</div>

Is there a way to simply tell ansible to output any jinja2 templates it would have created when an ansible playbook is run? I.e., not deploy them but just dump them to local host Thanks a bunch.

---

## [How do I nest lookup calls](https://forum.ansible.com/t/how-do-i-nest-lookup-calls/22573)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [September 16, 2016, 7:35pm UTC](https://forum.ansible.com/t/how-do-i-nest-lookup-calls/22573 "2016-09-16T19:35:56Z")

</div>

From How to set environment variable with value obtained from ~/.aws/credentials? I’m using lookup to get the values from a file off my home directory. But how do I nest the result of one lookup call into a subsequent lo…

---

## [How to set environment variable with value obtained from ~/.aws/credentials?](https://forum.ansible.com/t/how-to-set-environment-variable-with-value-obtained-from-aws-credentials/22568)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 3\
**Last updated:** [September 16, 2016, 5:54pm UTC](https://forum.ansible.com/t/how-to-set-environment-variable-with-value-obtained-from-aws-credentials/22568 "2016-09-16T17:54:44Z")

</div>

I’m using Ansible’s s3 module, and it needs aws\_access\_key and aws\_secret\_key to work in my AWS environment, even though the page says they’re not required. These values are in my $HOME/.aws/credentials file \[default\] a…

---

## [pipeline (|) not working with the -e option](https://forum.ansible.com/t/pipeline-not-working-with-the-e-option/22569)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 4\
**Last updated:** [September 16, 2016, 5:24pm UTC](https://forum.ansible.com/t/pipeline-not-working-with-the-e-option/22569 "2016-09-16T17:24:05Z")

</div>

Why extra variables (-e) ignoring commands after pipeline (“|”) while running playbook with -e options. Following playbook giving output till “netstat -an” only. I want the output of this “netstat -an | grep 8080” or an…

---

## [Tomcat restart failed...](https://forum.ansible.com/t/tomcat-restart-failed/22557)

<div class="topic-metadata">

**Author:** [@naaga.wip](https://forum.ansible.com/u/naaga.wip)\
**Replies:** 1\
**Last updated:** [September 16, 2016, 5:12pm UTC](https://forum.ansible.com/t/tomcat-restart-failed/22557 "2016-09-16T17:12:41Z")

</div>

Hi, hosts: dev\_tomcat vars: http\_port: 8080 sudo: true sudo\_user: build tasks: name: copy\_shut copy: src=/etc/ansible/playbooks/scripts/shutdown\_all.sh dest=/tmp name: change\_permission\_shut file: path=/t…

---

## [bash script not writing to file with ansible, but does locally](https://forum.ansible.com/t/bash-script-not-writing-to-file-with-ansible-but-does-locally/22562)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 2\
**Last updated:** [September 16, 2016, 4:24pm UTC](https://forum.ansible.com/t/bash-script-not-writing-to-file-with-ansible-but-does-locally/22562 "2016-09-16T16:24:07Z")

</div>

I have a bash script ( I know, it’s a bit sloppy): \` #!/bin/sh df -h \>\> mongo-rebuild-validate.log 2\>&1 /opt/mongodb/bin/mongo localhost:27017 /opt/mongodb/mongodb-create-visionnode.js \>\> mongo-rebuild-validate.log 2\>…

---

## [\[Feature\]\[2.2\] ec2\_remote\_facts should show public ip\_address in result](https://forum.ansible.com/t/feature-2-2-ec2-remote-facts-should-show-public-ip-address-in-result/22554)

<div class="topic-metadata">

**Author:** [@Oleg\_Tsarev](https://forum.ansible.com/u/Oleg_Tsarev)\
**Replies:** 1\
**Last updated:** [September 16, 2016, 1:47pm UTC](https://forum.ansible.com/t/feature-2-2-ec2-remote-facts-should-show-public-ip-address-in-result/22554 "2016-09-16T13:47:58Z")

</div>

Hello! What about include the very simple, one-line patch to the ansible 2.2? It’s very usefull and very simple See issue: https://github.com/ansible/ansible-modules-extras/issues/2924 With best regards, Oleg

---

## [DNS lookup issue on Ansible](https://forum.ansible.com/t/dns-lookup-issue-on-ansible/21747)

<div class="topic-metadata">

**Author:** [@Julien\_Deloubes](https://forum.ansible.com/u/Julien_Deloubes)\
**Replies:** 3\
**Last updated:** [September 16, 2016, 11:12am UTC](https://forum.ansible.com/t/dns-lookup-issue-on-ansible/21747 "2016-09-16T11:12:29Z")

</div>

Hello, i have a strange problem on Ansible 2.0, my playbook couldn’t resolve anymore the fqdn of my inventory. I can ssh to the machines in my inventory. I tried using an inventory file or specify the hosts with the -…

---

## [A string interpolation filter for mapping over lists](https://forum.ansible.com/t/a-string-interpolation-filter-for-mapping-over-lists/22565)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 0\
**Last updated:** [September 16, 2016, 3:31am UTC](https://forum.ansible.com/t/a-string-interpolation-filter-for-mapping-over-lists/22565 "2016-09-16T03:31:38Z")

</div>

Hey Guys, I’m a big fan of using the extract filter to get hostvar values from a set of hosts. What I have found is that I often times need to inject those vars into strings such as URLs or the such. I created a filter …

---

## [Script module in windows looks for /usr/bin/python](https://forum.ansible.com/t/script-module-in-windows-looks-for-usr-bin-python/22564)

<div class="topic-metadata">

**Author:** [@Mumshad\_Mannambeth](https://forum.ansible.com/u/Mumshad_Mannambeth)\
**Replies:** 2\
**Last updated:** [September 16, 2016, 3:05am UTC](https://forum.ansible.com/t/script-module-in-windows-looks-for-usr-bin-python/22564 "2016-09-16T03:05:55Z")

</div>

I am trying to run a basic script on a windows host using ansible. Why is it looking for Python on windows? Do we need to have Python installed on windows to run a script? : TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [check to see if network manager is running](https://forum.ansible.com/t/check-to-see-if-network-manager-is-running/22561)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [September 16, 2016, 1:01am UTC](https://forum.ansible.com/t/check-to-see-if-network-manager-is-running/22561 "2016-09-16T01:01:17Z")

</div>

The following script is suppose to to check to see if Network Manager is running. The report status section is not working as I would expect:

---

## [Ansible merge multiple files.](https://forum.ansible.com/t/ansible-merge-multiple-files/22540)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 4\
**Last updated:** [September 15, 2016, 7:54pm UTC](https://forum.ansible.com/t/ansible-merge-multiple-files/22540 "2016-09-15T19:54:42Z")

</div>

Hello, I have a number of templates that are generated by Ansible but I need them combined into a single file. Is there a way to do this without having to do a shell command "file1 \>\> newFile.txt" For example I have …

---

## [Ansible and kube-deploy](https://forum.ansible.com/t/ansible-and-kube-deploy/22560)

<div class="topic-metadata">

**Author:** [@Laurent\_Dumont](https://forum.ansible.com/u/Laurent_Dumont)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 4:53pm UTC](https://forum.ansible.com/t/ansible-and-kube-deploy/22560 "2016-09-15T16:53:11Z")

</div>

Hi, I’m trying to integrate Ansible into kube-deploy to allow for a faster and smoother deployment. I’ve ran into a strange issue where if I’m running the script for the ansible playbook, I cant mount gluster volumes in…

---

## [Extra vars with plugins](https://forum.ansible.com/t/extra-vars-with-plugins/22550)

<div class="topic-metadata">

**Author:** [@Andrew1](https://forum.ansible.com/u/Andrew1)\
**Replies:** 7\
**Last updated:** [September 15, 2016, 4:01pm UTC](https://forum.ansible.com/t/extra-vars-with-plugins/22550 "2016-09-15T16:01:08Z")

</div>

Hello, I’m attempting to make some things happen with nested playbooks. Seems like including full on playbooks (as opposed to “taskbooks”) from within “tasks” is not supported as described here. Doing vars, vars\_files, …

---

## [Prompt in Custom Ansible Module](https://forum.ansible.com/t/prompt-in-custom-ansible-module/22551)

<div class="topic-metadata">

**Author:** [@Moses\_Lim\_Him\_Kuong](https://forum.ansible.com/u/Moses_Lim_Him_Kuong)\
**Replies:** 1\
**Last updated:** [September 15, 2016, 3:24pm UTC](https://forum.ansible.com/t/prompt-in-custom-ansible-module/22551 "2016-09-15T15:24:54Z")

</div>

what is the right way to prompt user for input in a custom module?

---

## [Extend setup module](https://forum.ansible.com/t/extend-setup-module/22531)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 3\
**Last updated:** [September 15, 2016, 3:18pm UTC](https://forum.ansible.com/t/extend-setup-module/22531 "2016-09-15T15:18:13Z")

</div>

We have a internal CMDB that gathers facts from systems using the setup module on playbook execution. Is there a way to extend the setup module to include extra information? From what I have read the local facts would w…

---

## [Prompt user for input in Custom Ansible Module](https://forum.ansible.com/t/prompt-user-for-input-in-custom-ansible-module/22552)

<div class="topic-metadata">

**Author:** [@Moses\_Lim\_Him\_Kuong](https://forum.ansible.com/u/Moses_Lim_Him_Kuong)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 1:23pm UTC](https://forum.ansible.com/t/prompt-user-for-input-in-custom-ansible-module/22552 "2016-09-15T13:23:52Z")

</div>

How to prompt user for input inside the custom module?

---

## [get\_url newbie question](https://forum.ansible.com/t/get-url-newbie-question/16300)

<div class="topic-metadata">

**Author:** [@Daniel\_Laird](https://forum.ansible.com/u/Daniel_Laird)\
**Replies:** 4\
**Last updated:** [September 15, 2016, 12:48pm UTC](https://forum.ansible.com/t/get-url-newbie-question/16300 "2016-09-15T12:48:44Z")

</div>

All, New to ansible and struggling a bit. I want to use get\_url on a list of files. But also due to issues with the server I am downloading from I want to retry the download on failure. I have something like this: n…

---

## [running shell commands on Windows](https://forum.ansible.com/t/running-shell-commands-on-windows/22530)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [September 15, 2016, 12:26pm UTC](https://forum.ansible.com/t/running-shell-commands-on-windows/22530 "2016-09-15T12:26:18Z")

</div>

Hello, I did write an Ansible playbook to run on Linux, and now I would like to port it to run on Windows. I would like to list the subdirectories to save it but because I don’t know the full name, on Linux did write t…

---

## [I got error 'dict object' has no attribute 'state' when use state in when](https://forum.ansible.com/t/i-got-error-dict-object-has-no-attribute-state-when-use-state-in-when/22556)

<div class="topic-metadata">

**Author:** [@Andrey\_Rogovsky](https://forum.ansible.com/u/Andrey_Rogovsky)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 12:12pm UTC](https://forum.ansible.com/t/i-got-error-dict-object-has-no-attribute-state-when-use-state-in-when/22556 "2016-09-15T12:12:36Z")

</div>

Hi, all! There is result of execute my playbook: ansible-playbook test.yml PLAY \[ldap\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* … TASK \[freeipa-ds389d : Check if FreeIPA is configured\] \*\*\*…

---

## [List comprehension like in defaults/main.yml](https://forum.ansible.com/t/list-comprehension-like-in-defaults-main-yml/22544)

<div class="topic-metadata">

**Author:** [@Ju\_Ju](https://forum.ansible.com/u/Ju_Ju)\
**Replies:** 1\
**Last updated:** [September 15, 2016, 11:02am UTC](https://forum.ansible.com/t/list-comprehension-like-in-defaults-main-yml/22544 "2016-09-15T11:02:40Z")

</div>

Hi, I need to create a list of fqdn according to à list of subdomain and a domain: app\_\_domain: '{{ ansible\_local.core.domain if (ansible\_local|d() and ansible\_local.core|d() and …

---

## [Using ansible to run a test suite](https://forum.ansible.com/t/using-ansible-to-run-a-test-suite/22553)

<div class="topic-metadata">

**Author:** [@varun\_naagaraj](https://forum.ansible.com/u/varun_naagaraj)\
**Replies:** 0\
**Last updated:** [September 15, 2016, 10:11am UTC](https://forum.ansible.com/t/using-ansible-to-run-a-test-suite/22553 "2016-09-15T10:11:30Z")

</div>

Hi, I have been working on Ansible for over 2 months now for the automation of patch fixes. The code has been integrated into the system. Now i want to know if there is any means by which i can run a previously develope…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=552)

[Next page](https://forum.ansible.com/c/archives/31.md?page=554)
