# Latest

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

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

**Page:** 814

---

## [Problem with executing playbook with fetch command.](https://forum.ansible.com/t/problem-with-executing-playbook-with-fetch-command/19877)

<div class="topic-metadata">

**Author:** [@Marcel\_Golus](https://forum.ansible.com/u/Marcel_Golus)\
**Replies:** 3\
**Last updated:** [December 2, 2015, 7:56am UTC](https://forum.ansible.com/t/problem-with-executing-playbook-with-fetch-command/19877 "2015-12-02T07:56:36Z")

</div>

Hello guys! I want to share with you my problem which is pretty strange in my point of view. My playbook looks as follows: name:fetch configuration gather\_facts: true hosts: ‘{{ h }}’ sudo: true sudo\_user: admin …

---

## [Toggle verbosity when running playbooks through the Ansible playbook API.](https://forum.ansible.com/t/toggle-verbosity-when-running-playbooks-through-the-ansible-playbook-api/18189)

<div class="topic-metadata">

**Author:** [@Ayaz\_Ahmed\_Khan](https://forum.ansible.com/u/Ayaz_Ahmed_Khan)\
**Replies:** 2\
**Last updated:** [December 2, 2015, 5:40am UTC](https://forum.ansible.com/t/toggle-verbosity-when-running-playbooks-through-the-ansible-playbook-api/18189 "2015-12-02T05:40:01Z")

</div>

Hi When I execute a playbook through the playbook Python API, is there a way to toggle the verbosity of the output? I have enabled logging for Ansible by configuring the log\_path variable as well as by using a log\_plays …

---

## [Get facts control machine](https://forum.ansible.com/t/get-facts-control-machine/19890)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 2:55am UTC](https://forum.ansible.com/t/get-facts-control-machine/19890 "2015-12-02T02:55:25Z")

</div>

Hi, I want to fetch some files from the remote server and store them in the home directory of the user executing the playbook. How do I get the ‘ansible\_user\_dir’ of the ansible control machine? I can’t use ‘$HOME’ or ‘~…

---

## [Ansible Tower 2.3.1 inventory limiting for job templates](https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914)

<div class="topic-metadata">

**Author:** [@Nicholas\_McKinney](https://forum.ansible.com/u/Nicholas_McKinney)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 2:50am UTC](https://forum.ansible.com/t/ansible-tower-2-3-1-inventory-limiting-for-job-templates/19914 "2015-12-02T02:50:56Z")

</div>

I’m trying to limit job runs to specific machines. The Ansible inventory in Tower has the concept of groups within groups, which is convenient, but I cannot find out how to use that in the “Limit” field during job templa…

---

## [Steps to insert data into a database](https://forum.ansible.com/t/steps-to-insert-data-into-a-database/19912)

<div class="topic-metadata">

**Author:** [@Hugh\_Ma](https://forum.ansible.com/u/Hugh_Ma)\
**Replies:** 0\
**Last updated:** [December 1, 2015, 8:30pm UTC](https://forum.ansible.com/t/steps-to-insert-data-into-a-database/19912 "2015-12-01T20:30:54Z")

</div>

Currently the playbook runs a task which generates a result file in /tmp/result.out Then it runs a parsing python script I put in common/files/parser.py and passes /tmp/result.out to the script as a parameter. The scrip…

---

## [Is it possible to see all the commands that ansible scripts run?](https://forum.ansible.com/t/is-it-possible-to-see-all-the-commands-that-ansible-scripts-run/19910)

<div class="topic-metadata">

**Author:** [@Brad\_Smith](https://forum.ansible.com/u/Brad_Smith)\
**Replies:** 1\
**Last updated:** [December 1, 2015, 7:53pm UTC](https://forum.ansible.com/t/is-it-possible-to-see-all-the-commands-that-ansible-scripts-run/19910 "2015-12-01T19:53:11Z")

</div>

When Ansible fails with -vvv, it gives me a big dump of debug info that basically says “I copied an ansible script to the system and ran it”, with all the SSH details and whatnot I might need if I was trying to debug the…

---

## [SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh](https://forum.ansible.com/t/ssh-error-data-could-not-be-sent-to-the-remote-host-make-sure-this-host-can-be-reached-over-ssh/19906)

<div class="topic-metadata">

**Author:** [@theyuseus](https://forum.ansible.com/u/theyuseus)\
**Replies:** 6\
**Last updated:** [December 1, 2015, 7:23pm UTC](https://forum.ansible.com/t/ssh-error-data-could-not-be-sent-to-the-remote-host-make-sure-this-host-can-be-reached-over-ssh/19906 "2015-12-01T19:23:23Z")

</div>

I’m trying to use private keys. I’ve got it all setup and it works when I use this command. ssh -C james@172.30.129.174 some command It works when I use the command as formatted by Ansible too. ssh -C -tt -vvv -o Cont…

---

## [{{ inventory\_hostname  }} variable](https://forum.ansible.com/t/inventory-hostname-variable/19853)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 3\
**Last updated:** [December 1, 2015, 6:36pm UTC](https://forum.ansible.com/t/inventory-hostname-variable/19853 "2015-12-01T18:36:52Z")

</div>

New to Ansible here, and have a question on using an inventory\_hostname variable. I have a playbook that deploys an add-on to numerous servers, using an inventory list of IP addresses setup as so: \[servers01\] xxx.xxx.…

---

## [Ansible 2.0 :  stable-2.0 branch : cannot import name AnsibleOptionsError](https://forum.ansible.com/t/ansible-2-0-stable-2-0-branch-cannot-import-name-ansibleoptionserror/19902)

<div class="topic-metadata">

**Author:** [@Karan\_Singh](https://forum.ansible.com/u/Karan_Singh)\
**Replies:** 3\
**Last updated:** [December 1, 2015, 4:13pm UTC](https://forum.ansible.com/t/ansible-2-0-stable-2-0-branch-cannot-import-name-ansibleoptionserror/19902 "2015-12-01T16:13:17Z")

</div>

Hello Ansible Geeks I am willing to use ansible 2.0 and i have cloned ansible repository and source /hacking/env-setup and got this error. Please see the details here : https://github.com/ansible/ansible/issues/13361 t…

---

## [Need help with Jetty restart using ansible](https://forum.ansible.com/t/need-help-with-jetty-restart-using-ansible/19905)

<div class="topic-metadata">

**Author:** [@eric\_hanzl](https://forum.ansible.com/u/eric_hanzl)\
**Replies:** 1\
**Last updated:** [December 1, 2015, 2:46pm UTC](https://forum.ansible.com/t/need-help-with-jetty-restart-using-ansible/19905 "2015-12-01T14:46:28Z")

</div>

I can restart Jetty with no issues form the command line: sudo /sbin/service jetty restart log: 2015-11-30 16:33:38.875:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@3567135c{/,\[file:///tmp/jetty-local…

---

## [Help with callback to tower from AWS auto scaling script](https://forum.ansible.com/t/help-with-callback-to-tower-from-aws-auto-scaling-script/19797)

<div class="topic-metadata">

**Author:** [@Adrian\_Black1](https://forum.ansible.com/u/Adrian_Black1)\
**Replies:** 3\
**Last updated:** [December 1, 2015, 10:21am UTC](https://forum.ansible.com/t/help-with-callback-to-tower-from-aws-auto-scaling-script/19797 "2015-12-01T10:21:50Z")

</div>

Trying to put the bits together to get an auto scaling group in aws to come on line and create a vm that does a callback to tower for provisionment. The bit im getting stuck with is the callback part According to http:…

---

## [Suggestion: New filter for matching attributes in a list](https://forum.ansible.com/t/suggestion-new-filter-for-matching-attributes-in-a-list/19907)

<div class="topic-metadata">

**Author:** [@Luis\_Medina](https://forum.ansible.com/u/Luis_Medina)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 11:22pm UTC](https://forum.ansible.com/t/suggestion-new-filter-for-matching-attributes-in-a-list/19907 "2015-11-30T23:22:39Z")

</div>

Hello, This is my first time posting here. Recently I came across a use case while working with AWS where I needed to reduce a sequence of dictionaries into a list of string and filter out entries based on whether or no…

---

## [prompt\_vars again / multiple times](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 4\
**Last updated:** [November 30, 2015, 11:09pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904 "2015-11-30T23:09:44Z")

</div>

Is there a possibility to prompt a variable again? Currently if you prompt a variable in the first play, you can’t prompt for the same variable in the second play. Here is my (example) playbook: \` name: setup ansible-…

---

## [looping over variables](https://forum.ansible.com/t/looping-over-variables/19903)

<div class="topic-metadata">

**Author:** [@Saturb](https://forum.ansible.com/u/Saturb)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 9:49pm UTC](https://forum.ansible.com/t/looping-over-variables/19903 "2015-11-30T21:49:35Z")

</div>

hello everyone, need some help here. i have this variable; vars: ufw\_applications: { name: sample\_app, ports: \[ { port: 8081, protocol: tcp }, { port: 8082, protocol: udp } \] } and i want to have a resulting config…

---

## [Ansible galaxy repo import](https://forum.ansible.com/t/ansible-galaxy-repo-import/19901)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 2\
**Last updated:** [November 30, 2015, 9:16pm UTC](https://forum.ansible.com/t/ansible-galaxy-repo-import/19901 "2015-11-30T21:16:14Z")

</div>

Hi, My role seems to be taking a very long time to import from github to galaxy. I have the right syntax in the meta file. Can someone please let me know what could be the reason for it taking such a long time to import…

---

## [Dynamic inventorying on an EC2 tag basis](https://forum.ansible.com/t/dynamic-inventorying-on-an-ec2-tag-basis/19897)

<div class="topic-metadata">

**Author:** [@Andrew\_Langhorn1](https://forum.ansible.com/u/Andrew_Langhorn1)\
**Replies:** 3\
**Last updated:** [November 30, 2015, 8:17pm UTC](https://forum.ansible.com/t/dynamic-inventorying-on-an-ec2-tag-basis/19897 "2015-11-30T20:17:12Z")

</div>

Hello, I’m using EC2 dynamic inventorying, and would like to create a new Ansible group to apply roles to by referencing machines tagged with a specific EC2 tag key/value pair. So far, I have this in my inventory/hosts…

---

## [users and multiple domains](https://forum.ansible.com/t/users-and-multiple-domains/19900)

<div class="topic-metadata">

**Author:** [@Aleksey\_Khaustov](https://forum.ansible.com/u/Aleksey_Khaustov)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 5:25pm UTC](https://forum.ansible.com/t/users-and-multiple-domains/19900 "2015-11-30T17:25:33Z")

</div>

Hi everyone. There are 3 data centers In an organization where I’m working - i’ll call it “domain” further in the text. I write small playbook for creating developer’s accounts on machines in the single domain: \`

---

## [Remove .ansible\_async directory after a play has finished](https://forum.ansible.com/t/remove-ansible-async-directory-after-a-play-has-finished/19898)

<div class="topic-metadata">

**Author:** [@Phill\_Tomlinson](https://forum.ansible.com/u/Phill_Tomlinson)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 2:22pm UTC](https://forum.ansible.com/t/remove-ansible-async-directory-after-a-play-has-finished/19898 "2015-11-30T14:22:43Z")

</div>

I currently have a number of async tasks that create a number of temporary files under ~/.ansible\_async on each remote host. I would like to delete these whenever a play ends. I know there is the async\_status module “cle…

---

## [Ansible extra modules - ec2\_vpc\_subnet](https://forum.ansible.com/t/ansible-extra-modules-ec2-vpc-subnet/19861)

<div class="topic-metadata">

**Author:** [@AC11](https://forum.ansible.com/u/AC11)\
**Replies:** 3\
**Last updated:** [November 30, 2015, 1:07pm UTC](https://forum.ansible.com/t/ansible-extra-modules-ec2-vpc-subnet/19861 "2015-11-30T13:07:21Z")

</div>

Hi, I have installed ansible on centos 6 and it seems that I am getting the error : state is not legal… \[user@server tasks\]$ ansible-playbook -v -i /home/user/ansible/ansible\_hosts /home/user/ansible/amazon\_vpc.yml ER…

---

## [Ansible playbook fails on ssh in between the tasks.](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19896)

<div class="topic-metadata">

**Author:** [@Vani\_Paridhyani](https://forum.ansible.com/u/Vani_Paridhyani)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 11:21am UTC](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19896 "2015-11-30T11:21:04Z")

</div>

Hi! After 5 out of 11 ansible tasks ran successfuly, my playbook failed throwing the below error: failed: \[\<ip\>\] =\> {"changed": true, "rc": 1} stderr: OpenSSH\_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading confi…

---

## [Get specifics from Ansible output](https://forum.ansible.com/t/get-specifics-from-ansible-output/19895)

<div class="topic-metadata">

**Author:** [@K\_de\_Jong](https://forum.ansible.com/u/K_de_Jong)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 11:19am UTC](https://forum.ansible.com/t/get-specifics-from-ansible-output/19895 "2015-11-30T11:19:13Z")

</div>

First of all, this is what I’m trying to do. I want to check first if certain directories are in fact directories and not symlinks. If they happen to be directories I want to rename them to {{ item }}.old and then after …

---

## [Ansible playbook fails on ssh in between the tasks.](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19894)

<div class="topic-metadata">

**Author:** [@Vani\_Paridhyani](https://forum.ansible.com/u/Vani_Paridhyani)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 11:18am UTC](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19894 "2015-11-30T11:18:46Z")

</div>

Hi! After 5 out of 11 ansible tasks ran successfuly, my playbook failed throwing the below error: failed: \[\<ip\>\] =\> {"changed": true, "rc": 1} stderr: OpenSSH\_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading confi…

---

## [Callback-Plugins seem to have one instance per fork - how to synchronize them?](https://forum.ansible.com/t/callback-plugins-seem-to-have-one-instance-per-fork-how-to-synchronize-them/19864)

<div class="topic-metadata">

**Author:** [@Michael\_Wenig](https://forum.ansible.com/u/Michael_Wenig)\
**Replies:** 2\
**Last updated:** [November 30, 2015, 6:41am UTC](https://forum.ansible.com/t/callback-plugins-seem-to-have-one-instance-per-fork-how-to-synchronize-them/19864 "2015-11-30T06:41:58Z")

</div>

Hi, we have a callback plugin (Ansible 1.8.4) which gathers information during the playbook run and stores them in a class-local variable. On playbook end this should be displayed in the log (e.g. warnings and errors f…

---

## [Getting started with Ansible development](https://forum.ansible.com/t/getting-started-with-ansible-development/19891)

<div class="topic-metadata">

**Author:** [@Rajath\_Agasthya](https://forum.ansible.com/u/Rajath_Agasthya)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 6:27am UTC](https://forum.ansible.com/t/getting-started-with-ansible-development/19891 "2015-11-30T06:27:25Z")

</div>

Hello, I’m a Python programmer and would love to contribute to Ansible! I took a look at the Github issues with ‘easyfix’ tag and couldn’t quite find a simple issue to fix. If you know of any beginner-level bugs, I’d lo…

---

## [V2 plugin migration guide](https://forum.ansible.com/t/v2-plugin-migration-guide/19889)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 1\
**Last updated:** [November 29, 2015, 11:31pm UTC](https://forum.ansible.com/t/v2-plugin-migration-guide/19889 "2015-11-29T23:31:06Z")

</div>

Hi, Trying to get my callback plugins working in v2 and I recall some talk a long time ago about some documentation to help with migration of v1 plugins. Is this a thing? Many thanks Jon

---

## [Getting started with development.](https://forum.ansible.com/t/getting-started-with-development/19888)

<div class="topic-metadata">

**Author:** [@Erik\_Nadel](https://forum.ansible.com/u/Erik_Nadel)\
**Replies:** 0\
**Last updated:** [November 29, 2015, 9:45pm UTC](https://forum.ansible.com/t/getting-started-with-development/19888 "2015-11-29T21:45:53Z")

</div>

Hello, first post here and hopefully more to come. I’ve been trying to get started with contributing to ansible and work on issues. I started with just getting integration tests running, but I keep running into an issue…

---

## [Ansible create an IAM user with a group and with administrator privilege](https://forum.ansible.com/t/ansible-create-an-iam-user-with-a-group-and-with-administrator-privilege/19884)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 5\
**Last updated:** [November 29, 2015, 9:43pm UTC](https://forum.ansible.com/t/ansible-create-an-iam-user-with-a-group-and-with-administrator-privilege/19884 "2015-11-29T21:43:56Z")

</div>

Hi, Can someone please help me in creating an IAM user with a group and with administrator privilege Thanks,

---

## [connect to Docker container on remote host](https://forum.ansible.com/t/connect-to-docker-container-on-remote-host/19848)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 4\
**Last updated:** [November 29, 2015, 8:03pm UTC](https://forum.ansible.com/t/connect-to-docker-container-on-remote-host/19848 "2015-11-29T20:03:50Z")

</div>

Hi, since Ansible 2.0 it is possible to deploy directly to a docker container via connection=docker. Now I want to create a Role which is starting a Docker container and deploying some stuff to it. Here is an arbitrary …

---

## ["No escaped character" in inventory file](https://forum.ansible.com/t/no-escaped-character-in-inventory-file/19886)

<div class="topic-metadata">

**Author:** [@Andrew\_Langhorn](https://forum.ansible.com/u/Andrew_Langhorn)\
**Replies:** 2\
**Last updated:** [November 29, 2015, 5:06pm UTC](https://forum.ansible.com/t/no-escaped-character-in-inventory-file/19886 "2015-11-29T17:06:25Z")

</div>

Hello, I’m hooking up Ansible and a Vagrant VM running Ubuntu 14.04 LTS. To do this, I have the following inventory file: ​ default ansible\_ssh\_host=“127.0.0.1” ansible\_ssh\_port=“2202” ansible\_ssh\_user=“vagrant…

---

## [Method for formatting long attribute values over multiple lines?](https://forum.ansible.com/t/method-for-formatting-long-attribute-values-over-multiple-lines/19885)

<div class="topic-metadata">

**Author:** [@edrozenberg](https://forum.ansible.com/u/edrozenberg)\
**Replies:** 0\
**Last updated:** [November 28, 2015, 2:03pm UTC](https://forum.ansible.com/t/method-for-formatting-long-attribute-values-over-multiple-lines/19885 "2015-11-28T14:03:33Z")

</div>

I need help trying to stick to 80 columns :). In a number of my tasks, some attribute values get very long and I haven’t found any means of breaking them up over several lines. A workaround is to put them into a vars fi…

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

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