# Archives

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

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

**Page:** 511

---

## [Syntax Error while loading YAML.](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23838)

<div class="topic-metadata">

**Author:** [@Pankaj\_Navneet](https://forum.ansible.com/u/Pankaj_Navneet)\
**Replies:** 0\
**Last updated:** [February 28, 2017, 5:59am UTC](https://forum.ansible.com/t/syntax-error-while-loading-yaml/23838 "2017-02-28T05:59:39Z")

</div>

Hi , I have written a YAML to install on my AWS Slave server, but i am getting below error while running the playbook, ERROR! Syntax Error while loading YAML. The error appears to have been in ‘/etc/ansible/install\_ng…

---

## [I have a ansible task "yum\_update\_kernel" but I hosts I can not update the kernel on.](https://forum.ansible.com/t/i-have-a-ansible-task-yum-update-kernel-but-i-hosts-i-can-not-update-the-kernel-on/23822)

<div class="topic-metadata">

**Author:** [@David\_Brendlinger](https://forum.ansible.com/u/David_Brendlinger)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 4:58am UTC](https://forum.ansible.com/t/i-have-a-ansible-task-yum-update-kernel-but-i-hosts-i-can-not-update-the-kernel-on/23822 "2017-02-28T04:58:10Z")

</div>

Hello I have a ansible role “yum\_update\_kernel” but I hosts I can not update the kernel on. can I hardcode “never run this role” if hostname is “name1” “name2” “name3” timfox123

---

## [Python can't find a common python script that is in module\_utils when running modules that use it](https://forum.ansible.com/t/python-cant-find-a-common-python-script-that-is-in-module-utils-when-running-modules-that-use-it/23814)

<div class="topic-metadata">

**Author:** [@Dave\_Kasberg](https://forum.ansible.com/u/Dave_Kasberg)\
**Replies:** 3\
**Last updated:** [February 28, 2017, 3:58am UTC](https://forum.ansible.com/t/python-cant-find-a-common-python-script-that-is-in-module-utils-when-running-modules-that-use-it/23814 "2017-02-28T03:58:45Z")

</div>

I’m developing several new network modules for Ansible 2.3. I have placed the common functions that are shared among these modules in a python script and put it in ./module\_utils/cnos/cnos.py. “cnos” is our operating sys…

---

## [includes in roles](https://forum.ansible.com/t/includes-in-roles/23835)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 1\
**Last updated:** [February 28, 2017, 12:22am UTC](https://forum.ansible.com/t/includes-in-roles/23835 "2017-02-28T00:22:41Z")

</div>

With the introduction of static/dynamic includes, how does one use “include” in a role? Previously I would say this name: foo include: bar.yaml and it would find bar.yaml in the tasks/ directory of my role. Now, ho…

---

## [How can I execute task only when file not contain a string?](https://forum.ansible.com/t/how-can-i-execute-task-only-when-file-not-contain-a-string/23811)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 6\
**Last updated:** [February 27, 2017, 10:18pm UTC](https://forum.ansible.com/t/how-can-i-execute-task-only-when-file-not-contain-a-string/23811 "2017-02-27T22:18:34Z")

</div>

Hi, is there a solution more user friendly that http://stackoverflow.com/questions/30786263/only-check-whether-a-line-present-in-a-file-ansible to test if file contain a string? I don’t like that: name: Check if bas…

---

## [with\_consul\_kv ANSIBLE\_CONSUL\_URL environment.](https://forum.ansible.com/t/with-consul-kv-ansible-consul-url-environment/23833)

<div class="topic-metadata">

**Author:** [@Christopher\_Warner](https://forum.ansible.com/u/Christopher_Warner)\
**Replies:** 0\
**Last updated:** [February 27, 2017, 9:07pm UTC](https://forum.ansible.com/t/with-consul-kv-ansible-consul-url-environment/23833 "2017-02-27T21:07:50Z")

</div>

I want to resurrect a currently closed issue https://github.com/ansible/ansible/issues/16398. I’m just trying to understand why with\_consul\_kv looks for the env variable ANSIBLE\_CONSUL\_URL and we just don’t make this an …

---

## [Directory manipulation](https://forum.ansible.com/t/directory-manipulation/23828)

<div class="topic-metadata">

**Author:** [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Replies:** 1\
**Last updated:** [February 27, 2017, 6:04pm UTC](https://forum.ansible.com/t/directory-manipulation/23828 "2017-02-27T18:04:19Z")

</div>

Hey, in my playbook {{ playbook\_dir }} is /etc/proftpd , it is possible to add something to playbook\_dir which will output parent directory ? Something like {{ playbook\_dir | …/ }} , is there a way to do something simil…

---

## [execute playbook on host, that isn't recognizedin the host file?](https://forum.ansible.com/t/execute-playbook-on-host-that-isnt-recognizedin-the-host-file/23830)

<div class="topic-metadata">

**Author:** [@edelblistar](https://forum.ansible.com/u/edelblistar)\
**Replies:** 1\
**Last updated:** [February 27, 2017, 6:00pm UTC](https://forum.ansible.com/t/execute-playbook-on-host-that-isnt-recognizedin-the-host-file/23830 "2017-02-27T18:00:22Z")

</div>

Hello, do exist a possibility to execute the playbook on a machine, that isn’t recognizedin the host file? For example ansible-playbook oracle-db12c-installation.yml --extra-vars “variable\_hosts=10.92.0.40”

---

## [ansible subprocess32 feature](https://forum.ansible.com/t/ansible-subprocess32-feature/23829)

<div class="topic-metadata">

**Author:** [@claudiomastrapasqua](https://forum.ansible.com/u/claudiomastrapasqua)\
**Replies:** 0\
**Last updated:** [February 27, 2017, 3:30pm UTC](https://forum.ansible.com/t/ansible-subprocess32-feature/23829 "2017-02-27T15:30:15Z")

</div>

Hello, is there any news on development/improvment side about ansible subprocess32 like described some years ago here: https://github.com/ansible/ansible/pull/9545 By now i think there’s something like “Starts the com…

---

## [Seeing if any of the group names for a host has a corresponding directory, and using that as a templated path component?](https://forum.ansible.com/t/seeing-if-any-of-the-group-names-for-a-host-has-a-corresponding-directory-and-using-that-as-a-templated-path-component/23827)

<div class="topic-metadata">

**Author:** [@JK\_Laiho](https://forum.ansible.com/u/JK_Laiho)\
**Replies:** 0\
**Last updated:** [February 27, 2017, 1:39pm UTC](https://forum.ansible.com/t/seeing-if-any-of-the-group-names-for-a-host-has-a-corresponding-directory-and-using-that-as-a-templated-path-component/23827 "2017-02-27T13:39:08Z")

</div>

We’ve got a set of playbooks that we use to set up production, testing and development environments for a project. A very useful pattern on which we rely heavily is using template source directory names based on invento…

---

## [pip install in a virtual env](https://forum.ansible.com/t/pip-install-in-a-virtual-env/23798)

<div class="topic-metadata">

**Author:** [@Pedro\_Ferro](https://forum.ansible.com/u/Pedro_Ferro)\
**Replies:** 3\
**Last updated:** [February 27, 2017, 10:19am UTC](https://forum.ansible.com/t/pip-install-in-a-virtual-env/23798 "2017-02-27T10:19:00Z")

</div>

Hi, First of all I’m not an IT guy so you have to excuse me for any basic questions that I probably make. I’m trying to replicate an installation of CKAN through Ansible in a Ubuntu 14.04 virtual machine (I’m beyond a …

---

## [Ansible 2.3 devel - ansible-playbook command failing with error for ansible command](https://forum.ansible.com/t/ansible-2-3-devel-ansible-playbook-command-failing-with-error-for-ansible-command/23809)

<div class="topic-metadata">

**Author:** [@Dwarika\_Prasad](https://forum.ansible.com/u/Dwarika_Prasad)\
**Replies:** 2\
**Last updated:** [February 27, 2017, 6:04am UTC](https://forum.ansible.com/t/ansible-2-3-devel-ansible-playbook-command-failing-with-error-for-ansible-command/23809 "2017-02-27T06:04:41Z")

</div>

Hi, I just upgraded to ansible 2.3 , taking the code from git. Now I am not able to run the same command which was working earlier with ansible 2.2. Please find below the error - stock\]$ ansible-playbook -i inventory.…

---

## [Insufficient RAM error while installing Ansible Tower](https://forum.ansible.com/t/insufficient-ram-error-while-installing-ansible-tower/23824)

<div class="topic-metadata">

**Author:** [@Varun\_Kukreja](https://forum.ansible.com/u/Varun_Kukreja)\
**Replies:** 0\
**Last updated:** [February 26, 2017, 7:19pm UTC](https://forum.ansible.com/t/insufficient-ram-error-while-installing-ansible-tower/23824 "2017-02-26T19:19:51Z")

</div>

Hi All, I am installing Ansible tower and when I run the setup playbook , i.e. setup.sh, it shows error indicating insufficient RAM . But the system already has 4 GB of RAM which should I believe be suitable according …

---

## [No module named msrest.serializatio](https://forum.ansible.com/t/no-module-named-msrest-serializatio/23823)

<div class="topic-metadata">

**Author:** [@David\_Wong](https://forum.ansible.com/u/David_Wong)\
**Replies:** 0\
**Last updated:** [February 26, 2017, 3:32pm UTC](https://forum.ansible.com/t/no-module-named-msrest-serializatio/23823 "2017-02-26T15:32:23Z")

</div>

Environment: OS: Mac OS 10.12.3 Python: 2.7.13 Ansible: 2.2.0 pip installed “azure==2.0.0rc5” Got the following error while trying to create under Nnetwork interface under Azure fatal: \[localhost\]: FAILED! =\> {“cha…

---

## [ansible on android?](https://forum.ansible.com/t/ansible-on-android/17180)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 2\
**Last updated:** [February 26, 2017, 1:24pm UTC](https://forum.ansible.com/t/ansible-on-android/17180 "2017-02-26T13:24:33Z")

</div>

Has anybody ever tried to run ansible on android? I've attempted to set it up via Qpython's pip\_consoly.py and it fails with install of pycrypto. System has pycrypto-2.5 pre-installed however I'm assuming ansible pulls i…

---

## [Why « Add compatibility with docker-py v2.0 » commit isn't in v2.2.1.0 release?](https://forum.ansible.com/t/why-add-compatibility-with-docker-py-v2-0-commit-isnt-in-v2-2-1-0-release/23821)

<div class="topic-metadata">

**Author:** [@Stephane\_Klein1](https://forum.ansible.com/u/Stephane_Klein1)\
**Replies:** 0\
**Last updated:** [February 26, 2017, 1:21pm UTC](https://forum.ansible.com/t/why-add-compatibility-with-docker-py-v2-0-commit-isnt-in-v2-2-1-0-release/23821 "2017-02-26T13:21:37Z")

</div>

Hi, do you know if this commit https://github.com/ansible/ansible/commit/e2a1ce2916e9b87fe1ad4a1011c04ef8d2faf046 present in devel branch will be merged in next stable branch? I don’t understand: this commit date is …

---

## [Importing module from the Ansible Git Hub](https://forum.ansible.com/t/importing-module-from-the-ansible-git-hub/23820)

<div class="topic-metadata">

**Author:** [@stack4cl](https://forum.ansible.com/u/stack4cl)\
**Replies:** 0\
**Last updated:** [February 26, 2017, 10:22am UTC](https://forum.ansible.com/t/importing-module-from-the-ansible-git-hub/23820 "2017-02-26T10:22:09Z")

</div>

I’m new to Ansible and trying to import the rhn\_register.py module from the github (https://github.com/ansible/ansible/tree/b3b598c835ab0973f508662d3f246f2bdb0e85c5/lib/ansible/modules/packaging/os ) Looking direction f…

---

## [Returning Data from a PS script](https://forum.ansible.com/t/returning-data-from-a-ps-script/23761)

<div class="topic-metadata">

**Author:** [@Strung6013](https://forum.ansible.com/u/Strung6013)\
**Replies:** 11\
**Last updated:** [February 26, 2017, 9:43am UTC](https://forum.ansible.com/t/returning-data-from-a-ps-script/23761 "2017-02-26T09:43:04Z")

</div>

Hello all, I am having an issue to where I am executing a powershell script on a group of hosts and cannot get the data to be returned in the way that I want it so that I can iterate over it further down in my playbook.…

---

## [relayor: Ansible role to deploy tor relays - v0.2.1 released](https://forum.ansible.com/t/relayor-ansible-role-to-deploy-tor-relays-v0-2-1-released/23819)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [February 25, 2017, 8:44pm UTC](https://forum.ansible.com/t/relayor-ansible-role-to-deploy-tor-relays-v0-2-1-released/23819 "2017-02-25T20:44:00Z")

</div>

https://galaxy.ansible.com/nusenu/relayor/ https://github.com/nusenu/ansible-relayor relayor helps you to deploy tor relays. Supported operating systems: Debian 8, Debian Testing CentOS 7 OpenBSD 6.0 …

---

## [Template copy failing, no error reported but dest: doesn't exist....](https://forum.ansible.com/t/template-copy-failing-no-error-reported-but-dest-doesnt-exist/23815)

<div class="topic-metadata">

**Author:** [@Robert\_L\_Harris](https://forum.ansible.com/u/Robert_L_Harris)\
**Replies:** 1\
**Last updated:** [February 25, 2017, 8:04am UTC](https://forum.ansible.com/t/template-copy-failing-no-error-reported-but-dest-doesnt-exist/23815 "2017-02-25T08:04:25Z")

</div>

I set up a template copy and it isn’t working. I kept simpifying it until it is literally a src: and dest:. The output says it’s OK, 1 changed, 0 failed. But when I look on the destination, there’s no dest file. http://…

---

## [Can't get expect to work - The pexpect python module is required](https://forum.ansible.com/t/cant-get-expect-to-work-the-pexpect-python-module-is-required/20241)

<div class="topic-metadata">

**Author:** [@jaadu](https://forum.ansible.com/u/jaadu)\
**Replies:** 3\
**Last updated:** [February 25, 2017, 7:53am UTC](https://forum.ansible.com/t/cant-get-expect-to-work-the-pexpect-python-module-is-required/20241 "2017-02-25T07:53:32Z")

</div>

I am playing around with Ansible on Ubuntu 14.04 VMs and can’t seem to get expect to work. I have tried installing ansible and pexpect via apt-get and pip, but keep getting the following error: fatal: \[vagrant\]: FAILED…

---

## [Did you know "Ansible Semaphore" ?](https://forum.ansible.com/t/did-you-know-ansible-semaphore/23818)

<div class="topic-metadata">

**Author:** [@Takeshi\_Kuramochi](https://forum.ansible.com/u/Takeshi_Kuramochi)\
**Replies:** 0\
**Last updated:** [February 25, 2017, 4:42am UTC](https://forum.ansible.com/t/did-you-know-ansible-semaphore/23818 "2017-02-25T04:42:53Z")

</div>

Hi all, I found open source Ansible UI called “Ansible Semaphore” like an Ansible Tower. It’s very simple UI! If you get interest, I build the docker container to try quickly. This container contains all necessary par…

---

## [Forgerock OpenAM Code Snippet](https://forum.ansible.com/t/forgerock-openam-code-snippet/23817)

<div class="topic-metadata">

**Author:** [@Shyam\_Yenna](https://forum.ansible.com/u/Shyam_Yenna)\
**Replies:** 0\
**Last updated:** [February 25, 2017, 1:41am UTC](https://forum.ansible.com/t/forgerock-openam-code-snippet/23817 "2017-02-25T01:41:32Z")

</div>

I would like to implement Forgerock OpenAm if some one implemented can share code snippet. I could find source code url to download latest package without passing user credentials. Thanks Shyam

---

## [count number of plays/tasks before & during run](https://forum.ansible.com/t/count-number-of-plays-tasks-before-during-run/23816)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 2\
**Last updated:** [February 24, 2017, 11:49pm UTC](https://forum.ansible.com/t/count-number-of-plays-tasks-before-during-run/23816 "2017-02-24T23:49:32Z")

</div>

I have a use case to monitor very long running plays over very slow, latent links. I would like to do a pre-run check, calculating how many plays, and tasks within each play, are going to run. The closest it seems is cur…

---

## [ansible docker\_container module 'volumes'](https://forum.ansible.com/t/ansible-docker-container-module-volumes/23812)

<div class="topic-metadata">

**Author:** [@vincenzheng](https://forum.ansible.com/u/vincenzheng)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 9:32pm UTC](https://forum.ansible.com/t/ansible-docker-container-module-volumes/23812 "2017-02-24T21:32:10Z")

</div>

Hi, there, just wondering the ‘volumes’ in docker\_container module, Does the first directory of the ‘volumes’ locate in local server which ansible is running? or it’s the directory from the docker engine is running? in…

---

## [Version (and other) problems with Ansible Azure Modules](https://forum.ansible.com/t/version-and-other-problems-with-ansible-azure-modules/21907)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 18\
**Last updated:** [February 24, 2017, 5:49pm UTC](https://forum.ansible.com/t/version-and-other-problems-with-ansible-azure-modules/21907 "2017-02-24T17:49:12Z")

</div>

when trying to run: hosts: localhost connection: local gather\_facts: yes vars: azure\_region: ‘eastus’ tasks: name: Get facts for one resource group azure\_rm\_resourcegroup\_facts: name: stevenca-csr I get: fat…

---

## [How to run this playbook locally ?](https://forum.ansible.com/t/how-to-run-this-playbook-locally/23806)

<div class="topic-metadata">

**Author:** [@John\_Doe](https://forum.ansible.com/u/John_Doe)\
**Replies:** 2\
**Last updated:** [February 24, 2017, 5:24pm UTC](https://forum.ansible.com/t/how-to-run-this-playbook-locally/23806 "2017-02-24T17:24:34Z")

</div>

Hey, I’ve got this playbook here https://pastebin.mozilla.org/8980172 and what I want is just run it locally. My plan is that I run this playbook from another playbook or in other words another playbook is referencing …

---

## [Ansible Modules for hadoop](https://forum.ansible.com/t/ansible-modules-for-hadoop/23810)

<div class="topic-metadata">

**Author:** [@Yassine\_Azzouz](https://forum.ansible.com/u/Yassine_Azzouz)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 4:47pm UTC](https://forum.ansible.com/t/ansible-modules-for-hadoop/23810 "2017-02-24T16:47:20Z")

</div>

Hi All, I have been working for quite a while now on a set of modules for hadoop (hdfs and hive/impala mainly), that I found very useful and helped me greatly to automate my deployments and operations on hadoop. So I wo…

---

## [Ansible dynamic inventory: Authentication error retrieving ec2 inventory](https://forum.ansible.com/t/ansible-dynamic-inventory-authentication-error-retrieving-ec2-inventory/23808)

<div class="topic-metadata">

**Author:** [@Prithula\_Mukherjee](https://forum.ansible.com/u/Prithula_Mukherjee)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 4:28pm UTC](https://forum.ansible.com/t/ansible-dynamic-inventory-authentication-error-retrieving-ec2-inventory/23808 "2017-02-24T16:28:06Z")

</div>

I am using Ansible’s Dynamic Inventory feature to connect to the ec2 instances in AWS account using below: AWS\_PROFILE=personal ansible-playbook cifarm.yml -C I have copied the https://raw.github.com/ansible/ansible/de…

---

## [Can't use ansible with user/password if keyfile exists](https://forum.ansible.com/t/cant-use-ansible-with-user-password-if-keyfile-exists/23805)

<div class="topic-metadata">

**Author:** [@Andreas\_Goetz](https://forum.ansible.com/u/Andreas_Goetz)\
**Replies:** 0\
**Last updated:** [February 24, 2017, 10:24am UTC](https://forum.ansible.com/t/cant-use-ansible-with-user-password-if-keyfile-exists/23805 "2017-02-24T10:24:22Z")

</div>

In https://github.com/ansible/ansible/issues/21867 I’ve noticed that ansible ignores the -u user -k parameters if a keyfile exists (in my case an unusable 1023bits key) and still insists on using that key. I anybody abl…

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

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