# Archives

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

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

**Page:** 515

---

## [How to create an unprivileged user and intialize its GPG config?](https://forum.ansible.com/t/how-to-create-an-unprivileged-user-and-intialize-its-gpg-config/23695)

<div class="topic-metadata">

**Author:** [@Gabriel\_Birke](https://forum.ansible.com/u/Gabriel_Birke)\
**Replies:** 4\
**Last updated:** [February 11, 2017, 9:52am UTC](https://forum.ansible.com/t/how-to-create-an-unprivileged-user-and-intialize-its-gpg-config/23695 "2017-02-11T09:52:43Z")

</div>

I’d like to create a user and import a GPG key into its GPG keychain. I thought the easiest way to do this would be to impersonate him, so the configuration and key files created by the gpg tool have the right onwership …

---

## [Ansible execution workflow](https://forum.ansible.com/t/ansible-execution-workflow/22254)

<div class="topic-metadata">

**Author:** [@knowshan](https://forum.ansible.com/u/knowshan)\
**Replies:** 2\
**Last updated:** [February 11, 2017, 7:33am UTC](https://forum.ansible.com/t/ansible-execution-workflow/22254 "2017-02-11T07:33:53Z")

</div>

I was wondering if there is any documentation available that describes how Ansible works or provides any architecture diagram. I am assuming general steps in Ansible execution are: Establish SSH connection with a remot…

---

## [uri module not returning full content](https://forum.ansible.com/t/uri-module-not-returning-full-content/23706)

<div class="topic-metadata">

**Author:** [@Cool\_Coder](https://forum.ansible.com/u/Cool_Coder)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 7:00am UTC](https://forum.ansible.com/t/uri-module-not-returning-full-content/23706 "2017-02-11T07:00:27Z")

</div>

I’m trying to get the vcloud vApp information using ansible URI module to access the vCloud REST API’s and see that the returned content doesnt have the full XML. I occasionally saw the full XML being returned but most o…

---

## [How to install  Huawei CloudEngine Ansible library ?](https://forum.ansible.com/t/how-to-install-huawei-cloudengine-ansible-library/23705)

<div class="topic-metadata">

**Author:** [@Cesar\_Rodriguez](https://forum.ansible.com/u/Cesar_Rodriguez)\
**Replies:** 0\
**Last updated:** [February 11, 2017, 1:45am UTC](https://forum.ansible.com/t/how-to-install-huawei-cloudengine-ansible-library/23705 "2017-02-11T01:45:58Z")

</div>

Hi, I am currently working on a project to automate network devices configuration with ansible, but I can’t find the way to install the Huawei CloudEngine Ansible library. ;c Ansible Network Module http://docs.ansible.…

---

## [creating multiple ec2 instances with different tag names](https://forum.ansible.com/t/creating-multiple-ec2-instances-with-different-tag-names/21585)

<div class="topic-metadata">

**Author:** [@Eric\_S1](https://forum.ansible.com/u/Eric_S1)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 8:10pm UTC](https://forum.ansible.com/t/creating-multiple-ec2-instances-with-different-tag-names/21585 "2017-02-10T20:10:18Z")

</div>

What’s the best way to create multiple ec2 instances with all different name tags. So say I do a count=3 and tag each one but i want each of the tagName =

---

## [Want to work on issue #17329, need help to proceed.](https://forum.ansible.com/t/want-to-work-on-issue-17329-need-help-to-proceed/23701)

<div class="topic-metadata">

**Author:** [@Ankit\_Yadav](https://forum.ansible.com/u/Ankit_Yadav)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 7:47pm UTC](https://forum.ansible.com/t/want-to-work-on-issue-17329-need-help-to-proceed/23701 "2017-02-10T19:47:28Z")

</div>

HI everyone, I am Ankit, a final year computer engineering student. I wanted to work on the issue #17329. I am familiar with python. I will appreciate any guidance to solve this issue. Regards, Ankit Yadav.

---

## [Contributing new features into the win\_get\_url core module](https://forum.ansible.com/t/contributing-new-features-into-the-win-get-url-core-module/23629)

<div class="topic-metadata">

**Author:** [@Edit\_Karasz](https://forum.ansible.com/u/Edit_Karasz)\
**Replies:** 3\
**Last updated:** [February 10, 2017, 6:38pm UTC](https://forum.ansible.com/t/contributing-new-features-into-the-win-get-url-core-module/23629 "2017-02-10T18:38:22Z")

</div>

Hi, I have extended the win\_get\_url Ansible module with some new features for my own purposes and I am wondering how can I contribute it back? My local version is: able to download a directory with subdirectories/fil…

---

## [Ansible and Proxy Authentication](https://forum.ansible.com/t/ansible-and-proxy-authentication/17445)

<div class="topic-metadata">

**Author:** [@titleistfour](https://forum.ansible.com/u/titleistfour)\
**Replies:** 4\
**Last updated:** [February 10, 2017, 5:03pm UTC](https://forum.ansible.com/t/ansible-and-proxy-authentication/17445 "2017-02-10T17:03:05Z")

</div>

Hello, I’m having some trouble getting proxy authentication to work in Ansible. I have a simple playbook I’m using to test with the uri module and a remote REST API service. hosts: localhost connection: localhost va…

---

## [Output Failed even if command gets executed successfully](https://forum.ansible.com/t/output-failed-even-if-command-gets-executed-successfully/23644)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 5\
**Last updated:** [February 10, 2017, 4:30pm UTC](https://forum.ansible.com/t/output-failed-even-if-command-gets-executed-successfully/23644 "2017-02-10T16:30:51Z")

</div>

How to ignore failed command or in case the result set has no output. I need the output should be success if it won’t find anything relevant mentioned in the condition. /usr/bin/ansible node1 -a “grep ‘value1’ /tmp/test…

---

## [How to control access with sudo and FreeIPA](https://forum.ansible.com/t/how-to-control-access-with-sudo-and-freeipa/23531)

<div class="topic-metadata">

**Author:** [@Rodrigo\_B\_Brasil](https://forum.ansible.com/u/Rodrigo_B_Brasil)\
**Replies:** 3\
**Last updated:** [February 10, 2017, 2:16pm UTC](https://forum.ansible.com/t/how-to-control-access-with-sudo-and-freeipa/23531 "2017-02-10T14:16:45Z")

</div>

Hello all! I’m trying to establish some access control when non-administrative user were running playbooks with Ansible. All the sudo rules are inherited from FreeIPA and now my only option is to create a sudo rule tha…

---

## [My domain proxy requires user name and password, How to configure it in Ansible Play](https://forum.ansible.com/t/my-domain-proxy-requires-user-name-and-password-how-to-configure-it-in-ansible-play/23703)

<div class="topic-metadata">

**Author:** [@Dwarika\_Prasad](https://forum.ansible.com/u/Dwarika_Prasad)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 12:55pm UTC](https://forum.ansible.com/t/my-domain-proxy-requires-user-name-and-password-how-to-configure-it-in-ansible-play/23703 "2017-02-10T12:55:56Z")

</div>

Hi, My domain proxy requires user name and password, How to configure it in Ansible Play I have configured the proxy in my playbook as below - vars: proxy\_env: http\_proxy: webproxy.mydomain.com:8080 But I can’t fin…

---

## [vault and git do not mix](https://forum.ansible.com/t/vault-and-git-do-not-mix/23607)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 9\
**Last updated:** [February 10, 2017, 12:47pm UTC](https://forum.ansible.com/t/vault-and-git-do-not-mix/23607 "2017-02-10T12:47:03Z")

</div>

I can’t be the only one having this problem: We’re using vault files to store sensitive info (such as passwords or private keys). Vault files, along with Ansible playbooks, roles, inventories, etc are checked into GitHu…

---

## [tests: Run integration tests on PRs for CloudStack](https://forum.ansible.com/t/tests-run-integration-tests-on-prs-for-cloudstack/23524)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [February 10, 2017, 12:15pm UTC](https://forum.ansible.com/t/tests-run-integration-tests-on-prs-for-cloudstack/23524 "2017-02-10T12:15:02Z")

</div>

Hi I am not sure if this fits onto the devel ML, so if there is a better place to discuss it, let me know. I've worked on the automated integration testing for cloudstack modules and just wanted to get some feedback …

---

## [Pull mode best practices and tooling?](https://forum.ansible.com/t/pull-mode-best-practices-and-tooling/23700)

<div class="topic-metadata">

**Author:** [@Danny](https://forum.ansible.com/u/Danny)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 5:13am UTC](https://forum.ansible.com/t/pull-mode-best-practices-and-tooling/23700 "2017-02-10T05:13:19Z")

</div>

Hi, I’m testing out Ansible and although I see ansible-pull mentioned in a lot of different resources, it looks pretty bare-bones (which I guess is kind of the point). I’m wondering what people’s experience has been like…

---

## [Conditional continues to monitor result.  Bug or Feature?](https://forum.ansible.com/t/conditional-continues-to-monitor-result-bug-or-feature/22712)

<div class="topic-metadata">

**Author:** [@Mike\_Schlottman](https://forum.ansible.com/u/Mike_Schlottman)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:58am UTC](https://forum.ansible.com/t/conditional-continues-to-monitor-result-bug-or-feature/22712 "2017-02-10T03:58:03Z")

</div>

I have a playbook that checks to see if ansible can ssh to a VM. If it cannot, it assigns a role of deploy\_vm\_from\_template to the host. During the process of deploying the VM the host gets booted, the network is configu…

---

## [Var of var in Ansible Playbook](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22308)

<div class="topic-metadata">

**Author:** [@Saad](https://forum.ansible.com/u/Saad)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:47am UTC](https://forum.ansible.com/t/var-of-var-in-ansible-playbook/22308 "2017-02-10T03:47:19Z")

</div>

Hello, i try to do a var of var in a playbook on Ansible but i can’t figure out how to do this proprly, or if it is even possible ? here is what i try to do : "name : {{ groups\['{{ ANOTHER\_VAR\_HERE }}'\]\[0\] }}" Ansibl…

---

## [How to run local play with remote inventory?](https://forum.ansible.com/t/how-to-run-local-play-with-remote-inventory/22388)

<div class="topic-metadata">

**Author:** [@Daniel\_Q\_Miranda](https://forum.ansible.com/u/Daniel_Q_Miranda)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:45am UTC](https://forum.ansible.com/t/how-to-run-local-play-with-remote-inventory/22388 "2017-02-10T03:45:31Z")

</div>

Greetings, I’m using Ansible 2.1.1.0 to manage EC2 hosts, with the ec2.py inventory script. I want to run a play locally that uses the EC2 inventory to generate configuration, but I’m having some trouble. If I use: ho…

---

## [How to  do password management](https://forum.ansible.com/t/how-to-do-password-management/23213)

<div class="topic-metadata">

**Author:** [@Dave\_B](https://forum.ansible.com/u/Dave_B)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:41am UTC](https://forum.ansible.com/t/how-to-do-password-management/23213 "2017-02-10T03:41:00Z")

</div>

Hi Struggling to get my head around this. According to the best practices, I’ve put the root password for all the vms in a vault encrypted file, and the variables are vault\_ prefixed as suggested in http://docs.ansible.…

---

## [From within a role, call another role and pass variables at runtime?](https://forum.ansible.com/t/from-within-a-role-call-another-role-and-pass-variables-at-runtime/22968)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:37am UTC](https://forum.ansible.com/t/from-within-a-role-call-another-role-and-pass-variables-at-runtime/22968 "2017-02-10T03:37:21Z")

</div>

Hello - Can Ansible call a role from within another role, as if it’s calling a function? Could that other role be passed certain variables at runtime? I have a few tasks that are repeated several times in my plays. Rig…

---

## [How to use "add\_host" (or "group\_by" and/or "set\_facts") to dynamically add new hosts to existing/new groups in the playbook inventory (to running play or play's following it in the same run)?](https://forum.ansible.com/t/how-to-use-add-host-or-group-by-and-or-set-facts-to-dynamically-add-new-hosts-to-existing-new-groups-in-the-playbook-inventory-to-running-play-or-plays-following-it-in-the-same-run/23003)

<div class="topic-metadata">

**Author:** [@LXC-dev\_Koha-Lappi](https://forum.ansible.com/u/LXC-dev_Koha-Lappi)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:36am UTC](https://forum.ansible.com/t/how-to-use-add-host-or-group-by-and-or-set-facts-to-dynamically-add-new-hosts-to-existing-new-groups-in-the-playbook-inventory-to-running-play-or-plays-following-it-in-the-same-run/23003 "2017-02-10T03:36:10Z")

</div>

As suggested by @jimi-c (https://github.com/jimi-c), I post here the follow-up discussion of this ticket: https://github.com/ansible/ansible/issues/6912, which concerns the inability and issues to use add\_host or group\_b…

---

## [Clean unused images with Docker Container / Image Module](https://forum.ansible.com/t/clean-unused-images-with-docker-container-image-module/23619)

<div class="topic-metadata">

**Author:** [@Denis\_Chekirda](https://forum.ansible.com/u/Denis_Chekirda)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:30am UTC](https://forum.ansible.com/t/clean-unused-images-with-docker-container-image-module/23619 "2017-02-10T03:30:32Z")

</div>

Hi, are there any information how we could clean / remove unused images from servers after deploy of new docker container with docker\_container mode? Currently i’m interesting in module usage with any shell. Are those…

---

## [Using variable substitution with replace module and regex](https://forum.ansible.com/t/using-variable-substitution-with-replace-module-and-regex/22180)

<div class="topic-metadata">

**Author:** [@Auto-mate](https://forum.ansible.com/u/Auto-mate)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:29am UTC](https://forum.ansible.com/t/using-variable-substitution-with-replace-module-and-regex/22180 "2017-02-10T03:29:49Z")

</div>

Hi, I have two register variable in a play and want to replace one with another in a play.

---

## [Host classification problem](https://forum.ansible.com/t/host-classification-problem/22162)

<div class="topic-metadata">

**Author:** [@Jan\_Jungmann](https://forum.ansible.com/u/Jan_Jungmann)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:27am UTC](https://forum.ansible.com/t/host-classification-problem/22162 "2017-02-10T03:27:52Z")

</div>

Hi all, I am having a problem with host classification. In my hosts file i have a “nodejs:children” group with application “foo”. “foo” has server-a. In site.yml I use hosts: nodejs:&{{ application }} and assign a role.…

---

## ["ansible-vault edit" with vi - how to force writing?](https://forum.ansible.com/t/ansible-vault-edit-with-vi-how-to-force-writing/22202)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:24am UTC](https://forum.ansible.com/t/ansible-vault-edit-with-vi-how-to-force-writing/22202 "2017-02-10T03:24:27Z")

</div>

Hi I'm using "ansible-vault edit" to edit an encrypted vars file, using the default editor, which is vi. While working on the file, I routinely save it from vi (using ':w'), but noticed that the changes were written …

---

## [Please help with these error](https://forum.ansible.com/t/please-help-with-these-error/22237)

<div class="topic-metadata">

**Author:** [@Bob\_Benson](https://forum.ansible.com/u/Bob_Benson)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:23am UTC](https://forum.ansible.com/t/please-help-with-these-error/22237 "2017-02-10T03:23:19Z")

</div>

agrant@mgmt:/vagrant$ ansible-playbook e45-ssh-addkey.yml -vvvvv Using /vagrant/ansible.cfg as config file ERROR! Unexpected Exception: dictionary update sequence element #0 has length 3; 2 is required the full traceb…

---

## [Module "include\_vars" fails with when using "file" parameter](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22352)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:19am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22352 "2017-02-10T03:19:45Z")

</div>

Hi, when using the include\_module with the "file" parameter, it fails with AttributeError: 'NoneType' object has no attribute 'startswith'. This works fine: ----- testmyvars\_1.yml -----------

---

## [Questions regarding porting action plugin from 1.8.x to 2.x](https://forum.ansible.com/t/questions-regarding-porting-action-plugin-from-1-8-x-to-2-x/22233)

<div class="topic-metadata">

**Author:** [@David\_Reuss](https://forum.ansible.com/u/David_Reuss)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 3:10am UTC](https://forum.ansible.com/t/questions-regarding-porting-action-plugin-from-1-8-x-to-2-x/22233 "2017-02-10T03:10:13Z")

</div>

Hi, I’ve delayed porting my pre 2.0 action plugins, but now it’s finally time to attempt to upgrade to ansible 2.x, and i have a few questions. The porting guide is rather lacking in details, especially regarding actio…

---

## [Cpu/ram config for ansilbe host when deploy on hundreds of nodes](https://forum.ansible.com/t/cpu-ram-config-for-ansilbe-host-when-deploy-on-hundreds-of-nodes/23699)

<div class="topic-metadata">

**Author:** [@ying\_chen](https://forum.ansible.com/u/ying_chen)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 2:54am UTC](https://forum.ansible.com/t/cpu-ram-config-for-ansilbe-host-when-deploy-on-hundreds-of-nodes/23699 "2017-02-10T02:54:13Z")

</div>

Hi guys, I have a cluster of hundreds of nodes on cloud, and have a dedicated VM for ansible. I wonder what kind of cpu/memory should be prepared for ansible host. Shall it depend on number of nodes or playbook content…

---

## [playbook - Could not resolve hostname ~/ssh.conf:](https://forum.ansible.com/t/playbook-could-not-resolve-hostname-ssh-conf/23187)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 1\
**Last updated:** [February 10, 2017, 2:53am UTC](https://forum.ansible.com/t/playbook-could-not-resolve-hostname-ssh-conf/23187 "2017-02-10T02:53:40Z")

</div>

Please help , Ansible playbook failing with the error "failed connect to host via ssh’ \[root@localhost infrastructure\]# ansible-playbook -i /home/swathi/Desktop/infrastructure/production/ python\_request.yml PLAY \[meso…

---

## [ansible ad-hoc commands using vault](https://forum.ansible.com/t/ansible-ad-hoc-commands-using-vault/23698)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 2:50am UTC](https://forum.ansible.com/t/ansible-ad-hoc-commands-using-vault/23698 "2017-02-10T02:50:37Z")

</div>

The private\_key\_file in config is for using your private ssh keys to connect, not for yaml encrypted files, Ansible will not decrypt it.

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

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