# Archives

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

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

**Page:** 552

---

## [Run a handler as a different user](https://forum.ansible.com/t/run-a-handler-as-a-different-user/22626)

<div class="topic-metadata">

**Author:** [@Gordon\_Ross](https://forum.ansible.com/u/Gordon_Ross)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 7:11pm UTC](https://forum.ansible.com/t/run-a-handler-as-a-different-user/22626 "2016-09-23T19:11:19Z")

</div>

I have a handler that I wish to run as a different user to the user Ansible normal logs in as. My playbooks execute with the “—become” flag so they run as root, but this particular task needs to run as the application u…

---

## [Deployment issue](https://forum.ansible.com/t/deployment-issue/22627)

<div class="topic-metadata">

**Author:** [@fgbane](https://forum.ansible.com/u/fgbane)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 6:57pm UTC](https://forum.ansible.com/t/deployment-issue/22627 "2016-09-23T18:57:47Z")

</div>

Hi, I am running a deployment on remote node PLAY \[configuring instances\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* TASK \[setup\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* e\[0;32mok:…

---

## [Ansiblefest + Contributor Summit Brooklyn, updates!](https://forum.ansible.com/t/ansiblefest-contributor-summit-brooklyn-updates/22632)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 6:20pm UTC](https://forum.ansible.com/t/ansiblefest-contributor-summit-brooklyn-updates/22632 "2016-09-23T18:20:17Z")

</div>

Update #1: Community Discount Code for Ansiblefest Brooklyn We’ve got a 30% discount for all contributors who want to join us at AnsibleFest on Tuesday, October 11th in Brooklyn. Just go sign up at https://www.ansible.c…

---

## [Ansible hangs indefinitely when trying to sudo apt-get install on Ubuntu machine](https://forum.ansible.com/t/ansible-hangs-indefinitely-when-trying-to-sudo-apt-get-install-on-ubuntu-machine/22631)

<div class="topic-metadata">

**Author:** [@H\_Cui](https://forum.ansible.com/u/H_Cui)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 5:51pm UTC](https://forum.ansible.com/t/ansible-hangs-indefinitely-when-trying-to-sudo-apt-get-install-on-ubuntu-machine/22631 "2016-09-23T17:51:36Z")

</div>

Hello, I’m testing an Ansible playbook and kept getting this indefinite hangs on sudo apt-get install command Ubuntu machine, I’m using Ansible version 1.4.8. server and client are both Ubuntu 14.04 since currently I’m u…

---

## [Need help with Ansible Deployment](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630)

<div class="topic-metadata">

**Author:** [@venkat\_r](https://forum.ansible.com/u/venkat_r)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 5:23pm UTC](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630 "2016-09-23T17:23:08Z")

</div>

Hi All, I am new to Ansible. I need to install the following softwares in server using Anisble . 1 Java 1.8 M MongoDB 3.2.8 Redis 2.4.6 I am using this playbook. However, it installs mongodb 3.2.9 and a higher versi…

---

## [How to point \`vars\` to matching \`vault\_\`?](https://forum.ansible.com/t/how-to-point-vars-to-matching-vault/22622)

<div class="topic-metadata">

**Author:** [@jason.bornhoft](https://forum.ansible.com/u/jason.bornhoft)\
**Replies:** 5\
**Last updated:** [September 23, 2016, 4:45pm UTC](https://forum.ansible.com/t/how-to-point-vars-to-matching-vault/22622 "2016-09-23T16:45:44Z")

</div>

I’m using vault for the first time (previously used dotenv) and am following the instructions here. Specifically, the line: You should adjust the variables in the vars file to point to the matchingvault\_ variables A…

---

## [How to refresh Ansible Dynamic Inventory (vCenter Server)?](https://forum.ansible.com/t/how-to-refresh-ansible-dynamic-inventory-vcenter-server/22462)

<div class="topic-metadata">

**Author:** [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Replies:** 6\
**Last updated:** [September 23, 2016, 4:14pm UTC](https://forum.ansible.com/t/how-to-refresh-ansible-dynamic-inventory-vcenter-server/22462 "2016-09-23T16:14:14Z")

</div>

We are building an Ansible playbook which takes care of creating VMs in VMware vCenter and is later expected to perform some operations inside the newly created VMs. While the creation of VMs is successful, there seems t…

---

## [Role played on all hosts, condition  "when: 'group' in group\_names" not correctly evaluated](https://forum.ansible.com/t/role-played-on-all-hosts-condition-when-group-in-group-names-not-correctly-evaluated/22616)

<div class="topic-metadata">

**Author:** [@Valerie\_P](https://forum.ansible.com/u/Valerie_P)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 4:06pm UTC](https://forum.ansible.com/t/role-played-on-all-hosts-condition-when-group-in-group-names-not-correctly-evaluated/22616 "2016-09-23T16:06:28Z")

</div>

Hi, I am using Ansible 2.2.0 to configure network devices. I have a problem with the evaluation of a condition using "when: ‘group’ in group\_names’. The playbook is : \` name: Configure topologies hosts: “{{ TOPO }}…

---

## [Ansible tower installation Prablem](https://forum.ansible.com/t/ansible-tower-installation-prablem/22624)

<div class="topic-metadata">

**Author:** [@Vasanth\_Kasirajan](https://forum.ansible.com/u/Vasanth_Kasirajan)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 3:33pm UTC](https://forum.ansible.com/t/ansible-tower-installation-prablem/22624 "2016-09-23T15:33:09Z")

</div>

Hi Team We are trying to install ansible tower trial version “ansible-tower-setup-3.0.2”. When we run ./setup.sh we are getting below exception. Could you please let us know what should be done to fix this. Note: We ha…

---

## [JSON formatting on register value.](https://forum.ansible.com/t/json-formatting-on-register-value/22620)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 3:32pm UTC](https://forum.ansible.com/t/json-formatting-on-register-value/22620 "2016-09-23T15:32:26Z")

</div>

I have a playbook that use the S3 module to list items: \` name: List s3 bucket local\_action: module: s3 bucket: “{{ S3\_BUCKET\_NAME }}” mode: list register: S3\_LIST\_ITEM \` The result I output to a file using lin…

---

## [Cloudformation Boto3 Update](https://forum.ansible.com/t/cloudformation-boto3-update/22127)

<div class="topic-metadata">

**Author:** [@Soren\_Olegnowicz](https://forum.ansible.com/u/Soren_Olegnowicz)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 3:14pm UTC](https://forum.ansible.com/t/cloudformation-boto3-update/22127 "2016-09-23T15:14:18Z")

</div>

Is anybody updating the Cloudformation module for the new features from boto3? i.e. Change Sets, Event Description, etc… https://docs.aws.amazon.com/cli/latest/reference/cloudformation/index.html#cli-aws-cloudformatio…

---

## [Support for Cloudformation change sets](https://forum.ansible.com/t/support-for-cloudformation-change-sets/22589)

<div class="topic-metadata">

**Author:** [@Toni\_Juvani](https://forum.ansible.com/u/Toni_Juvani)\
**Replies:** 2\
**Last updated:** [September 23, 2016, 3:11pm UTC](https://forum.ansible.com/t/support-for-cloudformation-change-sets/22589 "2016-09-23T15:11:58Z")

</div>

Hi, We have implemented our AWS resource stacks using Cloudformation templates chained using Ansible. Previously the problem has been that I don’t know for sure what is going to happen after schanges to the templates an…

---

## [How to conditionally include other playbooks?](https://forum.ansible.com/t/how-to-conditionally-include-other-playbooks/22608)

<div class="topic-metadata">

**Author:** [@Tristan\_Muntsinger](https://forum.ansible.com/u/Tristan_Muntsinger)\
**Replies:** 4\
**Last updated:** [September 23, 2016, 2:13pm UTC](https://forum.ansible.com/t/how-to-conditionally-include-other-playbooks/22608 "2016-09-23T14:13:36Z")

</div>

I tried this and it isn’t working as expected: test.yml \`

---

## [SSH agent forwarding doesn't work after upgrading from 1.9 to 2.1](https://forum.ansible.com/t/ssh-agent-forwarding-doesnt-work-after-upgrading-from-1-9-to-2-1/22625)

<div class="topic-metadata">

**Author:** [@Mikael\_Wallin](https://forum.ansible.com/u/Mikael_Wallin)\
**Replies:** 0\
**Last updated:** [September 23, 2016, 1:01pm UTC](https://forum.ansible.com/t/ssh-agent-forwarding-doesnt-work-after-upgrading-from-1-9-to-2-1/22625 "2016-09-23T13:01:01Z")

</div>

I had working playbooks that work with agent forwarding. I upgraded to ansible 2.1 and I seem not to be able to get agent forwarding to work. //inventory \[machines\] machine\[07:07\] //main.yml

---

## [ansible ec2.py discovery with assume\_role & MFA](https://forum.ansible.com/t/ansible-ec2-py-discovery-with-assume-role-mfa/22609)

<div class="topic-metadata">

**Author:** [@matthieu.isoard](https://forum.ansible.com/u/matthieu.isoard)\
**Replies:** 1\
**Last updated:** [September 23, 2016, 12:41pm UTC](https://forum.ansible.com/t/ansible-ec2-py-discovery-with-assume-role-mfa/22609 "2016-09-23T12:41:41Z")

</div>

Hi Before using Ansible with some roles I prepared, I wanted to check the ec2.py autodiscovery script. However, all the accounts I have setup on AWS need to login to a first account which uses MFA & then assume a role b…

---

## [Critical fix needed in stable-2.1](https://forum.ansible.com/t/critical-fix-needed-in-stable-2-1/22399)

<div class="topic-metadata">

**Author:** [@kalambur2179](https://forum.ansible.com/u/kalambur2179)\
**Replies:** 4\
**Last updated:** [September 23, 2016, 7:03am UTC](https://forum.ansible.com/t/critical-fix-needed-in-stable-2-1/22399 "2016-09-23T07:03:04Z")

</div>

Hi We use ansible heavily and the following bug fix is very critical in 2.1 https://github.com/ansible/ansible/pull/16680/commits/16a3f28f6efa7ac3ab59970863bcc12434585350 Its basically blocks using docker\_container mo…

---

## [How Network Modules using openssh controlpersist  feature?](https://forum.ansible.com/t/how-network-modules-using-openssh-controlpersist-feature/22594)

<div class="topic-metadata">

**Author:** [@jacky.gao2016](https://forum.ansible.com/u/jacky.gao2016)\
**Replies:** 3\
**Last updated:** [September 22, 2016, 9:21pm UTC](https://forum.ansible.com/t/how-network-modules-using-openssh-controlpersist-feature/22594 "2016-09-22T21:21:38Z")

</div>

I find that the Network Modules must use paramiko, does paramiko support openssh ControlPersist similar feature? building ssh connection by paramiko: Code in module\_util/shell.py def open(self, host, port=22, username…

---

## [Which of .bashrc, .profile, .bash\_profile, .bash\_login or .login is used?](https://forum.ansible.com/t/which-of-bashrc-profile-bash-profile-bash-login-or-login-is-used/22582)

<div class="topic-metadata">

**Author:** [@Harald\_Kubota](https://forum.ansible.com/u/Harald_Kubota)\
**Replies:** 6\
**Last updated:** [September 22, 2016, 9:16pm UTC](https://forum.ansible.com/t/which-of-bashrc-profile-bash-profile-bash-login-or-login-is-used/22582 "2016-09-22T21:16:28Z")

</div>

Hi, Still learning Ansible, so if this is a stupid question, let me know. I’d like to know which (if any) of the typical shell init files are used when executing commands via the shell module. Specifically I’d like to …

---

## [How do I use openSSH instead of paramiko (i.e. no connection:local) for IOS modules?](https://forum.ansible.com/t/how-do-i-use-openssh-instead-of-paramiko-i-e-no-connection-local-for-ios-modules/22613)

<div class="topic-metadata">

**Author:** [@Johann\_Lo](https://forum.ansible.com/u/Johann_Lo)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 9:14pm UTC](https://forum.ansible.com/t/how-do-i-use-openssh-instead-of-paramiko-i-e-no-connection-local-for-ios-modules/22613 "2016-09-22T21:14:15Z")

</div>

I’m trying to use the ios networking modules (ios\_config, ios\_template etc.) and the only way I can get them to work properly is via connection: local and passing the parameters to each task via something like this hos…

---

## [YAML and colons -- cannot escape / quote -- need help](https://forum.ansible.com/t/yaml-and-colons-cannot-escape-quote-need-help/22621)

<div class="topic-metadata">

**Author:** [@John\_Leo\_Huetter](https://forum.ansible.com/u/John_Leo_Huetter)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 6:59pm UTC](https://forum.ansible.com/t/yaml-and-colons-cannot-escape-quote-need-help/22621 "2016-09-22T18:59:10Z")

</div>

Hello … I am invoking puppet agent -t from Ansible, and since some puppet non-zero return codes are OK, I am parsing the stdout to look for errors and fail if any errors are seen. In this case, the error string I am lo…

---

## [unable to install exchange 2016 using ansible](https://forum.ansible.com/t/unable-to-install-exchange-2016-using-ansible/22528)

<div class="topic-metadata">

**Author:** [@Chandra\_Pandey](https://forum.ansible.com/u/Chandra_Pandey)\
**Replies:** 10\
**Last updated:** [September 22, 2016, 5:40pm UTC](https://forum.ansible.com/t/unable-to-install-exchange-2016-using-ansible/22528 "2016-09-22T17:40:59Z")

</div>

I get error while installing fresh exchange 2016 server using ansible — ExchangeSetup.log Error Active Directory operation failed on . The supplied credential for ‘ADS\\Chandra Pandey’ is invalid. \[09/12/2016 19:34:45.…

---

## [Docker - how to exec after brining up container](https://forum.ansible.com/t/docker-how-to-exec-after-brining-up-container/22619)

<div class="topic-metadata">

**Author:** [@Joaquin\_Menchaca](https://forum.ansible.com/u/Joaquin_Menchaca)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 5:16pm UTC](https://forum.ansible.com/t/docker-how-to-exec-after-brining-up-container/22619 "2016-09-22T17:16:51Z")

</div>

After brining up a docker container name: Docker Container docker: name: superduper image: mycompany/superduper/“{{ git\_hash\_short }}” state: reloaded pull: always command: bash “{{ path\_to\_script }}”/wrapper.sh …

---

## [Limit hosts for nested playbook](https://forum.ansible.com/t/limit-hosts-for-nested-playbook/22610)

<div class="topic-metadata">

**Author:** [@awiddersheim](https://forum.ansible.com/u/awiddersheim)\
**Replies:** 2\
**Last updated:** [September 22, 2016, 4:19pm UTC](https://forum.ansible.com/t/limit-hosts-for-nested-playbook/22610 "2016-09-22T16:19:54Z")

</div>

Is it possible to limit the hosts that run against a nested playbook? For example, I have a site.yml file that includes other playbooks like so:

---

## [Attempting to install elasticsearch plugins results in error "msg: implementation error: unknown type path requested for plugin\_bin"](https://forum.ansible.com/t/attempting-to-install-elasticsearch-plugins-results-in-error-msg-implementation-error-unknown-type-path-requested-for-plugin-bin/22618)

<div class="topic-metadata">

**Author:** [@Sean\_Meacher](https://forum.ansible.com/u/Sean_Meacher)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 3:05pm UTC](https://forum.ansible.com/t/attempting-to-install-elasticsearch-plugins-results-in-error-msg-implementation-error-unknown-type-path-requested-for-plugin-bin/22618 "2016-09-22T15:05:32Z")

</div>

Hi, I’m attempting to automate the creation of elasticsearch nodes via ansible, using the appropriate module. in the yml I have: name: add elasticsearch plugins elasticsearch\_plugin: state=present name=“license” al…

---

## [reconfigure winrm via ansible?](https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 2:57pm UTC](https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614 "2016-09-22T14:57:23Z")

</div>

Hi, Has anyone managed to successfully reconfigure winrm remotely via a playbook? I need to up some timeouts and increase the MaxMemoryPerShellMB I know that reconfiguring winrm is one of the things that is specificall…

---

## [Is get\_url resumable ?](https://forum.ansible.com/t/is-get-url-resumable/22617)

<div class="topic-metadata">

**Author:** [@Stuart\_Axon](https://forum.ansible.com/u/Stuart_Axon)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 2:42pm UTC](https://forum.ansible.com/t/is-get-url-resumable/22617 "2016-09-22T14:42:14Z")

</div>

I’m converting a script uses wget -c to be able to resume download of a large file - wget -q --show-progress -c “http://somedistr/somedistro.zip” -P /tmp/myproject Can get\_url resume interrupted downloads in the same w…

---

## [Examples of Multiple Instances of a "thing" on a single box](https://forum.ansible.com/t/examples-of-multiple-instances-of-a-thing-on-a-single-box/22598)

<div class="topic-metadata">

**Author:** [@Nick\_Tkach](https://forum.ansible.com/u/Nick_Tkach)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 1:52pm UTC](https://forum.ansible.com/t/examples-of-multiple-instances-of-a-thing-on-a-single-box/22598 "2016-09-22T13:52:17Z")

</div>

Does anyone know of any good examples of having more than one instance of an app per box? Most examples seem to be grouped into something like web\_servers group has boxes 1,2,3 and has a nice, neat one httpd on 1, one ht…

---

## [Executing python script through ansible keeps saying that Permission denied even though become: yes is specified](https://forum.ansible.com/t/executing-python-script-through-ansible-keeps-saying-that-permission-denied-even-though-become-yes-is-specified/22602)

<div class="topic-metadata">

**Author:** [@Robert\_Grossman](https://forum.ansible.com/u/Robert_Grossman)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 12:48pm UTC](https://forum.ansible.com/t/executing-python-script-through-ansible-keeps-saying-that-permission-denied-even-though-become-yes-is-specified/22602 "2016-09-22T12:48:11Z")

</div>

Hi, I am new to ansible and I have been trying to execute a python script through a task. I have tried the command, script, and shell modules, but ansible is unable to execute this script. If I try using the command mod…

---

## [Ansible 1.9 - how to combine variables from different sources](https://forum.ansible.com/t/ansible-1-9-how-to-combine-variables-from-different-sources/22615)

<div class="topic-metadata">

**Author:** [@P11](https://forum.ansible.com/u/P11)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 11:26am UTC](https://forum.ansible.com/t/ansible-1-9-how-to-combine-variables-from-different-sources/22615 "2016-09-22T11:26:52Z")

</div>

Hi all, so far most of our servers were running RHEL 6. We are going to prepare some RHEL 7 servers soon and I am now trying to rewrite our playbooks to be able cope with different releases of the same OS. There is of…

---

## [Open Source: Usage/Licence/Community Edition?](https://forum.ansible.com/t/open-source-usage-licence-community-edition/22605)

<div class="topic-metadata">

**Author:** [@Dan1](https://forum.ansible.com/u/Dan1)\
**Replies:** 2\
**Last updated:** [September 22, 2016, 9:21am UTC](https://forum.ansible.com/t/open-source-usage-licence-community-edition/22605 "2016-09-22T09:21:49Z")

</div>

Hi, sorry, stupid question… does Open Source here mean that I can use Ansible and build upon it for my business project without buying the product? On the homepage I only find “free trial”, not “community edition”… Th…

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

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