# Latest

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

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

**Page:** 668

---

## [Ansible host level interceptors](https://forum.ansible.com/t/ansible-host-level-interceptors/24217)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [April 18, 2017, 12:59pm UTC](https://forum.ansible.com/t/ansible-host-level-interceptors/24217 "2017-04-18T12:59:54Z")

</div>

Is there a way in Ansible to create a host level interceptor which does ‘something’ in case ansible-playbook command is invoked ? What i am trying to do here is to get informed periodically about ‘ansible-playbook’ comm…

---

## [ec2\_ami "msg": "InvalidParameterValue: Value (\['i-092axxxxxxxxxxd64'\]) for parameter instance is invalid. Expected: 'i-...'."](https://forum.ansible.com/t/ec2-ami-msg-invalidparametervalue-value-i-092axxxxxxxxxxd64-for-parameter-instance-is-invalid-expected-i/24236)

<div class="topic-metadata">

**Author:** [@sreenivas\_narayan](https://forum.ansible.com/u/sreenivas_narayan)\
**Replies:** 1\
**Last updated:** [April 18, 2017, 10:48am UTC](https://forum.ansible.com/t/ec2-ami-msg-invalidparametervalue-value-i-092axxxxxxxxxxd64-for-parameter-instance-is-invalid-expected-i/24236 "2017-04-18T10:48:12Z")

</div>

Hi Guys, I am using ec2 ami to create image of instance and getting error as above. Please help. ansible version: 2.2.1.0 name: Create ami from the image local\_action: module: ec2\_ami aws\_access\_key: “{{ xxxxxxxxx…

---

## [Ansible Errors when running Playbook](https://forum.ansible.com/t/ansible-errors-when-running-playbook/24232)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [April 18, 2017, 9:22am UTC](https://forum.ansible.com/t/ansible-errors-when-running-playbook/24232 "2017-04-18T09:22:56Z")

</div>

Getting the following errors - can anyone help? Traceback (most recent call last): File “/usr/bin/ansible-playbook”, line 41, in from multiprocessing import Lock File “/usr/lib64/python2.7/multiprocessing/init.py”, …

---

## [Can't i use prompt module in ansible tower?](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24234)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 0\
**Last updated:** [April 18, 2017, 8:19am UTC](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24234 "2017-04-18T08:19:05Z")

</div>

In Ansible Tower, I can’t take any user input by using module prompt But the module works fine in the Linux shell. Are there people who have the same problem like me? In addition, how do you use the newly added wo…

---

## [Seamless provisioning, install and configuration automation in Ansible](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214)

<div class="topic-metadata">

**Author:** [@Madhava\_Rao](https://forum.ansible.com/u/Madhava_Rao)\
**Replies:** 3\
**Last updated:** [April 18, 2017, 6:47am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214 "2017-04-18T06:47:55Z")

</div>

Hi, I’m automating a QA environment which involves provisioning VM’s on the cloud and installation of Kubernetes cluster. I’m able to install and configure Kubernetes on the VM’s after provisioning thanks to the Kuberne…

---

## [Problems with 'ansible-galaxy install' with Ansible 2.3.0.0 and Ubuntu 16.04](https://forum.ansible.com/t/problems-with-ansible-galaxy-install-with-ansible-2-3-0-0-and-ubuntu-16-04/24231)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 1\
**Last updated:** [April 17, 2017, 8:52pm UTC](https://forum.ansible.com/t/problems-with-ansible-galaxy-install-with-ansible-2-3-0-0-and-ubuntu-16-04/24231 "2017-04-17T20:52:46Z")

</div>

AFAICT, after Ansible 2.3.0.0 was released, when I run ‘ansible-galaxy install -r roles.yaml’ if any filename within the role begins with the name of the role, then that filename will be changed to remove the name of the…

---

## [ec2\_metric\_alarm Not Recognizing retries Parameter](https://forum.ansible.com/t/ec2-metric-alarm-not-recognizing-retries-parameter/24230)

<div class="topic-metadata">

**Author:** [@Jesse\_DeRose](https://forum.ansible.com/u/Jesse_DeRose)\
**Replies:** 0\
**Last updated:** [April 17, 2017, 8:44pm UTC](https://forum.ansible.com/t/ec2-metric-alarm-not-recognizing-retries-parameter/24230 "2017-04-17T20:44:38Z")

</div>

I’m currently using the ec2\_metric\_alarm module to create a CloudWatch alarm. Due to AWS API throttling, the task generally fails during its first try and must be retried with the “retries” parameter. My code looks somet…

---

## [wait\_for\_connection with 2.2 and/or wait\_for with a bastion host?](https://forum.ansible.com/t/wait-for-connection-with-2-2-and-or-wait-for-with-a-bastion-host/24229)

<div class="topic-metadata">

**Author:** [@Michael\_Artz](https://forum.ansible.com/u/Michael_Artz)\
**Replies:** 1\
**Last updated:** [April 17, 2017, 8:38pm UTC](https://forum.ansible.com/t/wait-for-connection-with-2-2-and-or-wait-for-with-a-bastion-host/24229 "2017-04-17T20:38:02Z")

</div>

I’m attempting to reboot a Linux host and wait for it to become available again. I’ve followed the ideas in both the docs (https://docs.ansible.com/ansible/wait\_for\_module.html) and https://github.com/ansible/ansible/iss…

---

## [Sending userdata via config\_drive doesn't seem to upload the userdata.](https://forum.ansible.com/t/sending-userdata-via-config-drive-doesnt-seem-to-upload-the-userdata/24228)

<div class="topic-metadata">

**Author:** [@Roy\_Hoerauf](https://forum.ansible.com/u/Roy_Hoerauf)\
**Replies:** 0\
**Last updated:** [April 17, 2017, 6:33pm UTC](https://forum.ansible.com/t/sending-userdata-via-config-drive-doesnt-seem-to-upload-the-userdata/24228 "2017-04-17T18:33:21Z")

</div>

I am attempting to create a new server and upload a json file as userdata. ansible-playbook indicates success but the instance doesn’t seem to see the userdata. However, it does work when I do this via nova boot or a hea…

---

## [Variable from EC2 Instance Tag](https://forum.ansible.com/t/variable-from-ec2-instance-tag/24227)

<div class="topic-metadata">

**Author:** [@Nate\_Ledet](https://forum.ansible.com/u/Nate_Ledet)\
**Replies:** 0\
**Last updated:** [April 17, 2017, 6:31pm UTC](https://forum.ansible.com/t/variable-from-ec2-instance-tag/24227 "2017-04-17T18:31:37Z")

</div>

When we create an EC2 instance, we then run playbooks on the EC2 instance to harden it and configure it the way we need to. Right now, I have a Python script with Boto3 retrieving tag information. I then pass the variab…

---

## [update to ansible appears to have broken required functionality - setup delegate\_facts](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618)

<div class="topic-metadata">

**Author:** [@Peter\_Heitman](https://forum.ansible.com/u/Peter_Heitman)\
**Replies:** 2\
**Last updated:** [April 17, 2017, 5:05pm UTC](https://forum.ansible.com/t/update-to-ansible-appears-to-have-broken-required-functionality-setup-delegate-facts/23618 "2017-04-17T17:05:42Z")

</div>

I am running ansible on CentOS 6.8. This morning I ran yum update and got updated to a new version Updating : ansible-2.2.1.0-1.el6.noarch Unfortunately this appears to have broken my working ansible script. In particu…

---

## [Install Cordova on mac machine using Ansible](https://forum.ansible.com/t/install-cordova-on-mac-machine-using-ansible/24225)

<div class="topic-metadata">

**Author:** [@resudhakar](https://forum.ansible.com/u/resudhakar)\
**Replies:** 0\
**Last updated:** [April 17, 2017, 10:07am UTC](https://forum.ansible.com/t/install-cordova-on-mac-machine-using-ansible/24225 "2017-04-17T10:07:46Z")

</div>

Hello Everyone, i’m trying to setup one of my mac machine using ansible playbook and i want to install cordova as part of dependencies. i have wrote a playbook and even tried to call some roles which are available in an…

---

## [Ansible DSC integration - coming to main release?](https://forum.ansible.com/t/ansible-dsc-integration-coming-to-main-release/24033)

<div class="topic-metadata">

**Author:** [@Sam1](https://forum.ansible.com/u/Sam1)\
**Replies:** 11\
**Last updated:** [April 17, 2017, 7:29am UTC](https://forum.ansible.com/t/ansible-dsc-integration-coming-to-main-release/24033 "2017-04-17T07:29:28Z")

</div>

Hi all, I have just started to look at using Ansible as the orchestration engine for DSC resources on Windows; Ansible modules for Windows are a bit too thin on the ground at the moment. I have found a couple of options…

---

## [merging aws security rules](https://forum.ansible.com/t/merging-aws-security-rules/24224)

<div class="topic-metadata">

**Author:** [@Matt\_Graham](https://forum.ansible.com/u/Matt_Graham)\
**Replies:** 0\
**Last updated:** [April 16, 2017, 10:50pm UTC](https://forum.ansible.com/t/merging-aws-security-rules/24224 "2017-04-16T22:50:43Z")

</div>

I think someone once may have posted something like this but Im trying to merge a list of base firewall rules (AWS) into a master\_rules for that role Example: all the roles listed in default/main.yml would merge in the …

---

## [Runtime Error from Juniper.junos role](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185)

<div class="topic-metadata">

**Author:** [@Daniel\_Ratcliffe](https://forum.ansible.com/u/Daniel_Ratcliffe)\
**Replies:** 2\
**Last updated:** [April 16, 2017, 10:24am UTC](https://forum.ansible.com/t/runtime-error-from-juniper-junos-role/24185 "2017-04-16T10:24:17Z")

</div>

Hello, I installed Ansible(2.2.1.0), the Juniper.junos(1.4.0) role from Ansible galaxy with junos-eznc (2.1.1). I tried to create a test playbook to obtain the version of my test switch as shown below.

---

## [aws ec2 instance Permission denied (publickey) after created](https://forum.ansible.com/t/aws-ec2-instance-permission-denied-publickey-after-created/24213)

<div class="topic-metadata">

**Author:** [@Li\_Zheng](https://forum.ansible.com/u/Li_Zheng)\
**Replies:** 2\
**Last updated:** [April 15, 2017, 7:18pm UTC](https://forum.ansible.com/t/aws-ec2-instance-permission-denied-publickey-after-created/24213 "2017-04-15T19:18:01Z")

</div>

I am following ec2 module for Ansible example on link http://docs.ansible.com/ansible/ec2\_module.html instance is created correctly. However, during Configure instance Stage I tried to install apache. It return an error …

---

## [rollback of tasks](https://forum.ansible.com/t/rollback-of-tasks/24223)

<div class="topic-metadata">

**Author:** [@Ted\_Elhourani](https://forum.ansible.com/u/Ted_Elhourani)\
**Replies:** 1\
**Last updated:** [April 15, 2017, 3:27pm UTC](https://forum.ansible.com/t/rollback-of-tasks/24223 "2017-04-15T15:27:31Z")

</div>

I am trying to find out the best practice for writing modules that are composed of multiple config steps. For example, a module when it executes with given input might go through a sequence of API requests, checking for…

---

## [Improved Windows Pipelining in 2.3](https://forum.ansible.com/t/improved-windows-pipelining-in-2-3/24222)

<div class="topic-metadata">

**Author:** [@John\_V](https://forum.ansible.com/u/John_V)\
**Replies:** 2\
**Last updated:** [April 15, 2017, 11:54am UTC](https://forum.ansible.com/t/improved-windows-pipelining-in-2-3/24222 "2017-04-15T11:54:14Z")

</div>

I was just wondering if you need to enable the improved pipelining for Window in 2.3 or is it enabled by default.

---

## [If I so a limit on a range of hosts "--limit boston\[0-20\]" what is inclusive/exclusive?](https://forum.ansible.com/t/if-i-so-a-limit-on-a-range-of-hosts-limit-boston-0-20-what-is-inclusive-exclusive/24221)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 1\
**Last updated:** [April 14, 2017, 4:41pm UTC](https://forum.ansible.com/t/if-i-so-a-limit-on-a-range-of-hosts-limit-boston-0-20-what-is-inclusive-exclusive/24221 "2017-04-14T16:41:40Z")

</div>

If I do “–limit boston\[0-20\]” does it deploy to boston01 to boston20?

---

## [When will Ansible 2.3 be released?](https://forum.ansible.com/t/when-will-ansible-2-3-be-released/23210)

<div class="topic-metadata">

**Author:** [@Tim3](https://forum.ansible.com/u/Tim3)\
**Replies:** 3\
**Last updated:** [April 14, 2017, 12:17pm UTC](https://forum.ansible.com/t/when-will-ansible-2-3-be-released/23210 "2017-04-14T12:17:21Z")

</div>

Hi, I need some module updates included in the next Ansible version (2.3). I searched for estimated release dates, but didn’t find anything. Has anybody an idea how long it could take or more general: how often does Ans…

---

## [Complex Loops and Conditionals (a.k.a Dude, where's my include + with\_items + when)](https://forum.ansible.com/t/complex-loops-and-conditionals-a-k-a-dude-wheres-my-include-with-items-when/14373)

<div class="topic-metadata">

**Author:** [@Christopher\_O\_Conne2](https://forum.ansible.com/u/Christopher_O_Conne2)\
**Replies:** 1\
**Last updated:** [April 14, 2017, 3:57am UTC](https://forum.ansible.com/t/complex-loops-and-conditionals-a-k-a-dude-wheres-my-include-with-items-when/14373 "2017-04-14T03:57:59Z")

</div>

Hello List, I understand that a decision has been made to remove include + with\_items, and I am not trying to directly revisit that decision. What I am trying to figure out is how to effectively replace such constructs …

---

## [Ansible tower new host ssh connection](https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216)

<div class="topic-metadata">

**Author:** [@Shruti\_Sharda](https://forum.ansible.com/u/Shruti_Sharda)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 4:47pm UTC](https://forum.ansible.com/t/ansible-tower-new-host-ssh-connection/24216 "2017-04-13T16:47:10Z")

</div>

Hi, I have recently started using Ansible tower for REST based API support for ansible. In order to manage new hosts in ansible we need to edit /etc/ansible/hosts file, add new host to it, and setup SSH connection with …

---

## [Bug with Custom Setup.ps1 File in New PPA Release](https://forum.ansible.com/t/bug-with-custom-setup-ps1-file-in-new-ppa-release/20206)

<div class="topic-metadata">

**Author:** [@Corwin\_Brown](https://forum.ansible.com/u/Corwin_Brown)\
**Replies:** 5\
**Last updated:** [April 13, 2017, 4:28pm UTC](https://forum.ansible.com/t/bug-with-custom-setup-ps1-file-in-new-ppa-release/20206 "2017-04-13T16:28:56Z")

</div>

Hey gang, I have a custom version of the ‘setup.ps1’ file in my ‘/etc/ansible/library’ (It allows me to gather facter facts on Windows). In 1.9 Ansible would correctly run ‘setup.py’ on Linux hosts, and my custom ‘libra…

---

## [Change vault password during a play](https://forum.ansible.com/t/change-vault-password-during-a-play/24219)

<div class="topic-metadata">

**Author:** [@Vaclav\_Doubek](https://forum.ansible.com/u/Vaclav_Doubek)\
**Replies:** 0\
**Last updated:** [April 13, 2017, 3:32pm UTC](https://forum.ansible.com/t/change-vault-password-during-a-play/24219 "2017-04-13T15:32:51Z")

</div>

Is there a way how to change vault password during a play? I would like to have a role for ansible server with all necessary setup including vault password setting. Just install Ansible, pull from Git and play - without …

---

## [usage of loop (with\_items), register and debug](https://forum.ansible.com/t/usage-of-loop-with-items-register-and-debug/24205)

<div class="topic-metadata">

**Author:** [@ravi\_katta](https://forum.ansible.com/u/ravi_katta)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 1:58pm UTC](https://forum.ansible.com/t/usage-of-loop-with-items-register-and-debug/24205 "2017-04-13T13:58:35Z")

</div>

Hello, checking if anyone have any insight or pointing me to a solution, about using loops with register and debug: I’m looking for a) just debug msg output whenever the mountpoint on remote server is not configured. …

---

## [ansible command throwing error while running mysql query with where clause](https://forum.ansible.com/t/ansible-command-throwing-error-while-running-mysql-query-with-where-clause/24198)

<div class="topic-metadata">

**Author:** [@anaparthi\_naresh\_bab](https://forum.ansible.com/u/anaparthi_naresh_bab)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 8:33am UTC](https://forum.ansible.com/t/ansible-command-throwing-error-while-running-mysql-query-with-where-clause/24198 "2017-04-13T08:33:01Z")

</div>

Tried running below query and throwing error. Looks issue with single/double quotes. Do we need to use any escape sequence like /" ansible EM7DBVIPTEST -m shell -a ‘silo\_mysql -e “update master.system\_settings\_backup se…

---

## [what to do with a command task which starts more scripts](https://forum.ansible.com/t/what-to-do-with-a-command-task-which-starts-more-scripts/24207)

<div class="topic-metadata">

**Author:** [@Rob\_Mokkink](https://forum.ansible.com/u/Rob_Mokkink)\
**Replies:** 3\
**Last updated:** [April 13, 2017, 7:52am UTC](https://forum.ansible.com/t/what-to-do-with-a-command-task-which-starts-more-scripts/24207 "2017-04-13T07:52:09Z")

</div>

Hi, I am facing an issue with a command task that executes a main ruby script(\`\`oreman-proxy-certs-generate), see https://theforeman.org/plugins/katello/3.3/installation/smart\_proxy.html. \`\` The command executes the r…

---

## [Problems restarting auditd on Centos7 - "Unable to restart service auditd: Failed to restart auditd.service: Operation refused"](https://forum.ansible.com/t/problems-restarting-auditd-on-centos7-unable-to-restart-service-auditd-failed-to-restart-auditd-service-operation-refused/24203)

<div class="topic-metadata">

**Author:** [@Mike\_Eriksson](https://forum.ansible.com/u/Mike_Eriksson)\
**Replies:** 3\
**Last updated:** [April 13, 2017, 7:23am UTC](https://forum.ansible.com/t/problems-restarting-auditd-on-centos7-unable-to-restart-service-auditd-failed-to-restart-auditd-service-operation-refused/24203 "2017-04-13T07:23:44Z")

</div>

Hi All, I’m currently trying to build a role to maintain auditd across our machines. We got a couple of different flavours of Linux as well as versions thereof running in our environment so I’m trying to get it to work …

---

## [how to turn off included notification when running ansible2 playbook](https://forum.ansible.com/t/how-to-turn-off-included-notification-when-running-ansible2-playbook/24208)

<div class="topic-metadata">

**Author:** [@tk\_yass](https://forum.ansible.com/u/tk_yass)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 5:50am UTC](https://forum.ansible.com/t/how-to-turn-off-included-notification-when-running-ansible2-playbook/24208 "2017-04-13T05:50:08Z")

</div>

Hi all, Whenever I run ansible 2.0 playbook it states al the included files in the list of running tasks. is there a way to make it less verbose and turn off this kind of statements?

---

## [Split a variable?](https://forum.ansible.com/t/split-a-variable/24204)

<div class="topic-metadata">

**Author:** [@ouafnico](https://forum.ansible.com/u/ouafnico)\
**Replies:** 1\
**Last updated:** [April 13, 2017, 5:36am UTC](https://forum.ansible.com/t/split-a-variable/24204 "2017-04-13T05:36:55Z")

</div>

Hi all, I’m searching how to split a variable with ansible. For example on my playbook I got the variable {{install\[‘myhostname’\]}}. Actually this viarable is hostname.domain. How can I split it to 2 variables, hostn…

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

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