# Latest

**URL:** https://forum.ansible.com/latest.md?page=724

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

**Page:** 725

---

## [Using lookup with log\_path in ansible.cfg](https://forum.ansible.com/t/using-lookup-with-log-path-in-ansible-cfg/22435)

<div class="topic-metadata">

**Author:** [@Kevin\_Ying](https://forum.ansible.com/u/Kevin_Ying)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:28pm UTC](https://forum.ansible.com/t/using-lookup-with-log-path-in-ansible-cfg/22435 "2016-09-20T15:28:11Z")

</div>

I’ve seen some examples referring to the use of lookup with log\_path to log output to datestamped logfiles: e.g. log\_path = ~/.ansible/logs/ansible.{{ lookup(‘pipe’, ‘date +%Y%m%d’) }}.log I’ve been trying various per…

---

## [UFW module issues](https://forum.ansible.com/t/ufw-module-issues/22434)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:24pm UTC](https://forum.ansible.com/t/ufw-module-issues/22434 "2016-09-20T15:24:32Z")

</div>

I’m running into a confusing issue with the UFW module. I’ve been using the same role to configure my rules for a while without any problems, but recently I pulled the latest updates for stable-2.1 and now I’m getting th…

---

## [openstack restful api](https://forum.ansible.com/t/openstack-restful-api/22436)

<div class="topic-metadata">

**Author:** [@nandareddy578](https://forum.ansible.com/u/nandareddy578)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:22pm UTC](https://forum.ansible.com/t/openstack-restful-api/22436 "2016-09-20T15:22:05Z")

</div>

Hello All, Is there any way we can use restful api’s instead of connecting using ssh to target machine? I’ve seen we can connect to local machine using local connection(connection: local). In the same way is there any m…

---

## [loops, file globs, ssh\_keys...](https://forum.ansible.com/t/loops-file-globs-ssh-keys/22585)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 10:06am UTC](https://forum.ansible.com/t/loops-file-globs-ssh-keys/22585 "2016-09-20T10:06:46Z")

</div>

looking on google, this seems to come up a lot. have users. each user has N ssh keys. sometimes, one of the users keys is revoked. for example, a crashed cellphone sent in for repair. we keep keys like this \` . ├── …

---

## [how to compare two files and get files and get the name differenced file name in ansible](https://forum.ansible.com/t/how-to-compare-two-files-and-get-files-and-get-the-name-differenced-file-name-in-ansible/22588)

<div class="topic-metadata">

**Author:** [@Chichu\_sam](https://forum.ansible.com/u/Chichu_sam)\
**Replies:** 0\
**Last updated:** [September 20, 2016, 4:24am UTC](https://forum.ansible.com/t/how-to-compare-two-files-and-get-files-and-get-the-name-differenced-file-name-in-ansible/22588 "2016-09-20T04:24:28Z")

</div>

HI Fiends, Please help on this, Folder1 :Always one file cat file2 SAM:26 Folder2 : two files cat file2 RAM:26 cat file 3 SAM:26 Here first folder folder will have always have one file and it is always standard…

---

## [Unable to insert sshkey with nxos\_command in Ansible 2.1](https://forum.ansible.com/t/unable-to-insert-sshkey-with-nxos-command-in-ansible-2-1/22579)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 1:46am UTC](https://forum.ansible.com/t/unable-to-insert-sshkey-with-nxos-command-in-ansible-2-1/22579 "2016-09-20T01:46:05Z")

</div>

I have the following two plays to create users with ssh keys in NXOS: name: Create User nxos\_config: lines: username “{{ item }}” role network-admin provider: “{{ cli }}” with\_items: “{{ cil\_network\_admins }}” …

---

## [ansible api 2 usage](https://forum.ansible.com/t/ansible-api-2-usage/22586)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 1\
**Last updated:** [September 19, 2016, 5:48pm UTC](https://forum.ansible.com/t/ansible-api-2-usage/22586 "2016-09-19T17:48:16Z")

</div>

Hi all, I am having trouble about using the ansible 2 api. Below is my code:

---

## [Ansible Core 2.2 is frozen!](https://forum.ansible.com/t/ansible-core-2-2-is-frozen/22587)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 4:07pm UTC](https://forum.ansible.com/t/ansible-core-2-2-is-frozen/22587 "2016-09-19T16:07:25Z")

</div>

Ansible Core and Modules are totally feature frozen for testing before we release our first 2.2 Release Candidate on 03 OCTOBER 2016. ONLY bug-fixes will be accepted for inclusion for 2.2 Release Candidate 1.

---

## [ERROR! Unexpected Exception: 'AnsibleLoader' object has no attribute 'get\_single\_data'](https://forum.ansible.com/t/error-unexpected-exception-ansibleloader-object-has-no-attribute-get-single-data/22570)

<div class="topic-metadata">

**Author:** [@Vladimir\_Pevzner](https://forum.ansible.com/u/Vladimir_Pevzner)\
**Replies:** 3\
**Last updated:** [September 19, 2016, 3:55pm UTC](https://forum.ansible.com/t/error-unexpected-exception-ansibleloader-object-has-no-attribute-get-single-data/22570 "2016-09-19T15:55:03Z")

</div>

Hello, I installed 2.1.1.0 from a tarball. Installation went smooth but when attempts to run brings the following message: ERROR! Unexpected Exception: ‘AnsibleLoader’ object has no attribute ‘get\_single\_data’ Please …

---

## [ansible-openstack setup](https://forum.ansible.com/t/ansible-openstack-setup/22583)

<div class="topic-metadata">

**Author:** [@pratik\_dave](https://forum.ansible.com/u/pratik_dave)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 10:06am UTC](https://forum.ansible.com/t/ansible-openstack-setup/22583 "2016-09-19T10:06:28Z")

</div>

Hello Everyone, We are working on a case where we need to setup ansible deployment host outside of openstack environment. Ansible hosts will be openstack instances in tenants; now we do not have enough floating ips and…

---

## [Ansible cannot find files after su to root](https://forum.ansible.com/t/ansible-cannot-find-files-after-su-to-root/22558)

<div class="topic-metadata">

**Author:** [@Charles\_Moga](https://forum.ansible.com/u/Charles_Moga)\
**Replies:** 6\
**Last updated:** [September 19, 2016, 9:45am UTC](https://forum.ansible.com/t/ansible-cannot-find-files-after-su-to-root/22558 "2016-09-19T09:45:44Z")

</div>

Hello, I hope someone can answer this. I have a bunch of commands (shell scripts ) in a specific directory I need to run as root user. So I do: name: Becoming root command: sudo su - name: Changing directory com…

---

## [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:

[Previous page](https://forum.ansible.com/latest.md?page=723)

[Next page](https://forum.ansible.com/latest.md?page=725)
