# Archives

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

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

**Page:** 545

---

## [combining set\_fact with --start-at-task](https://forum.ansible.com/t/combining-set-fact-with-start-at-task/22770)

<div class="topic-metadata">

**Author:** [@jan.warchol](https://forum.ansible.com/u/jan.warchol)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 4:27am UTC](https://forum.ansible.com/t/combining-set-fact-with-start-at-task/22770 "2016-10-20T04:27:14Z")

</div>

Hi, I have a play that sets some facts at the very beginning, using set\_fact (I cannot use group\_vars for defining these variables). Now, if this playbook fails and I rerun it using --start-at-task=something, the set\_fa…

---

## [Sample Playbook Help](https://forum.ansible.com/t/sample-playbook-help/22751)

<div class="topic-metadata">

**Author:** [@Kumar1](https://forum.ansible.com/u/Kumar1)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 4:25am UTC](https://forum.ansible.com/t/sample-playbook-help/22751 "2016-10-20T04:25:35Z")

</div>

I have just started learning Ansible so need a help here. I am looking for a sample playbook which will list only those files and directories having 777 permission under a specific path (OS: RHEL).The list will be saved…

---

## [New to Ansible Not to Python looking to help](https://forum.ansible.com/t/new-to-ansible-not-to-python-looking-to-help/22832)

<div class="topic-metadata">

**Author:** [@brian\_hopkins](https://forum.ansible.com/u/brian_hopkins)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 4:22am UTC](https://forum.ansible.com/t/new-to-ansible-not-to-python-looking-to-help/22832 "2016-10-20T04:22:28Z")

</div>

Hello Everyone, I’m currently a python developer looking to assist more on Ansible and grow my development background. Does anyone have any recommendations on getting started and how to get going with contributing to An…

---

## [Noob issue: How to use profiles with ansible ec2.py](https://forum.ansible.com/t/noob-issue-how-to-use-profiles-with-ansible-ec2-py/22838)

<div class="topic-metadata">

**Author:** [@Sonny\_Chee](https://forum.ansible.com/u/Sonny_Chee)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 3:50am UTC](https://forum.ansible.com/t/noob-issue-how-to-use-profiles-with-ansible-ec2-py/22838 "2016-10-20T03:50:53Z")

</div>

Hey Guys, When I do the following: ansible -i ./ec2.py --profile my\_profile\_name tag\_Name\_nar -m ping I get the error message: Usage: ansible \[options\] ansible: error: no such option: --profile How can I pass the …

---

## [considering for ansible playbooks when re-platforming from solaris to linux](https://forum.ansible.com/t/considering-for-ansible-playbooks-when-re-platforming-from-solaris-to-linux/22835)

<div class="topic-metadata">

**Author:** [@Nags\_Reid](https://forum.ansible.com/u/Nags_Reid)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 3:42am UTC](https://forum.ansible.com/t/considering-for-ansible-playbooks-when-re-platforming-from-solaris-to-linux/22835 "2016-10-20T03:42:00Z")

</div>

Hi, We currently have playbooks for oracle database refresh process running on solaris. We are trying to re-platform the underlying OS to linux, what considerations needs to be taken into account in terms of updating th…

---

## [task to get username/password from group\_vars](https://forum.ansible.com/t/task-to-get-username-password-from-group-vars/22811)

<div class="topic-metadata">

**Author:** [@RK1](https://forum.ansible.com/u/RK1)\
**Replies:** 2\
**Last updated:** [October 19, 2016, 10:47pm UTC](https://forum.ansible.com/t/task-to-get-username-password-from-group-vars/22811 "2016-10-19T22:47:18Z")

</div>

I have a pretty easy playbook to connect to a Juniper switch and provide me the show version output. All works when I place the username and password into the playbook no problem. What I would prefer to do is set the use…

---

## [considering for ansible playbooks when re-platforming from solaris to linux](https://forum.ansible.com/t/considering-for-ansible-playbooks-when-re-platforming-from-solaris-to-linux/22834)

<div class="topic-metadata">

**Author:** [@Nags\_Reid](https://forum.ansible.com/u/Nags_Reid)\
**Replies:** 0\
**Last updated:** [October 19, 2016, 10:28pm UTC](https://forum.ansible.com/t/considering-for-ansible-playbooks-when-re-platforming-from-solaris-to-linux/22834 "2016-10-19T22:28:46Z")

</div>

Hi, We currently have playbooks for oracle database refresh process running on solaris. We are trying to re-platform the underlying OS to linux, what considerations needs to be taken into account in terms of updating th…

---

## [Docker container using ansible](https://forum.ansible.com/t/docker-container-using-ansible/22809)

<div class="topic-metadata">

**Author:** [@jl28777](https://forum.ansible.com/u/jl28777)\
**Replies:** 2\
**Last updated:** [October 19, 2016, 10:18pm UTC](https://forum.ansible.com/t/docker-container-using-ansible/22809 "2016-10-19T22:18:05Z")

</div>

Hi, I am trying to create docker containers with the help of ansible playbook. Need help! Thanks

---

## [Updating playbooks for ansible when re-platforming from solaris to linux](https://forum.ansible.com/t/updating-playbooks-for-ansible-when-re-platforming-from-solaris-to-linux/22833)

<div class="topic-metadata">

**Author:** [@Nags\_Reid](https://forum.ansible.com/u/Nags_Reid)\
**Replies:** 0\
**Last updated:** [October 19, 2016, 9:00pm UTC](https://forum.ansible.com/t/updating-playbooks-for-ansible-when-re-platforming-from-solaris-to-linux/22833 "2016-10-19T21:00:21Z")

</div>

Hi Everybody, We currently have our playbooks designed for oracle Database refresh and Database itself is residing on Solaris OS. We are considering to re-platform the OS to linux, how much effort would it be to update …

---

## [setting up new control from source - getting 'FAILED =\> winrm is not installed' targeting existing Win clients](https://forum.ansible.com/t/setting-up-new-control-from-source-getting-failed-winrm-is-not-installed-targeting-existing-win-clients/16065)

<div class="topic-metadata">

**Author:** [@Damon\_Overboe](https://forum.ansible.com/u/Damon_Overboe)\
**Replies:** 11\
**Last updated:** [October 19, 2016, 7:34pm UTC](https://forum.ansible.com/t/setting-up-new-control-from-source-getting-failed-winrm-is-not-installed-targeting-existing-win-clients/16065 "2016-10-19T19:34:36Z")

</div>

I have a current Linux control machine that can talk to many Windows clients. I’m running from source on it (calling . hacking/env-setup). I’m now trying to bring a new Linux control host (Ubuntu 12.04) online, calling…

---

## [Using ansible to run AWS EC2ConfigService's sysprep](https://forum.ansible.com/t/using-ansible-to-run-aws-ec2configservices-sysprep/16429)

<div class="topic-metadata">

**Author:** [@Peter\_Mounce](https://forum.ansible.com/u/Peter_Mounce)\
**Replies:** 4\
**Last updated:** [October 19, 2016, 4:21pm UTC](https://forum.ansible.com/t/using-ansible-to-run-aws-ec2configservices-sysprep/16429 "2016-10-19T16:21:21Z")

</div>

I’m using Ansible to bake Windows AMIs in AWS. It works well. This involves running & "c:\\program files\\Amazon\\Ec2ConfigService\\ec2config.exe" -sysprep as the last step. This will sysprep the box and then shut it down s…

---

## [How to develop network core module by netconf to config huawei datacenter switch](https://forum.ansible.com/t/how-to-develop-network-core-module-by-netconf-to-config-huawei-datacenter-switch/22682)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 3\
**Last updated:** [October 19, 2016, 3:48pm UTC](https://forum.ansible.com/t/how-to-develop-network-core-module-by-netconf-to-config-huawei-datacenter-switch/22682 "2016-10-19T15:48:09Z")

</div>

Now we using ncclient netconf lib to develop huawei datacenter switch ansible module; But we hope our switch ansible module will be ansible core module, and I think it’s better that ansible do not need to add new depend…

---

## [Ansible or python got messed up](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 3\
**Last updated:** [October 19, 2016, 2:58pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684 "2016-10-19T14:58:33Z")

</div>

Hi, I’m running Ansible to manage our nodes from a shared server, for some reason every time I run Ansible it shows the bellow output on every task execution. As far as I know there were no updates in the system regardi…

---

## [Tests on Procurve Switch](https://forum.ansible.com/t/tests-on-procurve-switch/22829)

<div class="topic-metadata">

**Author:** [@Phil\_Barron](https://forum.ansible.com/u/Phil_Barron)\
**Replies:** 0\
**Last updated:** [October 19, 2016, 2:25pm UTC](https://forum.ansible.com/t/tests-on-procurve-switch/22829 "2016-10-19T14:25:15Z")

</div>

Hi, My goal is to pull down the running config. At this point, I’m just trying to run some simple tests on HP 5400zl Series switches. I’m using ansible 2.1.1.0 on Centos7. I get different results depending on the conn…

---

## [How to read variable file each iteration of a task?](https://forum.ansible.com/t/how-to-read-variable-file-each-iteration-of-a-task/22820)

<div class="topic-metadata">

**Author:** [@Nick\_Tkach](https://forum.ansible.com/u/Nick_Tkach)\
**Replies:** 3\
**Last updated:** [October 19, 2016, 2:09pm UTC](https://forum.ansible.com/t/how-to-read-variable-file-each-iteration-of-a-task/22820 "2016-10-19T14:09:26Z")

</div>

So, the general idea is I’ve got a playbook that has a set of “property” files (yaml format). Different filenames, but the variable names inside are the same: \` group\_vars/siteA.yml

---

## [emptying a file or replacing all its contents](https://forum.ansible.com/t/emptying-a-file-or-replacing-all-its-contents/22828)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 1\
**Last updated:** [October 19, 2016, 1:32pm UTC](https://forum.ansible.com/t/emptying-a-file-or-replacing-all-its-contents/22828 "2016-10-19T13:32:34Z")

</div>

Hallo, in bash i use echo command to empty a file all replace it’s contents. I couldn’t figure this out using file or lineinfile modules. Using shell command, i get another server state since ansible states change alth…

---

## [recursive loop detected in template string problem](https://forum.ansible.com/t/recursive-loop-detected-in-template-string-problem/22805)

<div class="topic-metadata">

**Author:** [@Yosef\_Yudilevich](https://forum.ansible.com/u/Yosef_Yudilevich)\
**Replies:** 2\
**Last updated:** [October 19, 2016, 1:17pm UTC](https://forum.ansible.com/t/recursive-loop-detected-in-template-string-problem/22805 "2016-10-19T13:17:35Z")

</div>

hi , how do i address CB.C1.COUNTER in CB.C1.BUCKETS\_DICT vars file: CB: C1: COUNT: 4 BUCKETS\_DICT: { bucket\_name: “Test”, bucket\_type: ‘couchbase’, bucket\_port: ‘11211’, bucket\_ram\_quota: “{{ ( 800 / CB.C1\[‘COUNT…

---

## [ansible 2.3.0: variables in with\_items (and ec2\_tag module) selectively get not interpreted but taken literally](https://forum.ansible.com/t/ansible-2-3-0-variables-in-with-items-and-ec2-tag-module-selectively-get-not-interpreted-but-taken-literally/22826)

<div class="topic-metadata">

**Author:** [@hketchup7](https://forum.ansible.com/u/hketchup7)\
**Replies:** 0\
**Last updated:** [October 19, 2016, 11:15am UTC](https://forum.ansible.com/t/ansible-2-3-0-variables-in-with-items-and-ec2-tag-module-selectively-get-not-interpreted-but-taken-literally/22826 "2016-10-19T11:15:18Z")

</div>

Hello Everybody, to explain the odd behaviour, i post a snippet of what i launch via ansible-playbook:

---

## [Using ansbile and ansbile-playbook with just the password for the remote host](https://forum.ansible.com/t/using-ansbile-and-ansbile-playbook-with-just-the-password-for-the-remote-host/13664)

<div class="topic-metadata">

**Author:** [@Soumya\_Simanta](https://forum.ansible.com/u/Soumya_Simanta)\
**Replies:** 9\
**Last updated:** [October 19, 2016, 11:00am UTC](https://forum.ansible.com/t/using-ansbile-and-ansbile-playbook-with-just-the-password-for-the-remote-host/13664 "2016-10-19T11:00:06Z")

</div>

I’m new to Ansible. I know I can add the ssh keys to the remote host(s) and that works. But I was wondering if there is a way to do it without sharing keys and just putting a password every time the Ansible playbook is e…

---

## [Feature RFC: allow task failures to trigger non-zero exit codes](https://forum.ansible.com/t/feature-rfc-allow-task-failures-to-trigger-non-zero-exit-codes/14316)

<div class="topic-metadata">

**Author:** [@Mike\_Bain](https://forum.ansible.com/u/Mike_Bain)\
**Replies:** 2\
**Last updated:** [October 19, 2016, 1:37am UTC](https://forum.ansible.com/t/feature-rfc-allow-task-failures-to-trigger-non-zero-exit-codes/14316 "2016-10-19T01:37:12Z")

</div>

+1 Having an option for ansible to return an exit code if a task fails would be good for us. We also have automated ansible scripts and rely on exit codes to know if the ansible commands worked or not. I think of ansibl…

---

## [delegate\_to and winrm is broken](https://forum.ansible.com/t/delegate-to-and-winrm-is-broken/22788)

<div class="topic-metadata">

**Author:** [@Stephen\_Bunn](https://forum.ansible.com/u/Stephen_Bunn)\
**Replies:** 4\
**Last updated:** [October 19, 2016, 12:54am UTC](https://forum.ansible.com/t/delegate-to-and-winrm-is-broken/22788 "2016-10-19T00:54:35Z")

</div>

It seems that it is impossible to run a local task when talking to windows hosts. This is pretty much a show stopper for my current use case of Ansbile. ansible version: ansible 2.1.1.0 using any of the following, all …

---

## [ec2\_vpc module not idempotent](https://forum.ansible.com/t/ec2-vpc-module-not-idempotent/22824)

<div class="topic-metadata">

**Author:** [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 10:15pm UTC](https://forum.ansible.com/t/ec2-vpc-module-not-idempotent/22824 "2016-10-18T22:15:37Z")

</div>

this module does not seem to be idempotent. Here is the documentation: http://docs.ansible.com/ansible/ec2\_vpc\_module.html, which seems to indicate that VPC’s will NOT be created if a VPC already exists with equivalent r…

---

## [Ansible 2.1.3 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-1-3-rc1-is-ready-for-testing/22823)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 9:15pm UTC](https://forum.ansible.com/t/ansible-2-1-3-rc1-is-ready-for-testing/22823 "2016-10-18T21:15:31Z")

</div>

Hi all, we’re happy to announce that RC1 for 2.1.3 is now available for testing. This release candidate addresses the following bugs: Fixed several bugs related to locating files relative to role/playbook directories. …

---

## [Ansible 2.2.0 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-2-0-rc2-is-ready-for-testing/22822)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 9:15pm UTC](https://forum.ansible.com/t/ansible-2-2-0-rc2-is-ready-for-testing/22822 "2016-10-18T21:15:01Z")

</div>

Hi all, we’re happy to announce that RC2 for 2.2.0 is now available for testing. This release candidate addresses the following bugs: More Python 3 fixes for the core engine. Fixed several bugs related to locating fil…

---

## [Trying to install Azure support for Ansible](https://forum.ansible.com/t/trying-to-install-azure-support-for-ansible/22819)

<div class="topic-metadata">

**Author:** [@Ron\_Morin](https://forum.ansible.com/u/Ron_Morin)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 6:24pm UTC](https://forum.ansible.com/t/trying-to-install-azure-support-for-ansible/22819 "2016-10-18T18:24:55Z")

</div>

Hi, I am trying to get Ansible to deploy resources to the Azure cloud and I am having an getting it to work. I have a fresh install of Ubuntu 14.04 I have installed ansible by running the following: $ sudo apt-get ins…

---

## [\[Windows\] Is there a way to install a single Windows Update by KB article ID?](https://forum.ansible.com/t/windows-is-there-a-way-to-install-a-single-windows-update-by-kb-article-id/22779)

<div class="topic-metadata">

**Author:** [@Brian\_Jackson](https://forum.ansible.com/u/Brian_Jackson)\
**Replies:** 3\
**Last updated:** [October 18, 2016, 5:14pm UTC](https://forum.ansible.com/t/windows-is-there-a-way-to-install-a-single-windows-update-by-kb-article-id/22779 "2016-10-18T17:14:39Z")

</div>

I don’t see this functionality in the win\_updates module, but I wanted to ask. I have a prerequisite on Windows 7 to install KB2999226 and KB2842230. I’d prefer to not install every available update to preserve consisten…

---

## [oVirt Ansible modules](https://forum.ansible.com/t/ovirt-ansible-modules/22818)

<div class="topic-metadata">

**Author:** [@machacekondra](https://forum.ansible.com/u/machacekondra)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 4:58pm UTC](https://forum.ansible.com/t/ovirt-ansible-modules/22818 "2016-10-18T16:58:33Z")

</div>

Hello all, I’ve recently created few new modules to manage oVirt environment. These modules are using Python SDK\[1\] version 4 for oVirt, that means that those modules works only with API version 4 of the oVirt. Follo…

---

## [consul\_kv datacenter](https://forum.ansible.com/t/consul-kv-datacenter/22817)

<div class="topic-metadata">

**Author:** [@Kevin\_D](https://forum.ansible.com/u/Kevin_D)\
**Replies:** 0\
**Last updated:** [October 18, 2016, 3:21pm UTC](https://forum.ansible.com/t/consul-kv-datacenter/22817 "2016-10-18T15:21:19Z")

</div>

In my consul setup I am using multiple data centers. Looking through the consul\_kv docs I don’t see a way to specify a particular datacenter. Since I didn’t see it I added it myself and created a pull request to see if I…

---

## [Connecting to Windows host fails](https://forum.ansible.com/t/connecting-to-windows-host-fails/22675)

<div class="topic-metadata">

**Author:** [@JayB](https://forum.ansible.com/u/JayB)\
**Replies:** 10\
**Last updated:** [October 18, 2016, 3:07pm UTC](https://forum.ansible.com/t/connecting-to-windows-host-fails/22675 "2016-10-18T15:07:48Z")

</div>

Hi Guys, I’m new to Ansible. I’m trying to connect to ansible windows host. I have configured for windows by following the link (http://darrylcauldwell.com/how-to-setup-an-ansible-test-lab-for-windows-managed-nodes-cust…

---

## [One Trouble! -- ansible connect to remote host](https://forum.ansible.com/t/one-trouble-ansible-connect-to-remote-host/22814)

<div class="topic-metadata">

**Author:** [@user12](https://forum.ansible.com/u/user12)\
**Replies:** 2\
**Last updated:** [October 18, 2016, 10:12am UTC](https://forum.ansible.com/t/one-trouble-ansible-connect-to-remote-host/22814 "2016-10-18T10:12:43Z")

</div>

In my IT infrastructure , ansible can not connet to remote host by ssh directly,between server and remote has a FM(Fortress Machine),how can I connet to remote with zhe FM?

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

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