# Latest

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

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

**Page:** 651

---

## [Did I take this concept too far or is this a bug?](https://forum.ansible.com/t/did-i-take-this-concept-too-far-or-is-this-a-bug/24739)

<div class="topic-metadata">

**Author:** [@Ed\_Balduf](https://forum.ansible.com/u/Ed_Balduf)\
**Replies:** 0\
**Last updated:** [June 15, 2017, 5:42pm UTC](https://forum.ansible.com/t/did-i-take-this-concept-too-far-or-is-this-a-bug/24739 "2017-06-15T17:42:43Z")

</div>

I have a large playbook, which creates groups of VMs in a cloud and each VM needs some number of data volumes attached. I attempted to make it as modular as possible and started using roles and include\_roles in loops. To…

---

## [Prevent notify from restarting service if something else will](https://forum.ansible.com/t/prevent-notify-from-restarting-service-if-something-else-will/24729)

<div class="topic-metadata">

**Author:** [@Gilberto\_Valentin](https://forum.ansible.com/u/Gilberto_Valentin)\
**Replies:** 1\
**Last updated:** [June 15, 2017, 4:58pm UTC](https://forum.ansible.com/t/prevent-notify-from-restarting-service-if-something-else-will/24729 "2017-06-15T16:58:56Z")

</div>

I have the following playbook: \`

---

## [Send SMS using Twilio in ansible , getting below error](https://forum.ansible.com/t/send-sms-using-twilio-in-ansible-getting-below-error/24723)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 1\
**Last updated:** [June 15, 2017, 3:41pm UTC](https://forum.ansible.com/t/send-sms-using-twilio-in-ansible-getting-below-error/24723 "2017-06-15T15:41:53Z")

</div>

i have tried using the twilo still not able to get the output - hosts: localhost tasks: name: Send notification message via twilio twilio: msg: ‘Hello from Nishant via Ansible’ account\_sid: ACxxxxxxxxxxxxxxxxxxxxxx…

---

## [ansible assign variable from json array](https://forum.ansible.com/t/ansible-assign-variable-from-json-array/24733)

<div class="topic-metadata">

**Author:** [@omar\_sheriff](https://forum.ansible.com/u/omar_sheriff)\
**Replies:** 0\
**Last updated:** [June 15, 2017, 11:42am UTC](https://forum.ansible.com/t/ansible-assign-variable-from-json-array/24733 "2017-06-15T11:42:04Z")

</div>

my playbook and json file { “Tomcat”: { “Instance”: \[ { “name”: “devops”, “uid”: “jbosscfg”, “gid”: “staff”, “dept”: “tech”, “recipient”: “test@example.com”, “shutdown\_port”: 8005, “http\_port”: 8080, “https\_p…

---

## [Book recommendations?](https://forum.ansible.com/t/book-recommendations/24693)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 3\
**Last updated:** [June 15, 2017, 11:16am UTC](https://forum.ansible.com/t/book-recommendations/24693 "2017-06-15T11:16:38Z")

</div>

First post, woot! I’ve done Puppet before and have worked on Linux for a while. Am moving to Ansible and prefer paper books to e-books. What are good books to get if you know the very basics but don’t know the advanced …

---

## [how can we import terminal output of specific task/variable/message/debug in a excel sheet ?](https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727)

<div class="topic-metadata">

**Author:** [@Gurminder\_Singh](https://forum.ansible.com/u/Gurminder_Singh)\
**Replies:** 1\
**Last updated:** [June 15, 2017, 4:47am UTC](https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727 "2017-06-15T04:47:36Z")

</div>

how can we import terminal output of specific task/variable/message/debug in a excel sheet ?

---

## [Ansible (2.3.1) python module rds creation via boto3 works but get "msg": "MODULE FAILURE"](https://forum.ansible.com/t/ansible-2-3-1-python-module-rds-creation-via-boto3-works-but-get-msg-module-failure/24730)

<div class="topic-metadata">

**Author:** [@Chris\_McConnell](https://forum.ansible.com/u/Chris_McConnell)\
**Replies:** 0\
**Last updated:** [June 14, 2017, 11:27pm UTC](https://forum.ansible.com/t/ansible-2-3-1-python-module-rds-creation-via-boto3-works-but-get-msg-module-failure/24730 "2017-06-14T23:27:19Z")

</div>

Hello All, Disclaimer this is my first Ansible (python) module. I had posted previously in the ansible-project group and it was suggested to post here in the ansible-devel instead. I wrote a python modules for our int…

---

## [Ansible (ver 2.3.1) python module with boto3 successful but always get "msg": "MODULE FAILURE", "rc": 0](https://forum.ansible.com/t/ansible-ver-2-3-1-python-module-with-boto3-successful-but-always-get-msg-module-failure-rc-0/24675)

<div class="topic-metadata">

**Author:** [@Chris\_McConnell](https://forum.ansible.com/u/Chris_McConnell)\
**Replies:** 2\
**Last updated:** [June 14, 2017, 11:10pm UTC](https://forum.ansible.com/t/ansible-ver-2-3-1-python-module-with-boto3-successful-but-always-get-msg-module-failure-rc-0/24675 "2017-06-14T23:10:35Z")

</div>

Hello All, Disclaimer this is my first Ansible (python) module. I wrote for it for AWS RDS instance creation (because currently the ansible RDS module only provisions instances with magnetic media and we require gp2/ss…

---

## [Using with\_subelements, cannot reference dict item's key (v 2.2.0)](https://forum.ansible.com/t/using-with-subelements-cannot-reference-dict-items-key-v-2-2-0/21891)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 8\
**Last updated:** [June 14, 2017, 8:07pm UTC](https://forum.ansible.com/t/using-with-subelements-cannot-reference-dict-items-key-v-2-2-0/21891 "2017-06-14T20:07:42Z")

</div>

Here’s my version: ansible 2.2.0 (devel 87928ff56b) last updated 2016/06/22 13:32:23 (GMT -500) I’m not sure if this is a bug, or misplaced syntax. When I attempt to use a dictionary, referencing the key of the dictiona…

---

## [Module ec2\_ami\_find does not return data](https://forum.ansible.com/t/module-ec2-ami-find-does-not-return-data/24728)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 1\
**Last updated:** [June 14, 2017, 6:44pm UTC](https://forum.ansible.com/t/module-ec2-ami-find-does-not-return-data/24728 "2017-06-14T18:44:39Z")

</div>

I am able to spin up servers with the ‘ec2’ module. I’m running Ansible 2.3.1.0 from source on Ubuntu. ╰─➤ dpkg -l | grep -i boto 2 ↵ ii python-boto 2.40.0-1ubuntu1 all Python interface to Amazon’s Web Services - Pytho…

---

## [how to count success and failure of a task ?](https://forum.ansible.com/t/how-to-count-success-and-failure-of-a-task/24698)

<div class="topic-metadata">

**Author:** [@Gurminder\_Singh](https://forum.ansible.com/u/Gurminder_Singh)\
**Replies:** 4\
**Last updated:** [June 14, 2017, 4:02pm UTC](https://forum.ansible.com/t/how-to-count-success-and-failure-of-a-task/24698 "2017-06-14T16:02:37Z")

</div>

Hi Guys, I am verifying Cisco IOS image via this playbook, this runs great. However, I would like to add a count on successful and failure of the task I run. How can I achieve that? For eg. I have 100 devices to verify…

---

## [Ansible Contributor Summit 4 (Part of AnsibleFest 2017 London)](https://forum.ansible.com/t/ansible-contributor-summit-4-part-of-ansiblefest-2017-london/24502)

<div class="topic-metadata">

**Author:** [@gundalow](https://forum.ansible.com/u/gundalow)\
**Replies:** 2\
**Last updated:** [June 14, 2017, 3:21pm UTC](https://forum.ansible.com/t/ansible-contributor-summit-4-part-of-ansiblefest-2017-london/24502 "2017-06-14T15:21:40Z")

</div>

Hi, We are happy to announce our fourth Ansible Contributors Summit! AnsibleFest London (http://www.ansible.com/ansiblefest) will be on Thursday 22nd June, and the Contributor Summit will be held on Wednesday 21st June…

---

## [Splitting a variable length list into a list of lists](https://forum.ansible.com/t/splitting-a-variable-length-list-into-a-list-of-lists/24716)

<div class="topic-metadata">

**Author:** [@Ed1](https://forum.ansible.com/u/Ed1)\
**Replies:** 3\
**Last updated:** [June 14, 2017, 3:06pm UTC](https://forum.ansible.com/t/splitting-a-variable-length-list-into-a-list-of-lists/24716 "2017-06-14T15:06:27Z")

</div>

Greetings, I’d like to take a list (of varying size) and split it into a list of lists, where each sub-list is at most N elements. I’m not certain where to start on this one. Advice welcome. The background is that I’ve…

---

## [Enforcing multiple parameters in a Module](https://forum.ansible.com/t/enforcing-multiple-parameters-in-a-module/24719)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 1\
**Last updated:** [June 14, 2017, 2:53pm UTC](https://forum.ansible.com/t/enforcing-multiple-parameters-in-a-module/24719 "2017-06-14T14:53:46Z")

</div>

I’m developing a Module and am trying to work out how to ensure my module gets the parameters it needs. There are two separate parameters, lets call them A and B. My Module requires that either just A is supplied, or ju…

---

## [Getting an error message: ' Unable to open shell, rc:255'](https://forum.ansible.com/t/getting-an-error-message-unable-to-open-shell-rc-255/24726)

<div class="topic-metadata">

**Author:** [@Harsheen\_Khandpur](https://forum.ansible.com/u/Harsheen_Khandpur)\
**Replies:** 0\
**Last updated:** [June 14, 2017, 2:36pm UTC](https://forum.ansible.com/t/getting-an-error-message-unable-to-open-shell-rc-255/24726 "2017-06-14T14:36:07Z")

</div>

Hi , I am getting this error message and the logs are not showing anything different. I have used the ping and shell module separately to test the connection and it works. Please suggest a solution.

---

## [how to override entry in a dictionary](https://forum.ansible.com/t/how-to-override-entry-in-a-dictionary/24721)

<div class="topic-metadata">

**Author:** [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Replies:** 1\
**Last updated:** [June 14, 2017, 2:30pm UTC](https://forum.ansible.com/t/how-to-override-entry-in-a-dictionary/24721 "2017-06-14T14:30:17Z")

</div>

hi assuming a have some dictionary variables defined in some group\_vars location: level0: level1-a: somevalue: aaa someothervalue: 111 level1-b: somevalue: bbb someothervalue: 222 level1-c: somevalue: ccc some…

---

## [Ansible Role Variables as Defaults](https://forum.ansible.com/t/ansible-role-variables-as-defaults/24725)

<div class="topic-metadata">

**Author:** [@sdarwin](https://forum.ansible.com/u/sdarwin)\
**Replies:** 0\
**Last updated:** [June 14, 2017, 11:43am UTC](https://forum.ansible.com/t/ansible-role-variables-as-defaults/24725 "2017-06-14T11:43:11Z")

</div>

Hi, A problem I have often encountered when writing Ansible Roles is that the precedence level of “vars” prevents overriding them - in group\_vars, inventory, etc. Perhaps this can be a solution, a set\_fact task which c…

---

## [Unable to set hostnames with their Ip adresses in inventory file](https://forum.ansible.com/t/unable-to-set-hostnames-with-their-ip-adresses-in-inventory-file/24724)

<div class="topic-metadata">

**Author:** [@fatimazahra.bouhajba](https://forum.ansible.com/u/fatimazahra.bouhajba)\
**Replies:** 0\
**Last updated:** [June 14, 2017, 10:40am UTC](https://forum.ansible.com/t/unable-to-set-hostnames-with-their-ip-adresses-in-inventory-file/24724 "2017-06-14T10:40:18Z")

</div>

Hi All, I’m new to ansible. I’am trying to backup juniper routers configurations, i tried the following Yaml Script:

---

## [Ansible: Need to send the text message (SMS) via ansible using the “Nexmo”. Getting below error](https://forum.ansible.com/t/ansible-need-to-send-the-text-message-sms-via-ansible-using-the-nexmo-getting-below-error/24548)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 4\
**Last updated:** [June 14, 2017, 10:09am UTC](https://forum.ansible.com/t/ansible-need-to-send-the-text-message-sms-via-ansible-using-the-nexmo-getting-below-error/24548 "2017-06-14T10:09:09Z")

</div>

Below is the playbook which is used to send the messages to the registered numbers using nexmo. Please suggests what needs to be done to overcome this error - No which i used are registered one and same with the api inpu…

---

## [Ansible role: test/test.yml](https://forum.ansible.com/t/ansible-role-test-test-yml/24720)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 0\
**Last updated:** [June 14, 2017, 9:48am UTC](https://forum.ansible.com/t/ansible-role-test-test-yml/24720 "2017-06-14T09:48:21Z")

</div>

Hi, When initiating a role I noticed that there is a test folder being created with test.yml in it. When I run my roles in production environments, I always run roles by creating a playbook with the following contents: …

---

## [ec2 inventory script broke with 'module' object has no attribute 'boto3\_inventory\_conn'](https://forum.ansible.com/t/ec2-inventory-script-broke-with-module-object-has-no-attribute-boto3-inventory-conn/24655)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 5\
**Last updated:** [June 14, 2017, 1:55am UTC](https://forum.ansible.com/t/ec2-inventory-script-broke-with-module-object-has-no-attribute-boto3-inventory-conn/24655 "2017-06-14T01:55:14Z")

</div>

Hello, I am running Ubuntu 16.04 w/Ansible 2.0.0.2-2ubuntu1. /etc/ansible$ wget https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py /etc/ansible$ wget https://raw.githubusercontent.com/ans…

---

## [EFS module - subnet does not exist (nondefault VPC)](https://forum.ansible.com/t/efs-module-subnet-does-not-exist-nondefault-vpc/24717)

<div class="topic-metadata">

**Author:** [@Will\_Button](https://forum.ansible.com/u/Will_Button)\
**Replies:** 0\
**Last updated:** [June 13, 2017, 9:47pm UTC](https://forum.ansible.com/t/efs-module-subnet-does-not-exist-nondefault-vpc/24717 "2017-06-13T21:47:37Z")

</div>

ansible - v2.3.0 boto3 - v1.4.4 I’m trying to create an EFS share in a non-default VPC in AWS. name: Create EFS share efs: state: present name: “my\_happy\_efs\_share” tags: name: “my\_happy\_efs\_share” targets: sub…

---

## [Role dependencies not being installed automatically](https://forum.ansible.com/t/role-dependencies-not-being-installed-automatically/24714)

<div class="topic-metadata">

**Author:** [@Listing](https://forum.ansible.com/u/Listing)\
**Replies:** 4\
**Last updated:** [June 13, 2017, 5:41pm UTC](https://forum.ansible.com/t/role-dependencies-not-being-installed-automatically/24714 "2017-06-13T17:41:31Z")

</div>

Hi all, I have created a role and want some role dependencies to automatically be installed when running my own role. For instance, this is my dependency in ./meta/main.yml: \` dependencies: geerlingguy.php \` But w…

---

## [ConnectUnknownHostError](https://forum.ansible.com/t/connectunknownhosterror/24713)

<div class="topic-metadata">

**Author:** [@fatimazahra.bouhajba](https://forum.ansible.com/u/fatimazahra.bouhajba)\
**Replies:** 0\
**Last updated:** [June 13, 2017, 3:33pm UTC](https://forum.ansible.com/t/connectunknownhosterror/24713 "2017-06-13T15:33:35Z")

</div>

Hi All, I’m new to ansible. I’am trying to backup juniper routers configurations, i tried the following Yaml Script:

---

## [Register command with CloudStack modules](https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665)

<div class="topic-metadata">

**Author:** [@David\_Rose](https://forum.ansible.com/u/David_Rose)\
**Replies:** 1\
**Last updated:** [June 13, 2017, 3:20pm UTC](https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665 "2017-06-13T15:20:16Z")

</div>

Hello all! Can somone explain to me how ‘register’ works? I can not seem to use it with cs\_firewall module. I’m trying to understand how to register to a variable the details of a VM that has been instantiated by using …

---

## [Ansible 2.2 not respecting ssh.cfg](https://forum.ansible.com/t/ansible-2-2-not-respecting-ssh-cfg/24712)

<div class="topic-metadata">

**Author:** [@barrett](https://forum.ansible.com/u/barrett)\
**Replies:** 0\
**Last updated:** [June 13, 2017, 2:55pm UTC](https://forum.ansible.com/t/ansible-2-2-not-respecting-ssh-cfg/24712 "2017-06-13T14:55:36Z")

</div>

I am using a dynamic inventory. The build inventory returns hosts vars with the following inventory\_hostname= jenkins-0.build.vnet ansible\_host=y.y.y.y (There are private ips) I also have x.x.x.x = The public ip of t…

---

## [asa\_config issue](https://forum.ansible.com/t/asa-config-issue/24640)

<div class="topic-metadata">

**Author:** [@Michael\_Lee](https://forum.ansible.com/u/Michael_Lee)\
**Replies:** 1\
**Last updated:** [June 13, 2017, 12:53pm UTC](https://forum.ansible.com/t/asa-config-issue/24640 "2017-06-13T12:53:55Z")

</div>

Hi, There: I have problem to run ansible-playbook for Cisco ASA, and I manage sent user directly to enable mode by enable following command on ASA. aaa authorization exec authentication-server auto-enable The yaml fi…

---

## [unable to set spot block duration using wait: true and wait\_time in ansible](https://forum.ansible.com/t/unable-to-set-spot-block-duration-using-wait-true-and-wait-time-in-ansible/24710)

<div class="topic-metadata">

**Author:** [@Nilesh\_Devare](https://forum.ansible.com/u/Nilesh_Devare)\
**Replies:** 0\
**Last updated:** [June 13, 2017, 11:50am UTC](https://forum.ansible.com/t/unable-to-set-spot-block-duration-using-wait-true-and-wait-time-in-ansible/24710 "2017-06-13T11:50:29Z")

</div>

unable to set spot block duration using wait: true and wait\_time in ansible hosts: localhost connection: local gather\_facts: false tasks: name: launch spot instance ec2: spot\_price: 0.052 region: us-east-1 ke…

---

## [spot instance block duration  not working in ansible](https://forum.ansible.com/t/spot-instance-block-duration-not-working-in-ansible/24709)

<div class="topic-metadata">

**Author:** [@Nilesh\_Devare](https://forum.ansible.com/u/Nilesh_Devare)\
**Replies:** 0\
**Last updated:** [June 13, 2017, 11:46am UTC](https://forum.ansible.com/t/spot-instance-block-duration-not-working-in-ansible/24709 "2017-06-13T11:46:24Z")

</div>

Hi unable to create aws spot instance with new feature spot block duration we tried to use wait: true but its not working any help please find below yml hosts: localhost connection: local gather\_facts: false tasks: …

---

## [Pre-Bug report question](https://forum.ansible.com/t/pre-bug-report-question/24708)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 1\
**Last updated:** [June 13, 2017, 10:58am UTC](https://forum.ansible.com/t/pre-bug-report-question/24708 "2017-06-13T10:58:57Z")

</div>

In running an old playbook there were deprecation warnings about always\_on. \[DEPRECATION WARNING\]: always\_run is deprecated. Use check\_mode = no instead… There are two very small issues with this; the double periods at…

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

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