# Latest

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

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

**Page:** 716

---

## [Unable to find out information about Ansible releases via GitHub API](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842)

<div class="topic-metadata">

**Author:** [@Jinesh\_Choksi](https://forum.ansible.com/u/Jinesh_Choksi)\
**Replies:** 2\
**Last updated:** [October 20, 2016, 8:11pm UTC](https://forum.ansible.com/t/unable-to-find-out-information-about-ansible-releases-via-github-api/22842 "2016-10-20T20:11:32Z")

</div>

Hi I was interested in finding out what the latest available Ansible releases were via GitHub’s API. The following curl command should have showed me all the available “published” releases of Ansible: curl -s “https:/…

---

## [Having issues with homebrew\_tap and homebrew\_cask](https://forum.ansible.com/t/having-issues-with-homebrew-tap-and-homebrew-cask/22845)

<div class="topic-metadata">

**Author:** [@hkim](https://forum.ansible.com/u/hkim)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 6:47pm UTC](https://forum.ansible.com/t/having-issues-with-homebrew-tap-and-homebrew-cask/22845 "2016-10-20T18:47:55Z")

</div>

ansible 2.1.2.0 I’m trying to automate some OS X setup and running into a simple problem I can’t figure out. https://gist.github.com/hkim823/0f11e2132bf943e6cd7ae6d2069ce119 is part of a playbook, pretty simple stuff h…

---

## [Noob Issue with using AWS hostnames in inventory](https://forum.ansible.com/t/noob-issue-with-using-aws-hostnames-in-inventory/22836)

<div class="topic-metadata">

**Author:** [@Sonny\_Chee](https://forum.ansible.com/u/Sonny_Chee)\
**Replies:** 4\
**Last updated:** [October 20, 2016, 6:16pm UTC](https://forum.ansible.com/t/noob-issue-with-using-aws-hostnames-in-inventory/22836 "2016-10-20T18:16:03Z")

</div>

Hey Guys, I am successful executing ansible against an AWS ec2 when I put the public IP in the /etc/ansible/hosts file. However, when I replace that with the ec2 hostname, ansible complains with: ec2-xx-xxx-xxx-xx.comp…

---

## [Using ipaddr filter to compare ip address with\_items in group\_vars](https://forum.ansible.com/t/using-ipaddr-filter-to-compare-ip-address-with-items-in-group-vars/22844)

<div class="topic-metadata">

**Author:** [@Dayton\_Jones](https://forum.ansible.com/u/Dayton_Jones)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 4:17pm UTC](https://forum.ansible.com/t/using-ipaddr-filter-to-compare-ip-address-with-items-in-group-vars/22844 "2016-10-20T16:17:04Z")

</div>

Ok, given the following group\_vars: iloms: gateway: 10.224.64.1 mask: 255.255.248.0 gateway: 10.85.0.1 mask: 255.255.254.0 and an ip from a lookup: ilom\_ip: “{{ lookup(‘dig’, ‘mgmt-’ + ansible\_local.system\_fact…

---

## [Error: global name 'VirtuaMachineSizeTypes' is not defined](https://forum.ansible.com/t/error-global-name-virtuamachinesizetypes-is-not-defined/21965)

<div class="topic-metadata">

**Author:** [@Adnan\_Khan](https://forum.ansible.com/u/Adnan_Khan)\
**Replies:** 4\
**Last updated:** [October 20, 2016, 11:26am UTC](https://forum.ansible.com/t/error-global-name-virtuamachinesizetypes-is-not-defined/21965 "2016-10-20T11:26:39Z")

</div>

Hi, I;m getting the following error when trying to sun a very simple playbook on a new Ubuntu server. See log for more details below. Error: global name ‘VirtuaMachineSizeTypes’ is not defined ansiblecontrol@AnsibleCo…

---

## [run command on ansible host with sudo privilege.](https://forum.ansible.com/t/run-command-on-ansible-host-with-sudo-privilege/22796)

<div class="topic-metadata">

**Author:** [@Kevin\_Parent](https://forum.ansible.com/u/Kevin_Parent)\
**Replies:** 2\
**Last updated:** [October 20, 2016, 9:02am UTC](https://forum.ansible.com/t/run-command-on-ansible-host-with-sudo-privilege/22796 "2016-10-20T09:02:52Z")

</div>

Hi guys, I am using: hosts: 127.0.0.1 connection: local to execute command on the ansible host, I disabled privilege escalation because I would get an error message: “module\_stderr”: "sudo: effective uid is not 0, i…

---

## [how can we use ansible with inheritance](https://forum.ansible.com/t/how-can-we-use-ansible-with-inheritance/22841)

<div class="topic-metadata">

**Author:** [@Vipul\_Vadoliya](https://forum.ansible.com/u/Vipul_Vadoliya)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 8:53am UTC](https://forum.ansible.com/t/how-can-we-use-ansible-with-inheritance/22841 "2016-10-20T08:53:32Z")

</div>

Hi guys, i want to know that how can we use ansible with inheritance, example would be better.

---

## [Creating missing file for blockinfile edit](https://forum.ansible.com/t/creating-missing-file-for-blockinfile-edit/22825)

<div class="topic-metadata">

**Author:** [@Daniel\_Delin](https://forum.ansible.com/u/Daniel_Delin)\
**Replies:** 2\
**Last updated:** [October 20, 2016, 8:46am UTC](https://forum.ansible.com/t/creating-missing-file-for-blockinfile-edit/22825 "2016-10-20T08:46:59Z")

</div>

Hi, New to Ansible, evaluating it for replacing Cfengine. One feature we use frequently is the replacement of a block of text within a file, and the Ansible blockinfile module looks to be just that. However I run in t…

---

## [Dict - How to get correct values](https://forum.ansible.com/t/dict-how-to-get-correct-values/22839)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [October 20, 2016, 4:42am UTC](https://forum.ansible.com/t/dict-how-to-get-correct-values/22839 "2016-10-20T04:42:11Z")

</div>

That depends on the host configuration, the fqdn fact is gathered directly from the machine, which uses the python function socket.getfqdn(). This translates into a few system calls that will vary their response dependi…

---

## [become: yes user: root](https://forum.ansible.com/t/become-yes-user-root/22816)

<div class="topic-metadata">

**Author:** [@Duncan\_Klein](https://forum.ansible.com/u/Duncan_Klein)\
**Replies:** 1\
**Last updated:** [October 20, 2016, 4:34am UTC](https://forum.ansible.com/t/become-yes-user-root/22816 "2016-10-20T04:34:33Z")

</div>

Hi Two things, related. Firstly, I currently run my ansible playbook with --ask-sudo-pass, otherwise as some of my tasks include: become: yes user: root I get the error: fatal: \[localhost\]: FAILED! =\> {“changed”: f…

---

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

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

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