# Ansible Project

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

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

**Page:** 291

---

## [Ansible Problems with vmware pysphere and some general issues](https://forum.ansible.com/t/ansible-problems-with-vmware-pysphere-and-some-general-issues/24287)

<div class="topic-metadata">

**Author:** [@americanoz](https://forum.ansible.com/u/americanoz)\
**Replies:** 6\
**Last updated:** [December 24, 2017, 8:44pm UTC](https://forum.ansible.com/t/ansible-problems-with-vmware-pysphere-and-some-general-issues/24287 "2017-12-24T20:44:07Z")

</div>

Hi all, I am pretty new to Ansible and I have been tasked with coming up with a playbook to do the following: connect to our various VC’s can create a snapshot of the servers check if physical or virtual verify which …

---

## [Source environment file on connection](https://forum.ansible.com/t/source-environment-file-on-connection/26373)

<div class="topic-metadata">

**Author:** [@Richard\_Shaw](https://forum.ansible.com/u/Richard_Shaw)\
**Replies:** 1\
**Last updated:** [December 24, 2017, 1:33pm UTC](https://forum.ansible.com/t/source-environment-file-on-connection/26373 "2017-12-24T13:33:57Z")

</div>

Hi, I’m working with a environment that requires a $ source /path/environment file every time Ansible connects so it can find Python etc, how would I go about doing that? Thanks, Richard

---

## [Mapping values are not allows in this context when trying to loop a playbook](https://forum.ansible.com/t/mapping-values-are-not-allows-in-this-context-when-trying-to-loop-a-playbook/26372)

<div class="topic-metadata">

**Author:** [@Philip\_Gregory](https://forum.ansible.com/u/Philip_Gregory)\
**Replies:** 0\
**Last updated:** [December 23, 2017, 6:46pm UTC](https://forum.ansible.com/t/mapping-values-are-not-allows-in-this-context-when-trying-to-loop-a-playbook/26372 "2017-12-23T18:46:12Z")

</div>

I have created the below update\_windows.yml playbook. I am trying to loop Windows updates until no updates are found because of the broken nature of windows updates. When I try to run the playbook, I get the following e…

---

## [One host in an Inventory fail "MODULE FAILURE", all others works?](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312)

<div class="topic-metadata">

**Author:** [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Replies:** 4\
**Last updated:** [December 23, 2017, 10:33am UTC](https://forum.ansible.com/t/one-host-in-an-inventory-fail-module-failure-all-others-works/26312 "2017-12-23T10:33:02Z")

</div>

Hi, I am new to Ansible. I am testing simple ansible script like “ansible -m shell -a ‘df -h’ all -i hosts-file.ini” with several Raspberry Pi’s. All come back successfully, accept one host, on any type of command, it lo…

---

## [Why playbook is not taking updated IP from the inventory on the fly](https://forum.ansible.com/t/why-playbook-is-not-taking-updated-ip-from-the-inventory-on-the-fly/26341)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 3\
**Last updated:** [December 23, 2017, 10:11am UTC](https://forum.ansible.com/t/why-playbook-is-not-taking-updated-ip-from-the-inventory-on-the-fly/26341 "2017-12-23T10:11:01Z")

</div>

I have a situation where 1) updating IP in inventory through following shell and 2) using that IP it will perform some operation. However, child2.yml is not taking updated IP in inventory and still takes old IP. Moreov…

---

## [Regarding Copy all files other than one copy.](https://forum.ansible.com/t/regarding-copy-all-files-other-than-one-copy/26345)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 1\
**Last updated:** [December 23, 2017, 10:01am UTC](https://forum.ansible.com/t/regarding-copy-all-files-other-than-one-copy/26345 "2017-12-23T10:01:32Z")

</div>

Hi All, If I want to copy a,b,d,e,f files from /tmp location but I don't want to copy c files. How can I achieve this ?

---

## [docker\_container and etc\_hosts](https://forum.ansible.com/t/docker-container-and-etc-hosts/26370)

<div class="topic-metadata">

**Author:** [@Matt\_Butch](https://forum.ansible.com/u/Matt_Butch)\
**Replies:** 0\
**Last updated:** [December 23, 2017, 2:34am UTC](https://forum.ansible.com/t/docker-container-and-etc-hosts/26370 "2017-12-23T02:34:47Z")

</div>

I have another playbook that sets up a docker container, and now I want to add to the hosts file. Why does this not work? name: Add host entry docker\_container: name: “{{ item }}” etc\_hosts: “{‘server.place.com’: ‘{…

---

## [Run a .json file via command line](https://forum.ansible.com/t/run-a-json-file-via-command-line/26368)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 3\
**Last updated:** [December 22, 2017, 11:07pm UTC](https://forum.ansible.com/t/run-a-json-file-via-command-line/26368 "2017-12-22T23:07:56Z")

</div>

Hi, I want to start a json (gcloud) file via command line (win 10 pc) in ansible. What I am trying now is: name: run command win\_command: C:\\Windows\\System32\\cmd.exe gcloud auth activate-service-account --key-file=C:\\…

---

## [ec2 exact\_count and stopped instances](https://forum.ansible.com/t/ec2-exact-count-and-stopped-instances/17874)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 5\
**Last updated:** [December 22, 2017, 6:57pm UTC](https://forum.ansible.com/t/ec2-exact-count-and-stopped-instances/17874 "2017-12-22T18:57:32Z")

</div>

Hi, Machines that are powered off but match the tags in the EC2 module are not recognised by exact\_count. Consider: A script provisioning an instance with exact\_count of 1 and associated tags is run. When run a secon…

---

## [Basic solution wanted - Start IE url](https://forum.ansible.com/t/basic-solution-wanted-start-ie-url/26319)

<div class="topic-metadata">

**Author:** [@nbmprivat](https://forum.ansible.com/u/nbmprivat)\
**Replies:** 3\
**Last updated:** [December 22, 2017, 6:16pm UTC](https://forum.ansible.com/t/basic-solution-wanted-start-ie-url/26319 "2017-12-22T18:16:16Z")

</div>

Hi there, I’ve tried: script module - powershell script win\_command module - start.exe starting iexplore.exe with url Nothing works. I guess the first command doesn’t work because ansible uses another user to start p…

---

## [unable to install pywinrm on Centos 6.5](https://forum.ansible.com/t/unable-to-install-pywinrm-on-centos-6-5/26183)

<div class="topic-metadata">

**Author:** [@Afroz\_Hussain](https://forum.ansible.com/u/Afroz_Hussain)\
**Replies:** 3\
**Last updated:** [December 22, 2017, 12:34pm UTC](https://forum.ansible.com/t/unable-to-install-pywinrm-on-centos-6-5/26183 "2017-12-22T12:34:05Z")

</div>

Hello everyone, I am facing an issue while installing “pywinrm” for managing my windows host via Ansible, I am getting following errors: Collecting pywinrm Using cached pywinrm-0.2.2-py2.py3-none-any.whl Requirement …

---

## [Difficulties using jump host, ssh demands for password of unexpected user](https://forum.ansible.com/t/difficulties-using-jump-host-ssh-demands-for-password-of-unexpected-user/26369)

<div class="topic-metadata">

**Author:** [@Urs\_Lamprecht](https://forum.ansible.com/u/Urs_Lamprecht)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 9:40am UTC](https://forum.ansible.com/t/difficulties-using-jump-host-ssh-demands-for-password-of-unexpected-user/26369 "2017-12-22T09:40:22Z")

</div>

I took inspiration from the FAQ which describes how to use jump hosts / ssh proxies in combination with ansible playbooks. In order to connect to servers I have to use a syntax like this: ssh myuser@technicaluser@targe…

---

## [s3 Unable to locate credentials](https://forum.ansible.com/t/s3-unable-to-locate-credentials/26363)

<div class="topic-metadata">

**Author:** [@John\_Scancella](https://forum.ansible.com/u/John_Scancella)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 2:45am UTC](https://forum.ansible.com/t/s3-unable-to-locate-credentials/26363 "2017-12-22T02:45:24Z")

</div>

Hello, No matter what I do, I can’t seem to get the aws\_s3 module to work, it keeps complaining that it can’t find credentials. Yet I have them set via my environment variables \` \[jscancella@johns-air chronam-deployme…

---

## [Ansible loop, set different variables](https://forum.ansible.com/t/ansible-loop-set-different-variables/26360)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 2:42am UTC](https://forum.ansible.com/t/ansible-loop-set-different-variables/26360 "2017-12-22T02:42:40Z")

</div>

I need to check if certain paths exists. More than one path may exist on a server: /home/user1/Scripts /home/user2/Scripts /home/user3/Scripts If it exists, I want to define a variable. For user1, variable user1 will…

---

## [s3\_sync exclude parameter does not work with folders](https://forum.ansible.com/t/s3-sync-exclude-parameter-does-not-work-with-folders/26354)

<div class="topic-metadata">

**Author:** [@Erik\_Daritan](https://forum.ansible.com/u/Erik_Daritan)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 12:02am UTC](https://forum.ansible.com/t/s3-sync-exclude-parameter-does-not-work-with-folders/26354 "2017-12-22T00:02:50Z")

</div>

I am trying to use s3\_sync to upload files from local git repository to S3 without the .git directory. I tried the exclude parameter with different variations such as “.git,.git/,.git\*/\*” This is the line that I tested …

---

## [ansible azure storage bug](https://forum.ansible.com/t/ansible-azure-storage-bug/26361)

<div class="topic-metadata">

**Author:** [@Niloofar\_Radafshar](https://forum.ansible.com/u/Niloofar_Radafshar)\
**Replies:** 1\
**Last updated:** [December 21, 2017, 10:12pm UTC](https://forum.ansible.com/t/ansible-azure-storage-bug/26361 "2017-12-21T22:12:51Z")

</div>

Hi, I am using ansible 2.4.2 and azure\_rm\_storageaccount module is throwing an error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: msrest.exceptions.SerializationErro…

---

## [Feature needed: option to disable syslog logging](https://forum.ansible.com/t/feature-needed-option-to-disable-syslog-logging/26366)

<div class="topic-metadata">

**Author:** [@piotr.karbowski](https://forum.ansible.com/u/piotr.karbowski)\
**Replies:** 1\
**Last updated:** [December 21, 2017, 9:09pm UTC](https://forum.ansible.com/t/feature-needed-option-to-disable-syslog-logging/26366 "2017-12-21T21:09:52Z")

</div>

Hi, Currently ansible will spam syslog with all of the execution logs. Setting no\_log: True in ansible.cfg is too global and disable much more than the syslog. It seems that extending a condition in log function of bas…

---

## [Ansible for windows and Linux](https://forum.ansible.com/t/ansible-for-windows-and-linux/26362)

<div class="topic-metadata">

**Author:** [@Abhilash\_Goud](https://forum.ansible.com/u/Abhilash_Goud)\
**Replies:** 1\
**Last updated:** [December 21, 2017, 8:47pm UTC](https://forum.ansible.com/t/ansible-for-windows-and-linux/26362 "2017-12-21T20:47:31Z")

</div>

Can we install ansible for linux and windows on a single linux machine. We have ansible in linux which supports for ssh connections, so want to check whether i can install winrm also on same machines

---

## [Issue with running Ansible playbook against windows.](https://forum.ansible.com/t/issue-with-running-ansible-playbook-against-windows/26297)

<div class="topic-metadata">

**Author:** [@Alexmil\_Reyes](https://forum.ansible.com/u/Alexmil_Reyes)\
**Replies:** 9\
**Last updated:** [December 21, 2017, 8:23pm UTC](https://forum.ansible.com/t/issue-with-running-ansible-playbook-against-windows/26297 "2017-12-21T20:23:21Z")

</div>

Hi, Thank you in advance to anyone who helps here. So am unable to run playbooks against our windows AWS instances. I was able to perform a win\_ping but when I attempt to run this task on the same instances that I am ab…

---

## [Replace Config](https://forum.ansible.com/t/replace-config/26365)

<div class="topic-metadata">

**Author:** [@Anagha\_Kelkar](https://forum.ansible.com/u/Anagha_Kelkar)\
**Replies:** 0\
**Last updated:** [December 21, 2017, 8:13pm UTC](https://forum.ansible.com/t/replace-config/26365 "2017-12-21T20:13:04Z")

</div>

My customer is using Ansible, Python v2.7 and is trying to replace the config but he is unable to replace the Cisco IOS XR config, he can only merge it Will adding the “replace: config” help? Is it supported? Thanks n…

---

## [Changing credentials between tasks](https://forum.ansible.com/t/changing-credentials-between-tasks/26250)

<div class="topic-metadata">

**Author:** [@Kevin\_Phillips](https://forum.ansible.com/u/Kevin_Phillips)\
**Replies:** 2\
**Last updated:** [December 21, 2017, 4:24pm UTC](https://forum.ansible.com/t/changing-credentials-between-tasks/26250 "2017-12-21T16:24:43Z")

</div>

Hi all. I was redirected here from the Ansible issue tracker on Github. I am having difficulties with a specific use case I’m hoping to get help with. I am trying to find a way to programatically change SSH credentials …

---

## [deploy\_helper and parallel execution](https://forum.ansible.com/t/deploy-helper-and-parallel-execution/26358)

<div class="topic-metadata">

**Author:** [@Frank\_Thilo\_Rohl](https://forum.ansible.com/u/Frank_Thilo_Rohl)\
**Replies:** 0\
**Last updated:** [December 21, 2017, 4:08pm UTC](https://forum.ansible.com/t/deploy-helper-and-parallel-execution/26358 "2017-12-21T16:08:07Z")

</div>

Hi, im using an instance of deploy helper. This creates a subdirectory with a timestamp and then creates a link to this subdirectory. I have seen cases where this link is created to a target which does not exists - onl…

---

## [absolute import error for centos 5 environment](https://forum.ansible.com/t/absolute-import-error-for-centos-5-environment/26343)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 2\
**Last updated:** [December 21, 2017, 1:27pm UTC](https://forum.ansible.com/t/absolute-import-error-for-centos-5-environment/26343 "2017-12-21T13:27:55Z")

</div>

Hi, While i am just testing ping adhoc command for my Centos5 environment below is the error i got $ ansible all -i tmp3.txt -m ping -u root -k TESTSRV | FAILED! =\> { “changed”: false, “failed”: true, “module\_stder…

---

## [ansible docker\_service does not support Stacks and Swarms. When will it?](https://forum.ansible.com/t/ansible-docker-service-does-not-support-stacks-and-swarms-when-will-it/26357)

<div class="topic-metadata">

**Author:** [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Replies:** 0\
**Last updated:** [December 21, 2017, 11:47am UTC](https://forum.ansible.com/t/ansible-docker-service-does-not-support-stacks-and-swarms-when-will-it/26357 "2017-12-21T11:47:20Z")

</div>

Does anybody know when Ansible will support stacks and swarms?

---

## [when clause with lookup plugn works for template but not for uri](https://forum.ansible.com/t/when-clause-with-lookup-plugn-works-for-template-but-not-for-uri/26344)

<div class="topic-metadata">

**Author:** [@Mark\_Eisenblatter](https://forum.ansible.com/u/Mark_Eisenblatter)\
**Replies:** 3\
**Last updated:** [December 21, 2017, 8:56am UTC](https://forum.ansible.com/t/when-clause-with-lookup-plugn-works-for-template-but-not-for-uri/26344 "2017-12-21T08:56:51Z")

</div>

hello list, i have a strage problem. \` do we need to readd server to cluster in case of rebuild name: get etcd server set\_fact: etcd\_server: “{{ lookup(‘get\_serverip\_by\_group’, zone, ‘kubernetes\_etcd’, wantlist=Tru…

---

## [using mutiple times same values](https://forum.ansible.com/t/using-mutiple-times-same-values/26338)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 2\
**Last updated:** [December 21, 2017, 4:00am UTC](https://forum.ansible.com/t/using-mutiple-times-same-values/26338 "2017-12-21T04:00:51Z")

</div>

I am trying to create multiple different directory structure using the with\_items and again i need to refer the same directory structure in the other plays in the playbook. for example file: name=/jenkins/data/{{item.…

---

## [Ansible 2.3.3 has been released](https://forum.ansible.com/t/ansible-2-3-3-has-been-released/26349)

<div class="topic-metadata">

**Author:** [@jimi](https://forum.ansible.com/u/jimi)\
**Replies:** 0\
**Last updated:** [December 20, 2017, 9:19pm UTC](https://forum.ansible.com/t/ansible-2-3-3-has-been-released/26349 "2017-12-20T21:19:52Z")

</div>

On behalf of the entire Ansible open source community, we are very happy to announce that Ansible 2.3.3 has been released! This release includes many bugfixes to the 2.3 codebase. For full details, please see the Chan…

---

## [Migrating to Ansible](https://forum.ansible.com/t/migrating-to-ansible/26346)

<div class="topic-metadata">

**Author:** [@Justin2](https://forum.ansible.com/u/Justin2)\
**Replies:** 0\
**Last updated:** [December 20, 2017, 8:38pm UTC](https://forum.ansible.com/t/migrating-to-ansible/26346 "2017-12-20T20:38:23Z")

</div>

I wanted to see if anyone had some tips on how to migrate a current production environment to ansible? Currently ~30 servers are running in AWS. A few autoscaling groups that come up from golden ami’s. Ive been playing w…

---

## [get verbosity at runtime](https://forum.ansible.com/t/get-verbosity-at-runtime/26342)

<div class="topic-metadata">

**Author:** [@William\_McKenzie](https://forum.ansible.com/u/William_McKenzie)\
**Replies:** 4\
**Last updated:** [December 20, 2017, 4:58pm UTC](https://forum.ansible.com/t/get-verbosity-at-runtime/26342 "2017-12-20T16:58:13Z")

</div>

Is there a builtin variable that holds the verbosity passed in -vvvv ? I want to suppress output unless it is above a certain level. So, in a task, i’d like to write: no\_log: “{{ verbosity \<= 2 }}” thanks, ~Bill

---

## [ansible\_host and delegate\_to behavior](https://forum.ansible.com/t/ansible-host-and-delegate-to-behavior/26337)

<div class="topic-metadata">

**Author:** [@gaudenz](https://forum.ansible.com/u/gaudenz)\
**Replies:** 2\
**Last updated:** [December 20, 2017, 12:54pm UTC](https://forum.ansible.com/t/ansible-host-and-delegate-to-behavior/26337 "2017-12-20T12:54:07Z")

</div>

I’m using the following task to check if a host is reachable (after a reboot): \` name: Wait for host to come back wait\_for: host: ‘{{ ansible\_host }}’ port: 22 state: started delay: 30 timeout: 300 delegate\_to:…

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

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