# Archives

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

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

**Page:** 597

---

## [Manage environment variables](https://forum.ansible.com/t/manage-environment-variables/21313)

<div class="topic-metadata">

**Author:** [@Stefano](https://forum.ansible.com/u/Stefano)\
**Replies:** 0\
**Last updated:** [April 29, 2016, 11:33am UTC](https://forum.ansible.com/t/manage-environment-variables/21313 "2016-04-29T11:33:02Z")

</div>

I need set the environment variable to build some app at startup, i use vars in the playbook file: --- - hosts: all sudo: yes vars: build\_env: VAR1: value1 VAR2: value2 VAR3: value3 And set…

---

## [docker ansible](https://forum.ansible.com/t/docker-ansible/21299)

<div class="topic-metadata">

**Author:** [@Vladimir\_Nomkhoev](https://forum.ansible.com/u/Vladimir_Nomkhoev)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 9:06am UTC](https://forum.ansible.com/t/docker-ansible/21299 "2016-04-29T09:06:07Z")

</div>

Hi, docker run -it --name ansible ansible/ansible:centos7 /bin/bash \[root@a4b2235393a4 bin\]# ansible bash: ansible: command not found How to run ansible under docker container? Best Regards.

---

## [Distribution Version detection: please test and add more test cases](https://forum.ansible.com/t/distribution-version-detection-please-test-and-add-more-test-cases/21291)

<div class="topic-metadata">

**Author:** [@Robin\_Roth](https://forum.ansible.com/u/Robin_Roth)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 8:04am UTC](https://forum.ansible.com/t/distribution-version-detection-please-test-and-add-more-test-cases/21291 "2016-04-29T08:04:01Z")

</div>

Hello, the code that fills the ‘ansible\_distribution\_\*’ variables grew fairly complex, so I cleaned it up. This was merged to devel (for 2.2) today, see https://github.com/ansible/ansible/pull/15221 While cleaning it u…

---

## [question / help needed with conditionally passing variables to a module](https://forum.ansible.com/t/question-help-needed-with-conditionally-passing-variables-to-a-module/21287)

<div class="topic-metadata">

**Author:** [@nrser](https://forum.ansible.com/u/nrser)\
**Replies:** 4\
**Last updated:** [April 29, 2016, 7:08am UTC](https://forum.ansible.com/t/question-help-needed-with-conditionally-passing-variables-to-a-module/21287 "2016-04-29T07:08:26Z")

</div>

i have a role that can optionally be provided a rbenv\_gem\_version variable that should then be optionally provided to the gem module in it’s tasks. this seems very difficult to do with a large amount of copy-pasta due t…

---

## [template: shows change every time but no change?](https://forum.ansible.com/t/template-shows-change-every-time-but-no-change/21307)

<div class="topic-metadata">

**Author:** [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Replies:** 2\
**Last updated:** [April 29, 2016, 4:16am UTC](https://forum.ansible.com/t/template-shows-change-every-time-but-no-change/21307 "2016-04-29T04:16:56Z")

</div>

$ ansible --version ansible 2.2.0 (devel 7af47a3886) last updated 2016/04/28 13:40:56 (GMT -500) lib/ansible/modules/core: (detached HEAD e78ee3b128) last updated 2016/04/28 13:40:56 (GMT -500) lib/ansible/modules/ext…

---

## [Storing facts on remote hosts](https://forum.ansible.com/t/storing-facts-on-remote-hosts/21304)

<div class="topic-metadata">

**Author:** [@Volodymyr\_Linevych](https://forum.ansible.com/u/Volodymyr_Linevych)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 11:31pm UTC](https://forum.ansible.com/t/storing-facts-on-remote-hosts/21304 "2016-04-28T23:31:47Z")

</div>

Hello, Ansible users! I am trying to make a group of variables persistent on hosts, preferably as a text file. I was using puppet+facter before and now I’m looking for a native way to accomplish this with ansible. My …

---

## [Can you override location for "cp" folder on remote hosts?](https://forum.ansible.com/t/can-you-override-location-for-cp-folder-on-remote-hosts/21303)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 3\
**Last updated:** [April 28, 2016, 10:40pm UTC](https://forum.ansible.com/t/can-you-override-location-for-cp-folder-on-remote-hosts/21303 "2016-04-28T22:40:20Z")

</div>

Hello, Our UNIX administrators are trying to root lock all home directories (/export/home/), including the user which Ansible uses (username: test). As such, when I send an Ansible command it fails due to the inability…

---

## [struggling with include files](https://forum.ansible.com/t/struggling-with-include-files/21297)

<div class="topic-metadata">

**Author:** [@Paul\_Davies](https://forum.ansible.com/u/Paul_Davies)\
**Replies:** 4\
**Last updated:** [April 28, 2016, 9:03pm UTC](https://forum.ansible.com/t/struggling-with-include-files/21297 "2016-04-28T21:03:49Z")

</div>

I am seriously struggling with trying to include yml files in my top level play I have prereqcheck.yml in which I want to set the host for the rest of the included files to use

---

## [Bug in apt-get ubuntu package](https://forum.ansible.com/t/bug-in-apt-get-ubuntu-package/21306)

<div class="topic-metadata">

**Author:** [@Baratali\_Izmailov](https://forum.ansible.com/u/Baratali_Izmailov)\
**Replies:** 0\
**Last updated:** [April 28, 2016, 5:15pm UTC](https://forum.ansible.com/t/bug-in-apt-get-ubuntu-package/21306 "2016-04-28T17:15:01Z")

</div>

Hello. I faced a bug when ansible-playbook incorrectly process “sudo\_flags = -i” property and, therefore, sudo doesn’t load “.profile” file with all my env variables needed for deploying. I installed ansible on my ubun…

---

## [Problems On v2 S3 Checksum Overwrite](https://forum.ansible.com/t/problems-on-v2-s3-checksum-overwrite/21305)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 0\
**Last updated:** [April 28, 2016, 5:00pm UTC](https://forum.ansible.com/t/problems-on-v2-s3-checksum-overwrite/21305 "2016-04-28T17:00:26Z")

</div>

Hi Guys, Opened this months ago, but nothing has happened. Its a pretty significant problem, so the hope was it would have gotten some attention by now. Is there something I need to add? TIA, -T

---

## [Lookup in a csv file with a multiple field key](https://forum.ansible.com/t/lookup-in-a-csv-file-with-a-multiple-field-key/21296)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 2:36pm UTC](https://forum.ansible.com/t/lookup-in-a-csv-file-with-a-multiple-field-key/21296 "2016-04-28T14:36:49Z")

</div>

Hello, my csv file has the “,” delimiter and is this way: buddy,dv19,toto eric,dv05,toto buddy,dv05,toto I can easily use the lookup command on a single key like buddy or eric or dv19 or dv05. How could I proceed t…

---

## [Ansible parsing error](https://forum.ansible.com/t/ansible-parsing-error/21298)

<div class="topic-metadata">

**Author:** [@anderson.goulart](https://forum.ansible.com/u/anderson.goulart)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 1:48pm UTC](https://forum.ansible.com/t/ansible-parsing-error/21298 "2016-04-28T13:48:58Z")

</div>

Hi, I am struggling with an issue that seems to be a bug introduced in newer versions of ansible or something could have changed the way of work/thinking. I want to create dynamic group vars // site.yml

---

## [user.state](https://forum.ansible.com/t/user-state/21266)

<div class="topic-metadata">

**Author:** [@Jameson](https://forum.ansible.com/u/Jameson)\
**Replies:** 12\
**Last updated:** [April 28, 2016, 12:34pm UTC](https://forum.ansible.com/t/user-state/21266 "2016-04-28T12:34:30Z")

</div>

Is it currently possible to have a conditional like: when: “{{ item }}.user.state == present” Thanks.

---

## [struggling with include files](https://forum.ansible.com/t/struggling-with-include-files/21295)

<div class="topic-metadata">

**Author:** [@Paul\_Davies1](https://forum.ansible.com/u/Paul_Davies1)\
**Replies:** 2\
**Last updated:** [April 28, 2016, 12:09pm UTC](https://forum.ansible.com/t/struggling-with-include-files/21295 "2016-04-28T12:09:40Z")

</div>

I am seriously struggling with trying to include yml files in my top level play I have prereqcheck.yml in which I want to set the host for the rest of the included files to use

---

## [How do I execute Playbooks sequentially for instances not hosts](https://forum.ansible.com/t/how-do-i-execute-playbooks-sequentially-for-instances-not-hosts/21290)

<div class="topic-metadata">

**Author:** [@Santhi](https://forum.ansible.com/u/Santhi)\
**Replies:** 1\
**Last updated:** [April 28, 2016, 12:05pm UTC](https://forum.ansible.com/t/how-do-i-execute-playbooks-sequentially-for-instances-not-hosts/21290 "2016-04-28T12:05:57Z")

</div>

We have 4 instances on a server and I am passing the sever with --limit. Now I want to execute all the tasks for playbook for each domain Mentioning serial:1, is executing tasks sequentially for server but not instances…

---

## [Passing parameters to custom module](https://forum.ansible.com/t/passing-parameters-to-custom-module/21288)

<div class="topic-metadata">

**Author:** [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Replies:** 2\
**Last updated:** [April 27, 2016, 10:56pm UTC](https://forum.ansible.com/t/passing-parameters-to-custom-module/21288 "2016-04-27T22:56:43Z")

</div>

Hi, I have written custom modules in python. I am calling the modules from my task file like below: name: Collect logstash details action: get\_logstash\_details path={{ logstash\_path }} register: result name: Displa…

---

## [Is apt-get really idempotent? How does it work?](https://forum.ansible.com/t/is-apt-get-really-idempotent-how-does-it-work/21275)

<div class="topic-metadata">

**Author:** [@Robert\_Glenn](https://forum.ansible.com/u/Robert_Glenn)\
**Replies:** 1\
**Last updated:** [April 27, 2016, 6:30pm UTC](https://forum.ansible.com/t/is-apt-get-really-idempotent-how-does-it-work/21275 "2016-04-27T18:30:31Z")

</div>

Hi, I’m trying to understand how Ansible’s “idempotency” is achieved for e.g. apt-get updates. For example: suppose I have X servers, fully provisioned some time ago, and now want to scale up to X+Y servers. The playbo…

---

## [Shell command with problems since 2.0.2.0](https://forum.ansible.com/t/shell-command-with-problems-since-2-0-2-0/21289)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 5\
**Last updated:** [April 27, 2016, 10:49am UTC](https://forum.ansible.com/t/shell-command-with-problems-since-2-0-2-0/21289 "2016-04-27T10:49:47Z")

</div>

My task calls this \` shell: free | awk '/Mem:/ {print $4}' \` and the output is empty. Up until Version 2.0.1.0 this correctly output the 4th string of the second line from the free command. When changing that to \` …

---

## [New AWS Module for managing AWS Nat Gateways.](https://forum.ansible.com/t/new-aws-module-for-managing-aws-nat-gateways/21285)

<div class="topic-metadata">

**Author:** [@Allen\_Sanabria1](https://forum.ansible.com/u/Allen_Sanabria1)\
**Replies:** 0\
**Last updated:** [April 27, 2016, 2:37am UTC](https://forum.ansible.com/t/new-aws-module-for-managing-aws-nat-gateways/21285 "2016-04-27T02:37:52Z")

</div>

I have an open PR for the ec2\_vpc\_nat\_gateway module. (Integration and Unit tests are included) Manage AWS Nat Gateways. Create an AWS Nat Gateway. Delete an AWS Nat Gateway. If Nat Gateway exist in subnet and the opt…

---

## [New AWS Module for managing Kinesis Streams.](https://forum.ansible.com/t/new-aws-module-for-managing-kinesis-streams/21284)

<div class="topic-metadata">

**Author:** [@Allen\_Sanabria1](https://forum.ansible.com/u/Allen_Sanabria1)\
**Replies:** 0\
**Last updated:** [April 27, 2016, 2:35am UTC](https://forum.ansible.com/t/new-aws-module-for-managing-kinesis-streams/21284 "2016-04-27T02:35:01Z")

</div>

I have an open PR for the kinesis\_stream module. (Unit Tests are included in the PR) Create, Delete, and Modify a Kinesis Stream. Create a Kinesis Stream. Tag a Kinesis Stream. Update the Retention Period of a Kinesis…

---

## [Hosts file and ansible.cfg for Cisco IOS](https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273)

<div class="topic-metadata">

**Author:** [@Inigo\_Esteban\_Oleaga](https://forum.ansible.com/u/Inigo_Esteban_Oleaga)\
**Replies:** 1\
**Last updated:** [April 27, 2016, 1:37am UTC](https://forum.ansible.com/t/hosts-file-and-ansible-cfg-for-cisco-ios/21273 "2016-04-27T01:37:26Z")

</div>

Hi everyone, I am completely new with Ansible and I haven’t been able yet to do nothing with my Cisco test switch. My Cisco switch is a C2960S with Cisco IOS Version 12.2(55) SE7. The switch has SSH server enabled. I ha…

---

## [user module update\_password changing password to and unknown value](https://forum.ansible.com/t/user-module-update-password-changing-password-to-and-unknown-value/21280)

<div class="topic-metadata">

**Author:** [@chrono](https://forum.ansible.com/u/chrono)\
**Replies:** 1\
**Last updated:** [April 26, 2016, 11:52pm UTC](https://forum.ansible.com/t/user-module-update-password-changing-password-to-and-unknown-value/21280 "2016-04-26T23:52:31Z")

</div>

Hello Everyone, I’m trying to change the password of an ID on a few different servers. The result of my playbook says that each of the servers were “changed” however I am unable to login with the new password OR the old…

---

## [Inventory: ERROR! non-essential-servers.py:2: Expected key=value host variable assignment, got: ldap3](https://forum.ansible.com/t/inventory-error-non-essential-servers-py-expected-key-value-host-variable-assignment-got-ldap3/21278)

<div class="topic-metadata">

**Author:** [@Jared\_Jenkins](https://forum.ansible.com/u/Jared_Jenkins)\
**Replies:** 0\
**Last updated:** [April 26, 2016, 6:45pm UTC](https://forum.ansible.com/t/inventory-error-non-essential-servers-py-expected-key-value-host-variable-assignment-got-ldap3/21278 "2016-04-26T18:45:25Z")

</div>

\#!/usr/bin/env python -- coding: utf-8 - import class and constants from ldap3 import Server, Connection, ALL, NTLM, Tls import json import ssl define the server and the connection server = Server(‘server’, use\_ssl=T…

---

## [setup faillure](https://forum.ansible.com/t/setup-faillure/21276)

<div class="topic-metadata">

**Author:** [@ming.chau](https://forum.ansible.com/u/ming.chau)\
**Replies:** 0\
**Last updated:** [April 26, 2016, 4:46pm UTC](https://forum.ansible.com/t/setup-faillure/21276 "2016-04-26T16:46:35Z")

</div>

hello, i’m using Ansible with git distribution. before updating my local repo, everything was OK… but now i have a big problem : TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: …

---

## [win\_ping Name or service not known](https://forum.ansible.com/t/win-ping-name-or-service-not-known/21264)

<div class="topic-metadata">

**Author:** [@Jonathan\_Anderson](https://forum.ansible.com/u/Jonathan_Anderson)\
**Replies:** 1\
**Last updated:** [April 26, 2016, 9:49am UTC](https://forum.ansible.com/t/win-ping-name-or-service-not-known/21264 "2016-04-26T09:49:48Z")

</div>

Centos 7 Ansible 2.1 Windows 7 on remote node My inventory file (/etc/ansible/hosts) contains… \[windows\] 123.123.123.123.mycompany.com My /etc/ansible/group\_vars/windows.yml file contains… ansible\_user: username a…

---

## [SVN Module Error](https://forum.ansible.com/t/svn-module-error/21271)

<div class="topic-metadata">

**Author:** [@molnar](https://forum.ansible.com/u/molnar)\
**Replies:** 0\
**Last updated:** [April 25, 2016, 9:27pm UTC](https://forum.ansible.com/t/svn-module-error/21271 "2016-04-25T21:27:32Z")

</div>

Hello, I’m trying to use the svn core module to checkout/update a svn project. My understanding is that this module will checkout or update the svn project depending on whether it exists in the dest folder. Also what i…

---

## [Ansible Not Using \`ansible\_become\_pass\` Variable](https://forum.ansible.com/t/ansible-not-using-ansible-become-pass-variable/21253)

<div class="topic-metadata">

**Author:** [@Chad\_Sheets](https://forum.ansible.com/u/Chad_Sheets)\
**Replies:** 5\
**Last updated:** [April 25, 2016, 8:16pm UTC](https://forum.ansible.com/t/ansible-not-using-ansible-become-pass-variable/21253 "2016-04-25T20:16:12Z")

</div>

Hi Everyone, I recently installed a new Ansible host (Ubuntu Xenial, upgrading ansible from 1.9.4 to 2.0.0.2 in the process) and I can’t get the new host to use the ansible\_become\_pass variable. My plays always start b…

---

## [Branch/Fork basic question](https://forum.ansible.com/t/branch-fork-basic-question/21268)

<div class="topic-metadata">

**Author:** [@Victor\_Schroder](https://forum.ansible.com/u/Victor_Schroder)\
**Replies:** 1\
**Last updated:** [April 25, 2016, 8:09pm UTC](https://forum.ansible.com/t/branch-fork-basic-question/21268 "2016-04-25T20:09:15Z")

</div>

Hello everybody! We have an important use case here that requires certificate-based authentication, when using the uri module, which is not available. I’d like to enhance it to offer this possibility and that will almos…

---

## [Weird idempotency issue with 2.0.2.0 on ec2\_vpc module](https://forum.ansible.com/t/weird-idempotency-issue-with-2-0-2-0-on-ec2-vpc-module/21267)

<div class="topic-metadata">

**Author:** [@Joseph\_DJOMEDA](https://forum.ansible.com/u/Joseph_DJOMEDA)\
**Replies:** 0\
**Last updated:** [April 25, 2016, 7:16pm UTC](https://forum.ansible.com/t/weird-idempotency-issue-with-2-0-2-0-on-ec2-vpc-module/21267 "2016-04-25T19:16:51Z")

</div>

Hello Guys, I just upgraded and quickly got caught up with a weird issue with the ec2\_vpc. It’s a existing playbook and worked fine. The weird part is that the playbook works fine the first type but give this error the …

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/21265)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 25, 2016, 7:02pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/21265 "2016-04-25T19:02:54Z")

</div>

Hi All, We’re pleased to announce the addition of a new Ansible Networking Working Group. The group is being formed to drive where network integration grows within Ansible moving forward. We will have a weekly community…

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

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