# Latest

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

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

**Page:** 935

---

## [Ansible without inventory?](https://forum.ansible.com/t/ansible-without-inventory/13693)

<div class="topic-metadata">

**Author:** [@Matthew\_Bradley](https://forum.ansible.com/u/Matthew_Bradley)\
**Replies:** 3\
**Last updated:** [September 23, 2014, 11:19pm UTC](https://forum.ansible.com/t/ansible-without-inventory/13693 "2014-09-23T23:19:39Z")

</div>

How do I run Ansible without inventory? I want my playbook to provision a new Digital Ocean droplet and then write its details to a local inventory file. However every time I run my playbook with an empty hosts file it c…

---

## [virsh command issue with ansible. launching command within $()](https://forum.ansible.com/t/virsh-command-issue-with-ansible-launching-command-within/16305)

<div class="topic-metadata">

**Author:** [@Alex\_Dodson](https://forum.ansible.com/u/Alex_Dodson)\
**Replies:** 2\
**Last updated:** [September 23, 2014, 8:37pm UTC](https://forum.ansible.com/t/virsh-command-issue-with-ansible-launching-command-within/16305 "2014-09-23T20:37:53Z")

</div>

Hello All, I have a command to run. Here is a demo of it from the ceph doco sudo virsh secret-set-value --secret 457eb676-33da-42ec-9a8c-9293d545c337 --base64 $(cat client.cinder.key) when I try to shell: the command …

---

## [Does Ansible upload directories and files co-located with Dockerfile?](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307)

<div class="topic-metadata">

**Author:** [@Bk\_Lau](https://forum.ansible.com/u/Bk_Lau)\
**Replies:** 2\
**Last updated:** [September 23, 2014, 7:26pm UTC](https://forum.ansible.com/t/does-ansible-upload-directories-and-files-co-located-with-dockerfile/16307 "2014-09-23T19:26:43Z")

</div>

Hi: docker\_image module: Q: Does Ansible upload any directories and files co-located with the Dockerfile it is building the image for?. Thanks, BK

---

## [continual deployment with ansible... and managing SSH keys?](https://forum.ansible.com/t/continual-deployment-with-ansible-and-managing-ssh-keys/16304)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 6\
**Last updated:** [September 23, 2014, 5:48pm UTC](https://forum.ansible.com/t/continual-deployment-with-ansible-and-managing-ssh-keys/16304 "2014-09-23T17:48:58Z")

</div>

Right now I just manually SSH into a box in our cluster and run ansible. But I want to automate this… Ideally I could just bump the version number in my code when I want it released… and 2 minutes later it would be stag…

---

## [Restart Docker Container By Name?](https://forum.ansible.com/t/restart-docker-container-by-name/16147)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 2\
**Last updated:** [September 23, 2014, 5:34pm UTC](https://forum.ansible.com/t/restart-docker-container-by-name/16147 "2014-09-23T17:34:51Z")

</div>

Using the docker module in the master branch. I have one task that ensures a particular docker container is running with a given name. And then I have a handler that tries to restart that container (by name) when any con…

---

## [Passing variables as arguments to module from Ansible Playbook](https://forum.ansible.com/t/passing-variables-as-arguments-to-module-from-ansible-playbook/16302)

<div class="topic-metadata">

**Author:** [@Joseph\_Jenkins](https://forum.ansible.com/u/Joseph_Jenkins)\
**Replies:** 6\
**Last updated:** [September 23, 2014, 1:57am UTC](https://forum.ansible.com/t/passing-variables-as-arguments-to-module-from-ansible-playbook/16302 "2014-09-23T01:57:25Z")

</div>

I created an Ansible module in python that works correctly when I call it from the command line with: ansible routers -m ans\_check\_dis.py -a ‘user=someuser host=somehost password=somepassword’ -k Now I am trying to bui…

---

## [Upload SSL Certificate to AWS (for aws\_elb\_lb module to use)](https://forum.ansible.com/t/upload-ssl-certificate-to-aws-for-aws-elb-lb-module-to-use/16301)

<div class="topic-metadata">

**Author:** [@Sankalp\_Khare](https://forum.ansible.com/u/Sankalp_Khare)\
**Replies:** 1\
**Last updated:** [September 23, 2014, 1:44am UTC](https://forum.ansible.com/t/upload-ssl-certificate-to-aws-for-aws-elb-lb-module-to-use/16301 "2014-09-23T01:44:47Z")

</div>

Hi, Does ansible support uploading of .crt, .key (and optionally .chain) files into AWS? I would like to complete the whole cycle, i.e. upload a cert, and then refer to it in aws\_elb\_lb listeners. Thanks, Sankalp

---

## [zabbix\_maintenance minor improvements](https://forum.ansible.com/t/zabbix-maintenance-minor-improvements/16093)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 3\
**Last updated:** [September 22, 2014, 6:24pm UTC](https://forum.ansible.com/t/zabbix-maintenance-minor-improvements/16093 "2014-09-22T18:24:36Z")

</div>

Hi I just made a PR https://github.com/ansible/ansible/pull/8841 for a minor improvment in this new module. Since this module is in devel only, I wanted to ask if those changes could make it in final 1.8. I made 2 rath…

---

## [no tty](https://forum.ansible.com/t/no-tty/16279)

<div class="topic-metadata">

**Author:** [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Replies:** 5\
**Last updated:** [September 22, 2014, 5:24pm UTC](https://forum.ansible.com/t/no-tty/16279 "2014-09-22T17:24:57Z")

</div>

Hello! Anyone know if there is a way to specify no tty for a play? I saw on the list that someone had gotten around it by using screen, but I was wondering if there was a better way. Thanks! Guy

---

## [Condition before lookup](https://forum.ansible.com/t/condition-before-lookup/16298)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 7\
**Last updated:** [September 22, 2014, 5:23pm UTC](https://forum.ansible.com/t/condition-before-lookup/16298 "2014-09-22T17:23:02Z")

</div>

Hello list, I’m having a problem with adding a condition before a lookup plugin. A simplified example that everyone can reproduce is this: \` debug: msg=“This debug message should not be triggerd since some\_dict is n…

---

## [Rolling Restart an Elasticsearch Cluster with Ansible](https://forum.ansible.com/t/rolling-restart-an-elasticsearch-cluster-with-ansible/16261)

<div class="topic-metadata">

**Author:** [@Lance\_A\_Brown](https://forum.ansible.com/u/Lance_A_Brown)\
**Replies:** 8\
**Last updated:** [September 22, 2014, 4:23pm UTC](https://forum.ansible.com/t/rolling-restart-an-elasticsearch-cluster-with-ansible/16261 "2014-09-22T16:23:52Z")

</div>

I've come up with what I think is a safe way to rolling restart an Elasticsearch cluster using Ansible handlers. Why is this needed? Even if you use a serial setting to limit the number of nodes processed at one time, …

---

## [Push a file to a windows host](https://forum.ansible.com/t/push-a-file-to-a-windows-host/16295)

<div class="topic-metadata">

**Author:** [@jimr6007](https://forum.ansible.com/u/jimr6007)\
**Replies:** 1\
**Last updated:** [September 22, 2014, 12:12pm UTC](https://forum.ansible.com/t/push-a-file-to-a-windows-host/16295 "2014-09-22T12:12:05Z")

</div>

I’d like to push an msi file to my windows hosts and then install using the win\_msi module. How to get the file to the windows hosts? Sorry for not asking a more detailed question, I’m pretty much stumped… Can someone p…

---

## [module development - getting task/runner object](https://forum.ansible.com/t/module-development-getting-task-runner-object/16297)

<div class="topic-metadata">

**Author:** [@dawid.grzegorczyk](https://forum.ansible.com/u/dawid.grzegorczyk)\
**Replies:** 2\
**Last updated:** [September 22, 2014, 12:08pm UTC](https://forum.ansible.com/t/module-development-getting-task-runner-object/16297 "2014-09-22T12:08:56Z")

</div>

Hello, is there a way to get to current Task/Runner object from inside AnsibleModule? My playbook use case goes like this: name: My custom environment module myenvmodule: some\_param=some\_value environment: some\_env\_…

---

## [how to set timeout for shell command](https://forum.ansible.com/t/how-to-set-timeout-for-shell-command/16228)

<div class="topic-metadata">

**Author:** [@Jinsik\_Kim](https://forum.ansible.com/u/Jinsik_Kim)\
**Replies:** 2\
**Last updated:** [September 22, 2014, 8:52am UTC](https://forum.ansible.com/t/how-to-set-timeout-for-shell-command/16228 "2014-09-22T08:52:19Z")

</div>

Hi, I want to define response waiting time limit for all shell commands on ansible-playbook test.yml: … name: want to quit if it doesn’t get response in 5 secs shell: “sleep 100” name: want to quit if it doesn’…

---

## [Set variable based on group\_names](https://forum.ansible.com/t/set-variable-based-on-group-names/16264)

<div class="topic-metadata">

**Author:** [@Jacek](https://forum.ansible.com/u/Jacek)\
**Replies:** 4\
**Last updated:** [September 22, 2014, 7:50am UTC](https://forum.ansible.com/t/set-variable-based-on-group-names/16264 "2014-09-22T07:50:07Z")

</div>

Hi, Perhaps it’s an easy question but I cannot find a way to answer it myself. More in details – I have two groups in my inventory: clients (many hosts) and server (single host), and a template at the client which need…

---

## [Hi,freshman here](https://forum.ansible.com/t/hi-freshman-here/16293)

<div class="topic-metadata">

**Author:** [@Jerrold\_Gao](https://forum.ansible.com/u/Jerrold_Gao)\
**Replies:** 2\
**Last updated:** [September 21, 2014, 7:47pm UTC](https://forum.ansible.com/t/hi-freshman-here/16293 "2014-09-21T19:47:27Z")

</div>

Hi, everyone. I am Yiru Gao or you can call me Jerrold. I am trying to catch up the current progress of this software. Where shall I start? Can anyone give me a direction? Thanks.

---

## [Is it possible to know if something has changed?](https://forum.ansible.com/t/is-it-possible-to-know-if-something-has-changed/16276)

<div class="topic-metadata">

**Author:** [@Olivier\_Javaux](https://forum.ansible.com/u/Olivier_Javaux)\
**Replies:** 5\
**Last updated:** [September 21, 2014, 7:35pm UTC](https://forum.ansible.com/t/is-it-possible-to-know-if-something-has-changed/16276 "2014-09-21T19:35:18Z")

</div>

I would like to know if something has changed in order to do something. Is there a global variable somewhere with the number of changed for the host? More details: I am doing a lot of things on a system: modify system …

---

## [Split string by newline and use with with\_items](https://forum.ansible.com/t/split-string-by-newline-and-use-with-with-items/15063)

<div class="topic-metadata">

**Author:** [@Max\_Romanovsky](https://forum.ansible.com/u/Max_Romanovsky)\
**Replies:** 3\
**Last updated:** [September 20, 2014, 8:30pm UTC](https://forum.ansible.com/t/split-string-by-newline-and-use-with-with-items/15063 "2014-09-20T20:30:22Z")

</div>

Consider the following situation. It is necessary to execute arbitrary commands during deployment. Deployment is done using parameterized job in Jenkins CI. Multiline parameter contains commands separated by newline. …

---

## [Roles install/uninstall process best practices](https://forum.ansible.com/t/roles-install-uninstall-process-best-practices/16177)

<div class="topic-metadata">

**Author:** [@Trevor\_G](https://forum.ansible.com/u/Trevor_G)\
**Replies:** 4\
**Last updated:** [September 19, 2014, 11:06pm UTC](https://forum.ansible.com/t/roles-install-uninstall-process-best-practices/16177 "2014-09-19T23:06:05Z")

</div>

It’s great that I can easily pull in different roles into my playbooks. By default, anything under tasks/main will get run (usually as an installation process). I was wondering if there were any best practices for packag…

---

## [regex\_replace returning '\\u0001'](https://forum.ansible.com/t/regex-replace-returning-u0001/16290)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 8:19pm UTC](https://forum.ansible.com/t/regex-replace-returning-u0001/16290 "2014-09-19T20:19:51Z")

</div>

$ ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hello! This is driving me bonkers . . . can anyone see what I’m doing wrong here? Setting a var, which i…

---

## [Best way to clean hosts after changing roles?](https://forum.ansible.com/t/best-way-to-clean-hosts-after-changing-roles/16283)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 3:58pm UTC](https://forum.ansible.com/t/best-way-to-clean-hosts-after-changing-roles/16283 "2014-09-19T15:58:29Z")

</div>

Let’s say I have a role called ‘foo’ and that runs a playbook which installs a debian package ‘foo’. If I remove host0 from the foo role, I need it to remove the debian package foo and stop the foo daemon. How is that …

---

## [Ready to give back](https://forum.ansible.com/t/ready-to-give-back/16281)

<div class="topic-metadata">

**Author:** [@Jillian\_Karner](https://forum.ansible.com/u/Jillian_Karner)\
**Replies:** 3\
**Last updated:** [September 19, 2014, 3:02pm UTC](https://forum.ansible.com/t/ready-to-give-back/16281 "2014-09-19T15:02:06Z")

</div>

I’ve been working with Ansible for about four months now and I finally have some time to contribute back to the community. Where would be a good place to start? I’ve looked at a variety of the Issues listed on github and…

---

## [Docker base image from existing Ansible roles](https://forum.ansible.com/t/docker-base-image-from-existing-ansible-roles/16282)

<div class="topic-metadata">

**Author:** [@Justin\_Scott](https://forum.ansible.com/u/Justin_Scott)\
**Replies:** 3\
**Last updated:** [September 19, 2014, 2:20pm UTC](https://forum.ansible.com/t/docker-base-image-from-existing-ansible-roles/16282 "2014-09-19T14:20:42Z")

</div>

Hey, We have a robust Ansible suite for deploying many of our servers and we’re running into trouble using Drone because of its use of Docker. Ansible has support for Docker insofar that it can create and manage Docker …

---

## [Ansible Tower cookie session expiration](https://forum.ansible.com/t/ansible-tower-cookie-session-expiration/16280)

<div class="topic-metadata">

**Author:** [@Diego\_Sainz](https://forum.ansible.com/u/Diego_Sainz)\
**Replies:** 1\
**Last updated:** [September 19, 2014, 2:01pm UTC](https://forum.ansible.com/t/ansible-tower-cookie-session-expiration/16280 "2014-09-19T14:01:35Z")

</div>

Hi, We are trying out Ansible Tower (latest version) and are looking for ways to avoid keep entering the user/password many times per day. We would like to extend the expiration time for the user sessions so we don’t ge…

---

## [RFC: post\_tasks in roles](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 1:43pm UTC](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285 "2014-09-19T13:43:01Z")

</div>

Hi I would like to open a discussion about extending the role functionality with a directory similar to /task/main.yml e.g. /post\_tasks/main.yml for post\_task execution. I one of my roles I wanted to implement health c…

---

## [selinux: state=disabled](https://forum.ansible.com/t/selinux-state-disabled/16271)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 11:55am UTC](https://forum.ansible.com/t/selinux-state-disabled/16271 "2014-09-19T11:55:08Z")

</div>

Currently if SELinux is enabled on the system and if you run a task: \` selinux: state=disabled \` it will set SELinux as disabled in the conf file, but SELinux itself will still be enabled (in enforcing by default) u…

---

## [How-to 'vars'?](https://forum.ansible.com/t/how-to-vars/16272)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 4\
**Last updated:** [September 19, 2014, 7:07am UTC](https://forum.ansible.com/t/how-to-vars/16272 "2014-09-19T07:07:17Z")

</div>

Hi, Given a wide-range of distribution versions how does one abstract away the differences? For example I have to deal with all Ubuntu versions between 10.04 =\> 14.04, there are differences such as ‘/etc/dhcp’ vs ‘/etc…

---

## [Lookup failing from file](https://forum.ansible.com/t/lookup-failing-from-file/16256)

<div class="topic-metadata">

**Author:** [@Anuj\_Agrawal](https://forum.ansible.com/u/Anuj_Agrawal)\
**Replies:** 7\
**Last updated:** [September 19, 2014, 6:02am UTC](https://forum.ansible.com/t/lookup-failing-from-file/16256 "2014-09-19T06:02:44Z")

</div>

Running a playbook where contents are read from a file. It is an XML file. Playbook yaml:

---

## ['when not' conditional?](https://forum.ansible.com/t/when-not-conditional/16263)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 2\
**Last updated:** [September 19, 2014, 5:45am UTC](https://forum.ansible.com/t/when-not-conditional/16263 "2014-09-19T05:45:03Z")

</div>

I’d like to have SSL certificates uploaded and configured according to hostname, ie. host1 gets the cert and key for host1, etc. It seems like the easiest way is to set a variable to equal ansible\_hostname, but I’d need…

---

## [Proper way to do a yum update](https://forum.ansible.com/t/proper-way-to-do-a-yum-update/11767)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 11\
**Last updated:** [September 19, 2014, 5:22am UTC](https://forum.ansible.com/t/proper-way-to-do-a-yum-update/11767 "2014-09-19T05:22:58Z")

</div>

Hi, What is the proper way to do this? action: yum name=update state=latest Do I need to use the command action? Thanks, James

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

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