# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=573

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

**Page:** 574

---

## [copy each confi file on each server](https://forum.ansible.com/t/copy-each-confi-file-on-each-server/21962)

<div class="topic-metadata">

**Author:** [@alex\_podolin](https://forum.ansible.com/u/alex_podolin)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 10:34am UTC](https://forum.ansible.com/t/copy-each-confi-file-on-each-server/21962 "2016-07-11T10:34:41Z")

</div>

Hi all. I hope anybody can help me. I have a few servers called SERVER-01 SERVER-02…SERVER-N and \*.conf files for this servers tree roles/put\_cameras/files/nginx/ roles/put\_cameras/files/nginx/ ├──SERVER-01 │ ├── co…

---

## [Login Credentials were rejected for Computers Attached to Active Directory](https://forum.ansible.com/t/login-credentials-were-rejected-for-computers-attached-to-active-directory/21979)

<div class="topic-metadata">

**Author:** [@Rajagopal\_Subramania](https://forum.ansible.com/u/Rajagopal_Subramania)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 9:54am UTC](https://forum.ansible.com/t/login-credentials-were-rejected-for-computers-attached-to-active-directory/21979 "2016-07-11T09:54:58Z")

</div>

I have three 3 Windows computers. One is Windows server 2012, Other two are Windows 7 Desktop. Through Ansible I can individually manage all 3 windows machine through their local login account. Ansible Work Perfectly. N…

---

## [docker-py\` doesn't seem to be installed, but is required for the Ansible Docker module](https://forum.ansible.com/t/docker-py-doesnt-seem-to-be-installed-but-is-required-for-the-ansible-docker-module/21983)

<div class="topic-metadata">

**Author:** [@utp\_mahesh](https://forum.ansible.com/u/utp_mahesh)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 9:04am UTC](https://forum.ansible.com/t/docker-py-doesnt-seem-to-be-installed-but-is-required-for-the-ansible-docker-module/21983 "2016-07-11T09:04:49Z")

</div>

I already installed the docker-py module.I Dont know why it is failing to find this module. Anyway this happens only for this Jenkins job.Other Jenkins jobs picks the docker-py module and do the docker deployment. For …

---

## [Nested looping with with\_dict and with\_file, in Ansible v 1.7.2](https://forum.ansible.com/t/nested-looping-with-with-dict-and-with-file-in-ansible-v-1-7-2/21949)

<div class="topic-metadata">

**Author:** [@Junaid\_Naseer](https://forum.ansible.com/u/Junaid_Naseer)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 6:39am UTC](https://forum.ansible.com/t/nested-looping-with-with-dict-and-with-file-in-ansible-v-1-7-2/21949 "2016-07-11T06:39:42Z")

</div>

I am almost certain this is not possible in Ansible (at least not in version 1.7.2), but just to be thorough in my investigation, after exhausting all lookups on google, stackoverflow, serverfault, etc. I am posting it …

---

## [Remove stderr/stdout from json output on failure as plugin handles already pretty printing](https://forum.ansible.com/t/remove-stderr-stdout-from-json-output-on-failure-as-plugin-handles-already-pretty-printing/21981)

<div class="topic-metadata">

**Author:** [@Kamil\_Demecki](https://forum.ansible.com/u/Kamil_Demecki)\
**Replies:** 0\
**Last updated:** [July 11, 2016, 6:32am UTC](https://forum.ansible.com/t/remove-stderr-stdout-from-json-output-on-failure-as-plugin-handles-already-pretty-printing/21981 "2016-07-11T06:32:21Z")

</div>

Hi All, I’m using plugin described here to display pretty printed output. It is working very well on successful execution. However on failure ansible also displays json with keys “stdout”, “stderr” duplicating my outpu…

---

## [Help - transform .keys() output with regex\_replace](https://forum.ansible.com/t/help-transform-keys-output-with-regex-replace/21977)

<div class="topic-metadata">

**Author:** [@Nico](https://forum.ansible.com/u/Nico)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:47am UTC](https://forum.ansible.com/t/help-transform-keys-output-with-regex-replace/21977 "2016-07-11T00:47:09Z")

</div>

Hello I’am using the .keys function to get the key name out of a dict. {{ item.keys() }} which output: \["MyKeysName"\] Now, I’am trying to remove the \[" and "\] so that only MyKeysName is left. I have been looking at…

---

## [ansible installation fails with LOCALE error](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975)

<div class="topic-metadata">

**Author:** [@Oleg\_Belousov](https://forum.ansible.com/u/Oleg_Belousov)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:40am UTC](https://forum.ansible.com/t/ansible-installation-fails-with-locale-error/21975 "2016-07-11T00:40:34Z")

</div>

Error: \` msg: 'apt-get install ‘runit’ ’ failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC\_ALL = (unset), LC\_TIME = “de\_DE.UTF-8”, LC\_MONET…

---

## [How to check if any package is installed on remote system ?](https://forum.ansible.com/t/how-to-check-if-any-package-is-installed-on-remote-system/21968)

<div class="topic-metadata">

**Author:** [@Pratik\_Bandarkar](https://forum.ansible.com/u/Pratik_Bandarkar)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 12:09am UTC](https://forum.ansible.com/t/how-to-check-if-any-package-is-installed-on-remote-system/21968 "2016-07-11T00:09:09Z")

</div>

Hi, I am looking for some option in yum module to check if any specific package is installed or not ? Can anyone help me on the same. Regards, Pratik.

---

## [Ansible-play reference a local hosts file](https://forum.ansible.com/t/ansible-play-reference-a-local-hosts-file/21980)

<div class="topic-metadata">

**Author:** [@Eric\_Marquez](https://forum.ansible.com/u/Eric_Marquez)\
**Replies:** 2\
**Last updated:** [July 10, 2016, 6:40pm UTC](https://forum.ansible.com/t/ansible-play-reference-a-local-hosts-file/21980 "2016-07-10T18:40:37Z")

</div>

How do I get Ansible-play to reference a local hosts files? I created a hosts file in the same directly with my site.yaml file but it doesn’t seem to reference it. Is there a way to get it to use a local vs the /etc/Ansi…

---

## [Useful Ansible snippets for Sublime and filter plugins](https://forum.ansible.com/t/useful-ansible-snippets-for-sublime-and-filter-plugins/21978)

<div class="topic-metadata">

**Author:** [@Alexander\_Jager](https://forum.ansible.com/u/Alexander_Jager)\
**Replies:** 0\
**Last updated:** [July 10, 2016, 2:17pm UTC](https://forum.ansible.com/t/useful-ansible-snippets-for-sublime-and-filter-plugins/21978 "2016-07-10T14:17:55Z")

</div>

Hi there, i wanted to shared some work i did: I wrote a shell script which writes auto completion snippets for Sublime text: https://github.com/lxhunter/ansible-sublime-text-snippets I wrote and documented filter plug…

---

## [subsequent jobs](https://forum.ansible.com/t/subsequent-jobs/21972)

<div class="topic-metadata">

**Author:** [@Ryan\_R](https://forum.ansible.com/u/Ryan_R)\
**Replies:** 0\
**Last updated:** [July 9, 2016, 9:42pm UTC](https://forum.ansible.com/t/subsequent-jobs/21972 "2016-07-09T21:42:04Z")

</div>

Hello! I like how SCM update can be run just before a job, by selecting “Update on launch”. I would like for a job to run the same way, just before a job. Is it possible that Job-Two can be set to automatically run whe…

---

## [Route Table or Default Gateway in Azure](https://forum.ansible.com/t/route-table-or-default-gateway-in-azure/21970)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 0\
**Last updated:** [July 9, 2016, 8:32pm UTC](https://forum.ansible.com/t/route-table-or-default-gateway-in-azure/21970 "2016-07-09T20:32:31Z")

</div>

Is there a way to either create a route table for a subnet or to specify the default gateway to be another instance? I can do this with a template, but not the native functions. Am I missing something? Thanks, Steven.

---

## [ANSIBLE : NO MORE HOSTS LEFT  v2.1.1.0-0.2.rc2? Or am I failing to build the right RPM?](https://forum.ansible.com/t/ansible-no-more-hosts-left-v2-1-1-0-0-2-rc2-or-am-i-failing-to-build-the-right-rpm/21966)

<div class="topic-metadata">

**Author:** [@Gavin\_Jones](https://forum.ansible.com/u/Gavin_Jones)\
**Replies:** 1\
**Last updated:** [July 9, 2016, 12:51am UTC](https://forum.ansible.com/t/ansible-no-more-hosts-left-v2-1-1-0-0-2-rc2-or-am-i-failing-to-build-the-right-rpm/21966 "2016-07-09T00:51:36Z")

</div>

Hi All, New to ANSIBLE and I have been getting the dreaded: NO MORE HOSTS LEFT , when I run playbooks. I read here: https://github.com/ansible/ansible/issues/16364 That it would be resolved in v2.1.1.0-0.2.rc2. So I c…

---

## [vsphere\_guest with\_items or with\_dict not working](https://forum.ansible.com/t/vsphere-guest-with-items-or-with-dict-not-working/21964)

<div class="topic-metadata">

**Author:** [@Rory\_Schramm](https://forum.ansible.com/u/Rory_Schramm)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 7:15pm UTC](https://forum.ansible.com/t/vsphere-guest-with-items-or-with-dict-not-working/21964 "2016-07-08T19:15:39Z")

</div>

I’m trying to make a playbook to provision some vsphere vm’s using the vsphere\_guest module. However, I cant seem to figure out how to iterate through multiple vm disks using either with\_items or with\_dict defined in hos…

---

## [copy module not idempotent](https://forum.ansible.com/t/copy-module-not-idempotent/21963)

<div class="topic-metadata">

**Author:** [@Amjad\_Saleem](https://forum.ansible.com/u/Amjad_Saleem)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 6:19pm UTC](https://forum.ansible.com/t/copy-module-not-idempotent/21963 "2016-07-08T18:19:45Z")

</div>

While using copy module, it always copies the entire directory structure. ansible version is 2.0.2.0.

---

## [Invalid interface clause error with ufw module and log param](https://forum.ansible.com/t/invalid-interface-clause-error-with-ufw-module-and-log-param/21919)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [July 8, 2016, 5:30pm UTC](https://forum.ansible.com/t/invalid-interface-clause-error-with-ufw-module-and-log-param/21919 "2016-07-08T17:30:18Z")

</div>

I have some tasks that use the ufw module to add firewall rules, which up until now have been working fine. Today however, I added the ‘log’ parameter to the ufw task and I got the following error: “ERROR: Invalid interf…

---

## [module (copy) is missing interpreter line](https://forum.ansible.com/t/module-copy-is-missing-interpreter-line/21933)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 9\
**Last updated:** [July 8, 2016, 5:28pm UTC](https://forum.ansible.com/t/module-copy-is-missing-interpreter-line/21933 "2016-07-08T17:28:20Z")

</div>

Hello everyone, It seems quite difficult to perform a very simple task: save the content of a variable to a file. This variable content is not just a string, but several lines as shown by the debug module: “out.stdout…

---

## [Parallelism in single host](https://forum.ansible.com/t/parallelism-in-single-host/21961)

<div class="topic-metadata">

**Author:** [@Krishnakumar](https://forum.ansible.com/u/Krishnakumar)\
**Replies:** 2\
**Last updated:** [July 8, 2016, 12:18pm UTC](https://forum.ansible.com/t/parallelism-in-single-host/21961 "2016-07-08T12:18:16Z")

</div>

Is it possible to execute tasks in parallel within same host without splitting the plays. Is there any new functionality added newly for this ?

---

## [Postgresql\_privs module question](https://forum.ansible.com/t/postgresql-privs-module-question/21960)

<div class="topic-metadata">

**Author:** [@Milky\_Milk](https://forum.ansible.com/u/Milky_Milk)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 10:29am UTC](https://forum.ansible.com/t/postgresql-privs-module-question/21960 "2016-07-08T10:29:08Z")

</div>

Hello there. I can’t find a way to create default privileges in postgresql with Ansible. For example: \` ALTER DEFAULT PRIVILEGES FOR ROLE reader IN SCHEMA public GRANT SELECT ON TABLES TO username \` Is it possible? …

---

## [Updating existing route tables](https://forum.ansible.com/t/updating-existing-route-tables/21959)

<div class="topic-metadata">

**Author:** [@Prashant\_Bhosale](https://forum.ansible.com/u/Prashant_Bhosale)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 9:49am UTC](https://forum.ansible.com/t/updating-existing-route-tables/21959 "2016-07-08T09:49:08Z")

</div>

I have successfully created a VPC B and now I want to peer VPC B and VPC A. In VPC B I can add the vpc\_peering id in route table, but struggling with how to update the route table of VPC A with the vpc\_peering id. Trie…

---

## [Build a custom apache module vs. using it through a role](https://forum.ansible.com/t/build-a-custom-apache-module-vs-using-it-through-a-role/21958)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 9:28am UTC](https://forum.ansible.com/t/build-a-custom-apache-module-vs-using-it-through-a-role/21958 "2016-07-08T09:28:25Z")

</div>

Hi I'm using the geerlingguy.apache role to deploy apache, in my case onto Ubuntu 16.04. This works great. The machine needs to run a custom build apache module, but I'm not sure what the best way is to order things…

---

## [Loops and includes](https://forum.ansible.com/t/loops-and-includes/21946)

<div class="topic-metadata">

**Author:** [@Bence\_Takacs](https://forum.ansible.com/u/Bence_Takacs)\
**Replies:** 2\
**Last updated:** [July 8, 2016, 9:01am UTC](https://forum.ansible.com/t/loops-and-includes/21946 "2016-07-08T09:01:15Z")

</div>

What is the difference between the following syntaxes? === 1st scenario outside.yaml: --- - include: inside.yaml vars: my\_inner\_item: "{{ item }}" with\_items: - A - B - C inside.yaml: --- - de…

---

## [start-at-task arguments](https://forum.ansible.com/t/start-at-task-arguments/21957)

<div class="topic-metadata">

**Author:** [@Steven\_Graham](https://forum.ansible.com/u/Steven_Graham)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 8:59am UTC](https://forum.ansible.com/t/start-at-task-arguments/21957 "2016-07-08T08:59:54Z")

</div>

I have ansible 1.9.4 Trying to understand the use of --start-at-task flag. I can start at a task by using something like “start the Cassandra instance” or if its in a role can use a | to separate the role from the task …

---

## [How to use git on ansible ?](https://forum.ansible.com/t/how-to-use-git-on-ansible/21956)

<div class="topic-metadata">

**Author:** [@Javier\_Barroso](https://forum.ansible.com/u/Javier_Barroso)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 8:38am UTC](https://forum.ansible.com/t/how-to-use-git-on-ansible/21956 "2016-07-08T08:38:39Z")

</div>

Hello, I have reviewed ansible git module \[1\], but I don’t find how it could work with my workflow. My workflow is the next: dir\_fschanges: /srv/ansible/fschanges project: myproject Create a local {{dir\_fschanges}}/{…

---

## [unbale to perform actions as sudo su - on 2.1.0](https://forum.ansible.com/t/unbale-to-perform-actions-as-sudo-su-on-2-1-0/21955)

<div class="topic-metadata">

**Author:** [@PN1](https://forum.ansible.com/u/PN1)\
**Replies:** 0\
**Last updated:** [July 8, 2016, 4:51am UTC](https://forum.ansible.com/t/unbale-to-perform-actions-as-sudo-su-on-2-1-0/21955 "2016-07-08T04:51:50Z")

</div>

In my servers i can able to execute commands only via “sudo su -” . so I’m looking option to login server with my local username and do sudo su - to excute commands . I could see some path on https://github.com/ansible/…

---

## [Ansible 2.1.1 RC2 is ready for testing](https://forum.ansible.com/t/ansible-2-1-1-rc2-is-ready-for-testing/21954)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 9:30pm UTC](https://forum.ansible.com/t/ansible-2-1-1-rc2-is-ready-for-testing/21954 "2016-07-07T21:30:57Z")

</div>

Hi all, we’re happy to announce that RC2 for 2.1.1 is now available for testing. This release candidate fixes several more bugs since the RC1 release: Several fixes to the way async works to prevent race conditions an…

---

## [ssh difference between ansible ad-hoc and ansible-playbook for localhost](https://forum.ansible.com/t/ssh-difference-between-ansible-ad-hoc-and-ansible-playbook-for-localhost/21951)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 3\
**Last updated:** [July 7, 2016, 8:56pm UTC](https://forum.ansible.com/t/ssh-difference-between-ansible-ad-hoc-and-ansible-playbook-for-localhost/21951 "2016-07-07T20:56:17Z")

</div>

I noticed in troubleshooting SSH authentication that there is a difference between ansible ad-hoc and ansible-playbook in terms of SSH for localhost. Specifically, I was able to get a playbook targeted at localhost to w…

---

## [Ansible UFW module: inaccurate documentation?](https://forum.ansible.com/t/ansible-ufw-module-inaccurate-documentation/15817)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 2\
**Last updated:** [July 7, 2016, 8:47pm UTC](https://forum.ansible.com/t/ansible-ufw-module-inaccurate-documentation/15817 "2016-07-07T20:47:11Z")

</div>

Having a hell of a time getting UFW to play nicely. Here’s what I’ve got: Each role (in this case the role is “common”, part of our baseline role) has a ufw.yml task file that gets imported to main.yml:

---

## [Using vars\_prompt with role name](https://forum.ansible.com/t/using-vars-prompt-with-role-name/21953)

<div class="topic-metadata">

**Author:** [@Kenneth\_Koski](https://forum.ansible.com/u/Kenneth_Koski)\
**Replies:** 0\
**Last updated:** [July 7, 2016, 8:09pm UTC](https://forum.ansible.com/t/using-vars-prompt-with-role-name/21953 "2016-07-07T20:09:18Z")

</div>

Apologies if this is an easy question, but I have limited experience with Ansible, and I’ve been unable to find anything about this online. I’ve got a codebase that looks like this: \` deploy.yml

---

## [Avoid conflicting roles on same machine](https://forum.ansible.com/t/avoid-conflicting-roles-on-same-machine/21921)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 3\
**Last updated:** [July 7, 2016, 7:32pm UTC](https://forum.ansible.com/t/avoid-conflicting-roles-on-same-machine/21921 "2016-07-07T19:32:52Z")

</div>

Hi I have 4 roles, nginx, apache, kibana and grafana. The kibana role has a requirement to the nginx role and grafana role has a requirement of the apache role. Since both nginx and apache uses the same port numbers 8…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=572)

[Next page](https://forum.ansible.com/c/archives/31.md?page=574)
