# Latest

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

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

**Page:** 879

---

## [How to get vars to evaluate inside json strings?](https://forum.ansible.com/t/how-to-get-vars-to-evaluate-inside-json-strings/17985)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 6:36pm UTC](https://forum.ansible.com/t/how-to-get-vars-to-evaluate-inside-json-strings/17985 "2015-04-15T18:36:13Z")

</div>

See http://pastebin.com/QWSu641w for the testing playbook I’ve been using. Basically, I have several vars that I need to place inside a json string. The output should look something like: {“indices”: “testlogstash-201…

---

## [Use rax module to create a server with extra\_create\_args / build\_config](https://forum.ansible.com/t/use-rax-module-to-create-a-server-with-extra-create-args-build-config/17973)

<div class="topic-metadata">

**Author:** [@danrough](https://forum.ansible.com/u/danrough)\
**Replies:** 3\
**Last updated:** [April 15, 2015, 4:59pm UTC](https://forum.ansible.com/t/use-rax-module-to-create-a-server-with-extra-create-args-build-config/17973 "2015-04-15T16:59:17Z")

</div>

Hello, I’d like to be able to create servers at Rackspace which are free from any packages other than the ones installed by default as part of a Debian installation. In response to the support ticket I raised, I was poi…

---

## [Accessing server inventory list while deploying to clients](https://forum.ansible.com/t/accessing-server-inventory-list-while-deploying-to-clients/17978)

<div class="topic-metadata">

**Author:** [@ajres](https://forum.ansible.com/u/ajres)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 2:04pm UTC](https://forum.ansible.com/t/accessing-server-inventory-list-while-deploying-to-clients/17978 "2015-04-15T14:04:35Z")

</div>

I have a playbook that configures multiple client machines. Each client needs to be configured with a unique server IP address from the servers in a cluster. The mapping from client to server is one-to-one, all the hos…

---

## [Managing users playbook -- could use a clever idea](https://forum.ansible.com/t/managing-users-playbook-could-use-a-clever-idea/17982)

<div class="topic-metadata">

**Author:** [@Rishi](https://forum.ansible.com/u/Rishi)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 1:50pm UTC](https://forum.ansible.com/t/managing-users-playbook-could-use-a-clever-idea/17982 "2015-04-15T13:50:56Z")

</div>

I have a role that manages my users on my boxes, problem I am having is I have two tasks that modify the “groups” properties of users. This is obviously stupid since they keep changing each other, giving my false change …

---

## [route53 alias records](https://forum.ansible.com/t/route53-alias-records/17981)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 1\
**Last updated:** [April 15, 2015, 8:17am UTC](https://forum.ansible.com/t/route53-alias-records/17981 "2015-04-15T08:17:59Z")

</div>

Hi, When I add an ALIAS record in route53 through the ansible module a . is appended to the end of the value which is wrong. For example: mydomain.com. A ALIAS dualstack.mydomain.com. The dot at the end of ‘dualstack…

---

## [Ansible openstack deploy fails with mysql error](https://forum.ansible.com/t/ansible-openstack-deploy-fails-with-mysql-error/13138)

<div class="topic-metadata">

**Author:** [@Michael\_Aldridge](https://forum.ansible.com/u/Michael_Aldridge)\
**Replies:** 8\
**Last updated:** [April 15, 2015, 7:03am UTC](https://forum.ansible.com/t/ansible-openstack-deploy-fails-with-mysql-error/13138 "2015-04-15T07:03:11Z")

</div>

I have been trying to install with the scripts from the webinar a few days ago. Consistently the install fails on the following step: TASK: \[create the external network\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fata…

---

## [Orchestration between OS Provisioning and Configuration Management (Barrier Behavior between Cobbler and Ansible)](https://forum.ansible.com/t/orchestration-between-os-provisioning-and-configuration-management-barrier-behavior-between-cobbler-and-ansible/15070)

<div class="topic-metadata">

**Author:** [@Sean](https://forum.ansible.com/u/Sean)\
**Replies:** 3\
**Last updated:** [April 15, 2015, 6:28am UTC](https://forum.ansible.com/t/orchestration-between-os-provisioning-and-configuration-management-barrier-behavior-between-cobbler-and-ansible/15070 "2015-04-15T06:28:47Z")

</div>

I configure Cobblerd in a certain way to install OS onto my bare-metal machines. Say I configured 5 systems (therefore intend to install 5 machines). Then I would like to configure the following inventory (suppose Cobbl…

---

## [Retrieving list of available VPCs and available Subnets via AWS dynamic inventory](https://forum.ansible.com/t/retrieving-list-of-available-vpcs-and-available-subnets-via-aws-dynamic-inventory/17980)

<div class="topic-metadata">

**Author:** [@Rihards](https://forum.ansible.com/u/Rihards)\
**Replies:** 0\
**Last updated:** [April 15, 2015, 6:24am UTC](https://forum.ansible.com/t/retrieving-list-of-available-vpcs-and-available-subnets-via-aws-dynamic-inventory/17980 "2015-04-15T06:24:21Z")

</div>

I have VPC with number of subnets in it which (vpc and subnets) are tagged in a particular way what would give me a way to retrieve a particular subnet that I want to use to launch ec2 instance (using ansible ec2 module)…

---

## [BDD Testing For Ansible](https://forum.ansible.com/t/bdd-testing-for-ansible/17954)

<div class="topic-metadata">

**Author:** [@Sharan](https://forum.ansible.com/u/Sharan)\
**Replies:** 2\
**Last updated:** [April 15, 2015, 12:48am UTC](https://forum.ansible.com/t/bdd-testing-for-ansible/17954 "2015-04-15T00:48:44Z")

</div>

Hey all. Recently, I started using Ansible in one of my projects. And I should say that, Ansible is easy to understand, get a firm grip and get things rolling up easily. One thing that slowed me down was that, after I wr…

---

## [How to avoid handlers to get triggered when using --check](https://forum.ansible.com/t/how-to-avoid-handlers-to-get-triggered-when-using-check/17950)

<div class="topic-metadata">

**Author:** [@Manoj](https://forum.ansible.com/u/Manoj)\
**Replies:** 1\
**Last updated:** [April 14, 2015, 11:38pm UTC](https://forum.ansible.com/t/how-to-avoid-handlers-to-get-triggered-when-using-check/17950 "2015-04-14T23:38:17Z")

</div>

Hi, Since Ansible doesn’t allow to tag and skip handlers, how can I skip checking the handler init script exists when I run the playbook with --check? For example name: restart webserver service: name: httpd state…

---

## [Failed to parse: \[sudo\] password error](https://forum.ansible.com/t/failed-to-parse-sudo-password-error/17977)

<div class="topic-metadata">

**Author:** [@Fang\_Lin](https://forum.ansible.com/u/Fang_Lin)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 11:13pm UTC](https://forum.ansible.com/t/failed-to-parse-sudo-password-error/17977 "2015-04-14T23:13:01Z")

</div>

I have a specific task run “shell: sudo script” in a playbook, where the script on the remote host must be executed via sudo but we can’t access the shell as root. The task is specified as the following: shell: sudo /us…

---

## [ansible refuse to execute command with "-p"](https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970)

<div class="topic-metadata">

**Author:** [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Replies:** 1\
**Last updated:** [April 14, 2015, 10:00pm UTC](https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970 "2015-04-14T22:00:46Z")

</div>

Hi, My host machine is windows 8.1 and the guest is widows 2012 R2 I have simple command that I run with power shell with ansible “dsmcl -p 123456”. I get the flowing error: Traceback (most recent call last): File “…

---

## [Merging/extending List of Dicts?](https://forum.ansible.com/t/merging-extending-list-of-dicts/17872)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 3\
**Last updated:** [April 14, 2015, 4:23pm UTC](https://forum.ansible.com/t/merging-extending-list-of-dicts/17872 "2015-04-14T16:23:01Z")

</div>

Hi guys, I’m trying to configure an EC2 Security Group using Ansible, since all of my security groups contain a set of ‘base rules’, I’m trying to split that portion out to avoid duplication. To do so I have: base\_rul…

---

## [ec2\_vpc runnable without subnets specified?](https://forum.ansible.com/t/ec2-vpc-runnable-without-subnets-specified/17976)

<div class="topic-metadata">

**Author:** [@Niko\_Felger](https://forum.ansible.com/u/Niko_Felger)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 3:02pm UTC](https://forum.ansible.com/t/ec2-vpc-runnable-without-subnets-specified/17976 "2015-04-14T15:02:15Z")

</div>

Hi there, I’ve run into a small problem with the ec2\_vpc module. It looks like it should be possible to run the ec2\_vpc module without specifying subnets. This useful e.g. when you want to: (1) first define the subne…

---

## [Variable substitution in task meta data](https://forum.ansible.com/t/variable-substitution-in-task-meta-data/17975)

<div class="topic-metadata">

**Author:** [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 1:48pm UTC](https://forum.ansible.com/t/variable-substitution-in-task-meta-data/17975 "2015-04-14T13:48:42Z")

</div>

Hi list, my goal: A role which allows to configure various aspects how tasks should behave, e.g. how to use the become subsystem, especially for local\_action tasks. Ultimate goal: Configure a few variables in invento…

---

## [Preventing a deploy of tomcat from running again.](https://forum.ansible.com/t/preventing-a-deploy-of-tomcat-from-running-again/17972)

<div class="topic-metadata">

**Author:** [@Chris\_Brooks](https://forum.ansible.com/u/Chris_Brooks)\
**Replies:** 1\
**Last updated:** [April 14, 2015, 12:23pm UTC](https://forum.ansible.com/t/preventing-a-deploy-of-tomcat-from-running-again/17972 "2015-04-14T12:23:06Z")

</div>

Hiya, I’ve had a google for this but I can’t find anything which answer my question… I have a playbook which deploys tomcat via a zip file, this is the standard tomcat file from their website. it then takes a template…

---

## [Random SSH connection reset during EC2 provisionning](https://forum.ansible.com/t/random-ssh-connection-reset-during-ec2-provisionning/17929)

<div class="topic-metadata">

**Author:** [@Warren\_Seine](https://forum.ansible.com/u/Warren_Seine)\
**Replies:** 2\
**Last updated:** [April 14, 2015, 12:14pm UTC](https://forum.ansible.com/t/random-ssh-connection-reset-during-ec2-provisionning/17929 "2015-04-14T12:14:25Z")

</div>

Hi, I use Ansible to provision Ubuntu 14.04 machines. Some machines are at a dedicated provider’s, some are EC2 instances. Provisionning works great for the first ones, but sometimes fails with EC2 VMs. The failure is t…

---

## [apt-get update fails](https://forum.ansible.com/t/apt-get-update-fails/17888)

<div class="topic-metadata">

**Author:** [@Tom\_Gertin](https://forum.ansible.com/u/Tom_Gertin)\
**Replies:** 2\
**Last updated:** [April 14, 2015, 11:03am UTC](https://forum.ansible.com/t/apt-get-update-fails/17888 "2015-04-14T11:03:52Z")

</div>

I am trying to run an 'apt-get update' command in my Ansible playbook but it is failing everytime. I am using the 'apt: update\_cache=yes' command found here: http://docs.ansible.com/apt\_module.html It returns the foll…

---

## [How to force ansible to restart apache only if there has been a change in configuration ( multiple instances in vars + with\_items )](https://forum.ansible.com/t/how-to-force-ansible-to-restart-apache-only-if-there-has-been-a-change-in-configuration-multiple-instances-in-vars-with-items/17971)

<div class="topic-metadata">

**Author:** [@kzabkowski](https://forum.ansible.com/u/kzabkowski)\
**Replies:** 0\
**Last updated:** [April 14, 2015, 6:57am UTC](https://forum.ansible.com/t/how-to-force-ansible-to-restart-apache-only-if-there-has-been-a-change-in-configuration-multiple-instances-in-vars-with-items/17971 "2015-04-14T06:57:39Z")

</div>

Hi, I have problem with my role in ansible. Everything works fine until task call handler. If I changed configuration file (template) only for a single instance of apache, all instances are restarted. How can I force ans…

---

## [ec2.ini instance\_filters with AND condition](https://forum.ansible.com/t/ec2-ini-instance-filters-with-and-condition/17969)

<div class="topic-metadata">

**Author:** [@Michele\_Viviani](https://forum.ansible.com/u/Michele_Viviani)\
**Replies:** 1\
**Last updated:** [April 14, 2015, 12:06am UTC](https://forum.ansible.com/t/ec2-ini-instance-filters-with-and-condition/17969 "2015-04-14T00:06:05Z")

</div>

All, I’m newbie in ansible and I wuold like to create an AWS dynamic inventory with some filters on. in the doc I see that we can specify more filters condition, separated by comma, but that will work in OR condition.

---

## [Ansible 1.9.0.1 - alternatives module seems broken](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 3\
**Last updated:** [April 13, 2015, 7:18pm UTC](https://forum.ansible.com/t/ansible-1-9-0-1-alternatives-module-seems-broken/17956 "2015-04-13T19:18:42Z")

</div>

Just installed the latest version of Ansible through pip, since the upgrade the ‘alternatives’ module no longer seems to install a link if it doesn’t exist yet instead it just reports that there are no existing alternati…

---

## [CloudStack integration status](https://forum.ansible.com/t/cloudstack-integration-status/17961)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 3\
**Last updated:** [April 13, 2015, 6:19pm UTC](https://forum.ansible.com/t/cloudstack-integration-status/17961 "2015-04-13T18:19:02Z")

</div>

Hello everyone I just wanted to keep you updated on my CloudStack Ansible integration work. New schema name for CloudStack modules First of all thank you @bcoca for the merge of the first 3 modules! I get some positi…

---

## [When statement doesn't get evaluated correctly with include](https://forum.ansible.com/t/when-statement-doesnt-get-evaluated-correctly-with-include/17968)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 0\
**Last updated:** [April 13, 2015, 5:25pm UTC](https://forum.ansible.com/t/when-statement-doesnt-get-evaluated-correctly-with-include/17968 "2015-04-13T17:25:45Z")

</div>

when statement doesn’t get evaluated properly and always returns true when used in combination of include statement to reproduce the error site.yml \`

---

## [Ansible Fire & Forget playbooks](https://forum.ansible.com/t/ansible-fire-forget-playbooks/17967)

<div class="topic-metadata">

**Author:** [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Replies:** 0\
**Last updated:** [April 13, 2015, 5:11pm UTC](https://forum.ansible.com/t/ansible-fire-forget-playbooks/17967 "2015-04-13T17:11:07Z")

</div>

Hi, I am trying to figure out if there is a method using which we can have fire & forget applied to a complete playbook. Also if there is a way to parallelize multiple playbooks which are included using the include sta…

---

## [FAILED =\> module whoami not found in configured module paths](https://forum.ansible.com/t/failed-module-whoami-not-found-in-configured-module-paths/17963)

<div class="topic-metadata">

**Author:** [@Raj\_Sharma](https://forum.ansible.com/u/Raj_Sharma)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 2:34pm UTC](https://forum.ansible.com/t/failed-module-whoami-not-found-in-configured-module-paths/17963 "2015-04-13T14:34:55Z")

</div>

Hi I am new to ansible and trying to run simple “whoami” command on remote host and getting the error ansible all -m “whoami” FAILED =\> module whoami not found in configured module paths Would appreciate if somebody …

---

## [Compiling a Playbook or resolving variables](https://forum.ansible.com/t/compiling-a-playbook-or-resolving-variables/17958)

<div class="topic-metadata">

**Author:** [@Matt\_Ford](https://forum.ansible.com/u/Matt_Ford)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 1:12pm UTC](https://forum.ansible.com/t/compiling-a-playbook-or-resolving-variables/17958 "2015-04-13T13:12:07Z")

</div>

Hi, I would like to be able to sort-of compile a playbook. Ideally I’d like to be able to see my playbook with all variables fully resolved (useful for some tools we are using to reason about Ansible). For example; som…

---

## [ansible shell module outputs is different output while running on CentOS 5.6 and CentOS 6.5](https://forum.ansible.com/t/ansible-shell-module-outputs-is-different-output-while-running-on-centos-5-6-and-centos-6-5/17965)

<div class="topic-metadata">

**Author:** [@Anand\_Sharma](https://forum.ansible.com/u/Anand_Sharma)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 12:30pm UTC](https://forum.ansible.com/t/ansible-shell-module-outputs-is-different-output-while-running-on-centos-5-6-and-centos-6-5/17965 "2015-04-13T12:30:13Z")

</div>

All: Have been playing with Ansible for less than a week and got stumped by this. Ansible host: MacOX 10.10.3 Ansible Version: ansible 1.9.0.1 configured module search path = None I am testing with two brand new C…

---

## [howto start and reuse ssh for pre ansible python provisioning script](https://forum.ansible.com/t/howto-start-and-reuse-ssh-for-pre-ansible-python-provisioning-script/17966)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [April 13, 2015, 1:42am UTC](https://forum.ansible.com/t/howto-start-and-reuse-ssh-for-pre-ansible-python-provisioning-script/17966 "2015-04-13T01:42:29Z")

</div>

Making a script that setups guest machines on proxmox, then gives inventory to ansible. The problem is everything is done with a call to subprocess.check\_output … ‘ssh {proxmoxhost} …’ its been solid, but also seems kind…

---

## [replace module help](https://forum.ansible.com/t/replace-module-help/17930)

<div class="topic-metadata">

**Author:** [@Roy](https://forum.ansible.com/u/Roy)\
**Replies:** 2\
**Last updated:** [April 12, 2015, 10:08am UTC](https://forum.ansible.com/t/replace-module-help/17930 "2015-04-12T10:08:20Z")

</div>

Hi I am new to Ansible and writing my first playbook I want to update /etc/fstab UUID=f2550ab4-36cb-4ff0-8afa-9e7839f7ce9f / ext4 defaults 1 1 UUID=988c830a-6d78-49f9-9db3-e8617f6dd8d0 /boot ext4 defaults 1 2 UUID=4a…

---

## [Best practice in EC2 project tree](https://forum.ansible.com/t/best-practice-in-ec2-project-tree/17960)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 0\
**Last updated:** [April 12, 2015, 9:17am UTC](https://forum.ansible.com/t/best-practice-in-ec2-project-tree/17960 "2015-04-12T09:17:53Z")

</div>

I have a project which includes setting up 5 different servers on EC2, each with 2-3 roles. So far, I created 3 file for each server: X-provisioning, which create the EC2 instance using module: ec2 X-prepare, whic…

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

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