# Archives

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

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

**Page:** 548

---

## [Command not working on remote host through shell module or playbook](https://forum.ansible.com/t/command-not-working-on-remote-host-through-shell-module-or-playbook/22590)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 4\
**Last updated:** [October 9, 2016, 10:16am UTC](https://forum.ansible.com/t/command-not-working-on-remote-host-through-shell-module-or-playbook/22590 "2016-10-09T10:16:21Z")

</div>

Ansible version: ansible 1.9.2 I am unable to execute following command from shell module neither through playbook. It could be any command at the run time. While reading found $,% need the escape string. Tried but not …

---

## [Using consul for dynamic inventory](https://forum.ansible.com/t/using-consul-for-dynamic-inventory/22752)

<div class="topic-metadata">

**Author:** [@Mike\_Mester](https://forum.ansible.com/u/Mike_Mester)\
**Replies:** 0\
**Last updated:** [October 9, 2016, 4:33am UTC](https://forum.ansible.com/t/using-consul-for-dynamic-inventory/22752 "2016-10-09T04:33:40Z")

</div>

Hello, I am looking to utilize consul to dynamically update my inventory system for ansible. Here is the scenario: I am running openstack and using the openstack provisioning features in ansible. The instances get a dy…

---

## [Tmp files still being](https://forum.ansible.com/t/tmp-files-still-being/22750)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [October 9, 2016, 12:48am UTC](https://forum.ansible.com/t/tmp-files-still-being/22750 "2016-10-09T00:48:29Z")

</div>

install Ubuntu 13.1 then \` apt-get install git python-pip setuptools $ git clone git://github.com/ansible/ansible.git --recursive $ cd ./ansible \` $ source ./hacking/env-setup $ source ./hacking/env-setup -q p…

---

## [regex\_replace filter is not working](https://forum.ansible.com/t/regex-replace-filter-is-not-working/22730)

<div class="topic-metadata">

**Author:** [@Venkata\_Jaswanth\_U](https://forum.ansible.com/u/Venkata_Jaswanth_U)\
**Replies:** 2\
**Last updated:** [October 8, 2016, 3:04pm UTC](https://forum.ansible.com/t/regex-replace-filter-is-not-working/22730 "2016-10-08T15:04:03Z")

</div>

Hi all. I am trying to use regex\_replace to capture the host name in a url. This is the code : {{ openerp\_url | regex\_replace(‘^(?:h.//)?(.)(?:(?::|/).\*)$’, ‘\\1’) }}. But, when the playbook is run, it is only giving \\1 …

---

## [Using ansible api,tmp files still being](https://forum.ansible.com/t/using-ansible-api-tmp-files-still-being/22748)

<div class="topic-metadata">

**Author:** [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Replies:** 0\
**Last updated:** [October 8, 2016, 5:42am UTC](https://forum.ansible.com/t/using-ansible-api-tmp-files-still-being/22748 "2016-10-08T05:42:22Z")

</div>

my env is Ubuntu 13.1，ansible 2.1 I am using the official example to learn ansible api, $ cat official.py https://github.com/haroldTlan/ansible/blob/master/official.py but tmp file still there $ cd /.ansible/tmp $ …

---

## [Confused about "statically included" playbooks in version "2.1.2.0"](https://forum.ansible.com/t/confused-about-statically-included-playbooks-in-version-2-1-2-0/22734)

<div class="topic-metadata">

**Author:** [@Jay\_LaCroix](https://forum.ansible.com/u/Jay_LaCroix)\
**Replies:** 1\
**Last updated:** [October 8, 2016, 12:19am UTC](https://forum.ansible.com/t/confused-about-statically-included-playbooks-in-version-2-1-2-0/22734 "2016-10-08T00:19:37Z")

</div>

I have just started seeing output on my playbook runs, similar to the following: statically included: /home/ansible/git/ansible/roles/base/tasks/mail.rc.yml statically included: /home/ansible/git/ansible/roles/base/tas…

---

## [Using Ansible docker\_service module to deploy service to swarm](https://forum.ansible.com/t/using-ansible-docker-service-module-to-deploy-service-to-swarm/22746)

<div class="topic-metadata">

**Author:** [@Bo\_Stone](https://forum.ansible.com/u/Bo_Stone)\
**Replies:** 0\
**Last updated:** [October 7, 2016, 9:22pm UTC](https://forum.ansible.com/t/using-ansible-docker-service-module-to-deploy-service-to-swarm/22746 "2016-10-07T21:22:35Z")

</div>

I’m trying to deploy a Docker service into swarm but always ending up with running container on my localhost (the one I use as a docker swarm manager) and no service Here’s my setup: I have 3 node Docker (v. 1.12.1) sw…

---

## [Best way to extend/configure roles from Ansible-Galaxy](https://forum.ansible.com/t/best-way-to-extend-configure-roles-from-ansible-galaxy/22743)

<div class="topic-metadata">

**Author:** [@Dave\_G](https://forum.ansible.com/u/Dave_G)\
**Replies:** 1\
**Last updated:** [October 7, 2016, 5:33pm UTC](https://forum.ansible.com/t/best-way-to-extend-configure-roles-from-ansible-galaxy/22743 "2016-10-07T17:33:25Z")

</div>

I really like how easy it is to import roles from Ansible-Galaxy. I have installed a redis role. I don’t want to check this remote role into my repo and have gitignored it (I install it with requirements.yml). What is …

---

## [ios clear command expect confirm](https://forum.ansible.com/t/ios-clear-command-expect-confirm/22604)

<div class="topic-metadata">

**Author:** [@Valerie\_P](https://forum.ansible.com/u/Valerie_P)\
**Replies:** 2\
**Last updated:** [October 7, 2016, 3:36pm UTC](https://forum.ansible.com/t/ios-clear-command-expect-confirm/22604 "2016-10-07T15:36:03Z")

</div>

Hi, I have a question regarding the network core module “ios\_command”. I want to clear counters on some interfaces through a play. When I send the command directly through an SSH connection, the process is the following…

---

## [Is there are way to prevent concurrent execution of a single task?](https://forum.ansible.com/t/is-there-are-way-to-prevent-concurrent-execution-of-a-single-task/22742)

<div class="topic-metadata">

**Author:** [@Richard\_Eggert](https://forum.ansible.com/u/Richard_Eggert)\
**Replies:** 1\
**Last updated:** [October 7, 2016, 3:30pm UTC](https://forum.ansible.com/t/is-there-are-way-to-prevent-concurrent-execution-of-a-single-task/22742 "2016-10-07T15:30:05Z")

</div>

I have a local\_action using the lineinfile module to modify a single file on Ansible control server on behalf of each host in the inventory active for the current play, using information obtained from an earlier task in …

---

## [The module github\_key was not found in configured module paths](https://forum.ansible.com/t/the-module-github-key-was-not-found-in-configured-module-paths/22736)

<div class="topic-metadata">

**Author:** [@Brian\_Smith](https://forum.ansible.com/u/Brian_Smith)\
**Replies:** 1\
**Last updated:** [October 7, 2016, 3:29pm UTC](https://forum.ansible.com/t/the-module-github-key-was-not-found-in-configured-module-paths/22736 "2016-10-07T15:29:48Z")

</div>

I am trying to get this working and am using the example on the docs, but getting the error “The module github\_key was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, …

---

## [shell vs command with uuidgen](https://forum.ansible.com/t/shell-vs-command-with-uuidgen/22741)

<div class="topic-metadata">

**Author:** [@Francisco\_Javier\_Rom](https://forum.ansible.com/u/Francisco_Javier_Rom)\
**Replies:** 2\
**Last updated:** [October 7, 2016, 2:50pm UTC](https://forum.ansible.com/t/shell-vs-command-with-uuidgen/22741 "2016-10-07T14:50:55Z")

</div>

I have written next task: \` name: Generate uuidgen local\_action: command uuidgen -r \> {{ consul\_files\_dir }}/{{ datacenter }}/consul.uuidgen become: False run\_once: True when: consul\_uuidgen\_file.stat.exists == Fa…

---

## [Random \<ansible hostvar name\> is undefined error](https://forum.ansible.com/t/random-ansible-hostvar-name-is-undefined-error/22740)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 0\
**Last updated:** [October 7, 2016, 2:40pm UTC](https://forum.ansible.com/t/random-ansible-hostvar-name-is-undefined-error/22740 "2016-10-07T14:40:35Z")

</div>

I’m running ansible 2.2.0, and getting these weird varialbe is undefined errors. I’m getting them on variables i KNOW are in hostvars, such as ansible\_\_powershell\_version on a windows node. I know there was some chatter…

---

## [vsphere\_guest: is post-clone configuration on the roadmap?](https://forum.ansible.com/t/vsphere-guest-is-post-clone-configuration-on-the-roadmap/19984)

<div class="topic-metadata">

**Author:** [@Daniel\_Carl](https://forum.ansible.com/u/Daniel_Carl)\
**Replies:** 1\
**Last updated:** [October 7, 2016, 1:57pm UTC](https://forum.ansible.com/t/vsphere-guest-is-post-clone-configuration-on-the-roadmap/19984 "2016-10-07T13:57:55Z")

</div>

Hello, For out test environment we have a need to deploy a large number of Windows 7 VMs with customer software installed, which we run for a few days and destroy before the next build. I have been trying for a little o…

---

## [Unable to reach to EC2 instance using dynamic inventory with a single region](https://forum.ansible.com/t/unable-to-reach-to-ec2-instance-using-dynamic-inventory-with-a-single-region/22566)

<div class="topic-metadata">

**Author:** [@Nirav\_Radia](https://forum.ansible.com/u/Nirav_Radia)\
**Replies:** 11\
**Last updated:** [October 7, 2016, 1:36pm UTC](https://forum.ansible.com/t/unable-to-reach-to-ec2-instance-using-dynamic-inventory-with-a-single-region/22566 "2016-10-07T13:36:03Z")

</div>

Hi all, I am pretty new to Ansible. I am using ec2.py to connect to my EC2 instances and run my ansible scripts on them. Previously, it was working fine when I was using “all” regions. But now when I change the region t…

---

## [AES strength of vault encrypt?](https://forum.ansible.com/t/aes-strength-of-vault-encrypt/22738)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 2\
**Last updated:** [October 7, 2016, 12:19pm UTC](https://forum.ansible.com/t/aes-strength-of-vault-encrypt/22738 "2016-10-07T12:19:57Z")

</div>

Hello, in the documentation to Vault is written that AES is used to encrypt the files. Do someone know the key strenght? Is it aes-128 bits, aes-256 bits or maybe aes-512 bits? Thanks in advance for your reply. Regard…

---

## [How can i install Ansible dev versions on docker containers that do not have connectivity to internet](https://forum.ansible.com/t/how-can-i-install-ansible-dev-versions-on-docker-containers-that-do-not-have-connectivity-to-internet/22737)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [October 7, 2016, 8:59am UTC](https://forum.ansible.com/t/how-can-i-install-ansible-dev-versions-on-docker-containers-that-do-not-have-connectivity-to-internet/22737 "2016-10-07T08:59:20Z")

</div>

I am trying to maintain different versions of Ansible in different centos 7 based docker containers. Due to some company policies, the containers are not allowed to make http calls. I used yum to install latest Ansible r…

---

## [Can't set ownership to system user](https://forum.ansible.com/t/cant-set-ownership-to-system-user/22555)

<div class="topic-metadata">

**Author:** [@user74](https://forum.ansible.com/u/user74)\
**Replies:** 9\
**Last updated:** [October 7, 2016, 6:53am UTC](https://forum.ansible.com/t/cant-set-ownership-to-system-user/22555 "2016-10-07T06:53:11Z")

</div>

Hello. I have a server with Ubuntu Server 16.04.1. I test some ansible features on it from my desktop with Ubuntu 16.04.1. So I have system user “www-data” for Apache with uid=33(www-data) gid=33(www-data) groups=33(ww…

---

## [more weirdness when testing include\_role](https://forum.ansible.com/t/more-weirdness-when-testing-include-role/22709)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 6\
**Last updated:** [October 6, 2016, 9:12pm UTC](https://forum.ansible.com/t/more-weirdness-when-testing-include-role/22709 "2016-10-06T21:12:35Z")

</div>

Here’s another oddity. As far as I can see from the docs, this should work (“myrole” lives in roles/myrole in the plabook folder)

---

## [How to configure Vyatta router using ansible 2.0 version?](https://forum.ansible.com/t/how-to-configure-vyatta-router-using-ansible-2-0-version/22724)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [October 6, 2016, 7:26pm UTC](https://forum.ansible.com/t/how-to-configure-vyatta-router-using-ansible-2-0-version/22724 "2016-10-06T19:26:08Z")

</div>

I am trying to configure vyatta router using modules provided by ansible 2.0 version. However, the commands such as “configure” are not supported by shell module as it is the configure command is not executed from /bin/s…

---

## [Statically Included Output for 2.2 (devel branch)](https://forum.ansible.com/t/statically-included-output-for-2-2-devel-branch/22702)

<div class="topic-metadata">

**Author:** [@steve5](https://forum.ansible.com/u/steve5)\
**Replies:** 2\
**Last updated:** [October 6, 2016, 6:54pm UTC](https://forum.ansible.com/t/statically-included-output-for-2-2-devel-branch/22702 "2016-10-06T18:54:26Z")

</div>

When I start up my provisioning with 2.2 (devel branch) I get a lot of output with the message “static included: \<file\_name\>”. I am including files in various parts of my play, but I was wondering if there was a way I co…

---

## [Azure China Cloud](https://forum.ansible.com/t/azure-china-cloud/22732)

<div class="topic-metadata">

**Author:** [@Maciek\_Dolny](https://forum.ansible.com/u/Maciek_Dolny)\
**Replies:** 1\
**Last updated:** [October 6, 2016, 5:22pm UTC](https://forum.ansible.com/t/azure-china-cloud/22732 "2016-10-06T17:22:44Z")

</div>

Hi there, I cannot connect Ansible to AzureChinaCloud, is there any manual o can someone help me with that issue ? I know that authentication site, servers are different than the other Azure instances. For normal user…

---

## [timing out](https://forum.ansible.com/t/timing-out/22726)

<div class="topic-metadata">

**Author:** [@Tanuj\_Chinnu](https://forum.ansible.com/u/Tanuj_Chinnu)\
**Replies:** 1\
**Last updated:** [October 6, 2016, 4:33pm UTC](https://forum.ansible.com/t/timing-out/22726 "2016-10-06T16:33:51Z")

</div>

fatal: \[myhostname\]: FAILED! =\> {“changed”: false, “elapsed”: 300, “failed”: true, “msg”: “Timeout when waiting for 127.0.0.1:portnumber”}

---

## [rackspace add webhook to policy](https://forum.ansible.com/t/rackspace-add-webhook-to-policy/22728)

<div class="topic-metadata">

**Author:** [@Albert\_de\_Jongh](https://forum.ansible.com/u/Albert_de_Jongh)\
**Replies:** 0\
**Last updated:** [October 6, 2016, 11:02am UTC](https://forum.ansible.com/t/rackspace-add-webhook-to-policy/22728 "2016-10-06T11:02:15Z")

</div>

I’m curious if this is possible using the ansible cloud modules? It is possible to create the auto scale group and its accompanying policies. For the autoscaling to be really useful you have to be able to get it to autom…

---

## [Playbook task to name a file...](https://forum.ansible.com/t/playbook-task-to-name-a-file/22727)

<div class="topic-metadata">

**Author:** [@Ben\_Hart](https://forum.ansible.com/u/Ben_Hart)\
**Replies:** 0\
**Last updated:** [October 6, 2016, 3:58am UTC](https://forum.ansible.com/t/playbook-task-to-name-a-file/22727 "2016-10-06T03:58:31Z")

</div>

So Im following the blog post here: http://www.kernel-overload.com/automatic-password-generator-to-work-with-ansible/ In my situation since I will be using this to change root on about 60 servers and due to security pol…

---

## [accessing ansible.cfg variables from within modules](https://forum.ansible.com/t/accessing-ansible-cfg-variables-from-within-modules/22717)

<div class="topic-metadata">

**Author:** [@Nayeem\_Syed](https://forum.ansible.com/u/Nayeem_Syed)\
**Replies:** 4\
**Last updated:** [October 5, 2016, 8:52am UTC](https://forum.ansible.com/t/accessing-ansible-cfg-variables-from-within-modules/22717 "2016-10-05T08:52:39Z")

</div>

hi there, i am trying to access a (new custom) section from the ansible.cfg into my module, at present it seems the only way to pass parameters to the module is via the module parameter. but i need to be able to have a …

---

## [How can i push locally created branch on a repository to origin via Ansible](https://forum.ansible.com/t/how-can-i-push-locally-created-branch-on-a-repository-to-origin-via-ansible/22720)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [October 5, 2016, 8:29am UTC](https://forum.ansible.com/t/how-can-i-push-locally-created-branch-on-a-repository-to-origin-via-ansible/22720 "2016-10-05T08:29:17Z")

</div>

Seems like there is isn’t any module in Ansible which can commit back to a GIT repo. My case is such that i am allowing the user to create a new branch in any of our several repositories and with the help of templates, g…

---

## [how to get ESX/i facts](https://forum.ansible.com/t/how-to-get-esx-i-facts/22723)

<div class="topic-metadata">

**Author:** [@hzj.zh](https://forum.ansible.com/u/hzj.zh)\
**Replies:** 0\
**Last updated:** [October 5, 2016, 2:14am UTC](https://forum.ansible.com/t/how-to-get-esx-i-facts/22723 "2016-10-05T02:14:48Z")

</div>

hello，all is there a way to get ESX/i host machine facts in vcenter ? not the virtual machine

---

## [Network switch module questions](https://forum.ansible.com/t/network-switch-module-questions/22706)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 1\
**Last updated:** [October 4, 2016, 9:10pm UTC](https://forum.ansible.com/t/network-switch-module-questions/22706 "2016-10-04T21:10:32Z")

</div>

I’ve been experimenting with the new-ish network switch modules. We have a heterogenous network switch inventory. Not all of our current switches are supported by existing Ansible network modules, most significantly th…

---

## [Run a task on host A then skip to host B, then return to host A to finish task](https://forum.ansible.com/t/run-a-task-on-host-a-then-skip-to-host-b-then-return-to-host-a-to-finish-task/22719)

<div class="topic-metadata">

**Author:** [@faithmjulian](https://forum.ansible.com/u/faithmjulian)\
**Replies:** 2\
**Last updated:** [October 4, 2016, 8:38pm UTC](https://forum.ansible.com/t/run-a-task-on-host-a-then-skip-to-host-b-then-return-to-host-a-to-finish-task/22719 "2016-10-04T20:38:41Z")

</div>

Hi please help

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

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