# Archives

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

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

**Page:** 578

---

## [copy module bug?](https://forum.ansible.com/t/copy-module-bug/21869)

<div class="topic-metadata">

**Author:** [@Oscar\_Hodgson](https://forum.ansible.com/u/Oscar_Hodgson)\
**Replies:** 2\
**Last updated:** [June 27, 2016, 10:39pm UTC](https://forum.ansible.com/t/copy-module-bug/21869 "2016-06-27T22:39:40Z")

</div>

Ansible 2.2.0 Copy module documentation says, “Options / force: the default is yes, which will replace the remote file when contents are different than the source. If no, the file will only be transferred if the destina…

---

## [Handling changes to \`ansible\_user\` host/group var for Windows hosts that change Active Directory domain membership](https://forum.ansible.com/t/handling-changes-to-ansible-user-host-group-var-for-windows-hosts-that-change-active-directory-domain-membership/21858)

<div class="topic-metadata">

**Author:** [@Kenny\_Evitt](https://forum.ansible.com/u/Kenny_Evitt)\
**Replies:** 2\
**Last updated:** [June 27, 2016, 7:17pm UTC](https://forum.ansible.com/t/handling-changes-to-ansible-user-host-group-var-for-windows-hosts-that-change-active-directory-domain-membership/21858 "2016-06-27T19:17:45Z")

</div>

I’m currently using Ansible to automate an Active Directory domain migration. I’m developing playbooks (and modules and, eventually, roles) in a test environment currently, but this particular issue seems applicable to a…

---

## [jenkins+Ansible](https://forum.ansible.com/t/jenkins-ansible/21863)

<div class="topic-metadata">

**Author:** [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Replies:** 1\
**Last updated:** [June 27, 2016, 5:55pm UTC](https://forum.ansible.com/t/jenkins-ansible/21863 "2016-06-27T17:55:06Z")

</div>

Hello , i want to execute a playbook from jenkins ,so i installed ansible plugin .but when i try to execute the playbook i got a problem of permission denied . is there some roles to attribute to jenkins ? need some h…

---

## [If/when should playbooks manage concerns across multiple hosts / groups?](https://forum.ansible.com/t/if-when-should-playbooks-manage-concerns-across-multiple-hosts-groups/21868)

<div class="topic-metadata">

**Author:** [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 3:15pm UTC](https://forum.ansible.com/t/if-when-should-playbooks-manage-concerns-across-multiple-hosts-groups/21868 "2016-06-27T15:15:44Z")

</div>

Scenario: Application A needs 1) SSH access to Application B hosts and 2) database privileges to database on Database C hosts. Solution 1: Application A’s SSH access and database privileges managed with Application B an…

---

## [IOS\_template - option to ignore errors](https://forum.ansible.com/t/ios-template-option-to-ignore-errors/21866)

<div class="topic-metadata">

**Author:** [@AmirC](https://forum.ansible.com/u/AmirC)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 2:01pm UTC](https://forum.ansible.com/t/ios-template-option-to-ignore-errors/21866 "2016-06-27T14:01:01Z")

</div>

Hi, I am currently testing the functionality of the Ansible network configuration and the scenario i have is that i want to run a generic setup configuration against a number of switches. The configuration may contain s…

---

## [Python script using different ssh port](https://forum.ansible.com/t/python-script-using-different-ssh-port/21865)

<div class="topic-metadata">

**Author:** [@Idan\_null](https://forum.ansible.com/u/Idan_null)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 1:30pm UTC](https://forum.ansible.com/t/python-script-using-different-ssh-port/21865 "2016-06-27T13:30:24Z")

</div>

Hello everyone, I’m using the Ansible 2 module in Python to connect to a host with different port (not 22) The script I’m using is: https://github.com/ansible/ansible/blob/devel/examples/scripts/uptime.py But my ssh …

---

## [Provisioning VMs](https://forum.ansible.com/t/provisioning-vms/21861)

<div class="topic-metadata">

**Author:** [@Sargon](https://forum.ansible.com/u/Sargon)\
**Replies:** 1\
**Last updated:** [June 27, 2016, 12:43pm UTC](https://forum.ansible.com/t/provisioning-vms/21861 "2016-06-27T12:43:41Z")

</div>

Hello I want to automate the creation of VMs on Virtualbox (CentOs) and then run a series of wget/yum commands to set up the necessary software. I am sure this has been done many times already, so before I re-invent t…

---

## [set\_fact with single item array gets flattened -- by design?](https://forum.ansible.com/t/set-fact-with-single-item-array-gets-flattened-by-design/21864)

<div class="topic-metadata">

**Author:** [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 11:19am UTC](https://forum.ansible.com/t/set-fact-with-single-item-array-gets-flattened-by-design/21864 "2016-06-27T11:19:53Z")

</div>

(ansible 2.1) I have a set\_fact like: name: Get plant agent data from consul set\_fact: myfact: “{{ lookup(‘consul\_kv’, ‘mykey recurse=true’) }}” When the lookup returns an array of size \>= 2, ‘myfact’ is assigned t…

---

## [How setup server on AWS cloud.using playbook.?](https://forum.ansible.com/t/how-setup-server-on-aws-cloud-using-playbook/21862)

<div class="topic-metadata">

**Author:** [@rameshlinux86](https://forum.ansible.com/u/rameshlinux86)\
**Replies:** 0\
**Last updated:** [June 27, 2016, 7:05am UTC](https://forum.ansible.com/t/how-setup-server-on-aws-cloud-using-playbook/21862 "2016-06-27T07:05:44Z")

</div>

Hi Team, I need small help from Ansible-playbooks. how to setup virtual server by using ansible-playbook on AWS cloud.? please reply me as soon as possible. Regards. Ramana.

---

## [Ansible ec2\_asg module  expiring AWS credentials if wait for long](https://forum.ansible.com/t/ansible-ec2-asg-module-expiring-aws-credentials-if-wait-for-long/21860)

<div class="topic-metadata">

**Author:** [@KARL](https://forum.ansible.com/u/KARL)\
**Replies:** 0\
**Last updated:** [June 26, 2016, 9:46am UTC](https://forum.ansible.com/t/ansible-ec2-asg-module-expiring-aws-credentials-if-wait-for-long/21860 "2016-06-26T09:46:00Z")

</div>

I have ansible module which generates temp AWS credentials fro 15 mins. My instances take about 20 mins to come up. So Ansible ASG module keep waiting untill they pass health checks. But after mins my AWS credentails e…

---

## [Docker and add\_host:  I'm doing it wrong.](https://forum.ansible.com/t/docker-and-add-host-im-doing-it-wrong/21850)

<div class="topic-metadata">

**Author:** [@William\_George](https://forum.ansible.com/u/William_George)\
**Replies:** 4\
**Last updated:** [June 25, 2016, 7:06pm UTC](https://forum.ansible.com/t/docker-and-add-host-im-doing-it-wrong/21850 "2016-06-25T19:06:09Z")

</div>

So I’ve got to manage a relatively dynamic fleet of machines in the wild. Wanting to keep the running environment of these things as bare-bones as possible, so decision was made to have all the complex bits inside of do…

---

## [Automating monitoring/alerting as part of ansible](https://forum.ansible.com/t/automating-monitoring-alerting-as-part-of-ansible/21859)

<div class="topic-metadata">

**Author:** [@Eric\_C](https://forum.ansible.com/u/Eric_C)\
**Replies:** 0\
**Last updated:** [June 25, 2016, 12:14am UTC](https://forum.ansible.com/t/automating-monitoring-alerting-as-part-of-ansible/21859 "2016-06-25T00:14:32Z")

</div>

I’m in the process of a complete overhall / rewrite of our deployment / provisioning systems using ansible for a distributed, microservices based, highly available architecture living on the AWS cloud. In parallel I’ve…

---

## [Host unreachable but I can ssh in without a password.](https://forum.ansible.com/t/host-unreachable-but-i-can-ssh-in-without-a-password/21857)

<div class="topic-metadata">

**Author:** [@Andy\_Wright](https://forum.ansible.com/u/Andy_Wright)\
**Replies:** 1\
**Last updated:** [June 24, 2016, 6:44pm UTC](https://forum.ansible.com/t/host-unreachable-but-i-can-ssh-in-without-a-password/21857 "2016-06-24T18:44:37Z")

</div>

Hey, I am loving Ansible and it works beautifully with Vagrant and Ubuntu 14.04. However, I have been trying to get it to provision a remote server (also Ubuntu 14.04). I am using a Mac running the latest El Capitan an…

---

## [Ansible bastion host unreachable?](https://forum.ansible.com/t/ansible-bastion-host-unreachable/21834)

<div class="topic-metadata">

**Author:** [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Replies:** 2\
**Last updated:** [June 24, 2016, 6:35pm UTC](https://forum.ansible.com/t/ansible-bastion-host-unreachable/21834 "2016-06-24T18:35:00Z")

</div>

I am trying to access an EC2 instance with Ansible installed on another EC2 instance; my hosts are setup with a bastion host. I have been following this post http://blog.scottlowe.org/2015/12/24/running-ansible-through-s…

---

## [Request to get elb instances fails randomly](https://forum.ansible.com/t/request-to-get-elb-instances-fails-randomly/21683)

<div class="topic-metadata">

**Author:** [@ivan\_farre\_Vicente](https://forum.ansible.com/u/ivan_farre_Vicente)\
**Replies:** 4\
**Last updated:** [June 24, 2016, 5:54pm UTC](https://forum.ansible.com/t/request-to-get-elb-instances-fails-randomly/21683 "2016-06-24T17:54:36Z")

</div>

Hi there, We have been seeing a very high number of SSL error ‘The read operation timed out’ while using the aws API via ec2\_elb ansible module. {“failed”: true, “item”: “eb-development”, “module\_stderr”: "Traceback (m…

---

## [Ansible and 'Ubuntu on Windows'](https://forum.ansible.com/t/ansible-and-ubuntu-on-windows/21117)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 5\
**Last updated:** [June 24, 2016, 4:55pm UTC](https://forum.ansible.com/t/ansible-and-ubuntu-on-windows/21117 "2016-06-24T16:55:11Z")

</div>

Hello, Microsoft announced Ubuntu on Windows recently - there’s a bit of information about it here: https://insights.ubuntu.com/2016/03/30/ubuntu-on-windows-the-ubuntu-userspace-for-windows-developers/ Obviously this …

---

## [Write raw file with newlines intact](https://forum.ansible.com/t/write-raw-file-with-newlines-intact/21849)

<div class="topic-metadata">

**Author:** [@Geoff\_Webster](https://forum.ansible.com/u/Geoff_Webster)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 4:49pm UTC](https://forum.ansible.com/t/write-raw-file-with-newlines-intact/21849 "2016-06-24T16:49:07Z")

</div>

Hi all, I am attempting to slurp/cat a file from one server, store it as a variable and then write it out on a second server. This file however has newlines ‘\\n’ explicitly written in it and I need to write it back out …

---

## [Ansible and Intersystems Cache'/Ensemble](https://forum.ansible.com/t/ansible-and-intersystems-cache-ensemble/21461)

<div class="topic-metadata">

**Author:** [@tom.elmer](https://forum.ansible.com/u/tom.elmer)\
**Replies:** 3\
**Last updated:** [June 24, 2016, 12:54pm UTC](https://forum.ansible.com/t/ansible-and-intersystems-cache-ensemble/21461 "2016-06-24T12:54:01Z")

</div>

Has anyone in the community used Ansible with Intersystems Cache’/Ensemble? If so, can you guide me to information about how to do so? Thanks, Tom FYI: I am brand new to Ansible and any tool like it.

---

## [Triggering playbook within rc.local](https://forum.ansible.com/t/triggering-playbook-within-rc-local/21851)

<div class="topic-metadata">

**Author:** [@Xiaohui\_Liu](https://forum.ansible.com/u/Xiaohui_Liu)\
**Replies:** 0\
**Last updated:** [June 24, 2016, 2:39am UTC](https://forum.ansible.com/t/triggering-playbook-within-rc-local/21851 "2016-06-24T02:39:06Z")

</div>

I met a problem using ansible-playbook today. I prepared a playbook, and tried to trigger the playbook inside rc.local. The idea is that the machine will be bootstrapped automatically on boot. But rc.local does not out…

---

## [iptables - Extrapositioned exclamation point](https://forum.ansible.com/t/iptables-extrapositioned-exclamation-point/21848)

<div class="topic-metadata">

**Author:** [@Pat\_Roy](https://forum.ansible.com/u/Pat_Roy)\
**Replies:** 0\
**Last updated:** [June 23, 2016, 8:02pm UTC](https://forum.ansible.com/t/iptables-extrapositioned-exclamation-point/21848 "2016-06-23T20:02:00Z")

</div>

Is there a way in Ansible / the iptables module to do something like this? iptables -A OUTPUT ! -d 1.1.1.1 -j ACCEPT Note the ! is before the -d option. This documentation https://docs.ansible.com/ansible/iptables\_mod…

---

## [how to extract a substring from a variable value inside a template](https://forum.ansible.com/t/how-to-extract-a-substring-from-a-variable-value-inside-a-template/21847)

<div class="topic-metadata">

**Author:** [@Nino\_Pineda](https://forum.ansible.com/u/Nino_Pineda)\
**Replies:** 0\
**Last updated:** [June 23, 2016, 7:18pm UTC](https://forum.ansible.com/t/how-to-extract-a-substring-from-a-variable-value-inside-a-template/21847 "2016-06-23T19:18:00Z")

</div>

Hello, Does someone knows how to extract a substring from a variable? For example; name: repo-name/some\_dir subdir: /some\_dir i want to perform in a template something like: ansible-pull -d /{{ name - subdir }} an…

---

## [Ansible forks, serial and all that just for one group?](https://forum.ansible.com/t/ansible-forks-serial-and-all-that-just-for-one-group/21837)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 2\
**Last updated:** [June 23, 2016, 6:58pm UTC](https://forum.ansible.com/t/ansible-forks-serial-and-all-that-just-for-one-group/21837 "2016-06-23T18:58:50Z")

</div>

Dear all, I know that by setting "serial: 1" in a play I can make sure that only one host is being changed at a time. This overrides the forks setting. But both settings are either global (forks) or per-play. I need …

---

## [Problems with ssh connections to hosts behind jumphost](https://forum.ansible.com/t/problems-with-ssh-connections-to-hosts-behind-jumphost/21807)

<div class="topic-metadata">

**Author:** [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Replies:** 7\
**Last updated:** [June 23, 2016, 6:56pm UTC](https://forum.ansible.com/t/problems-with-ssh-connections-to-hosts-behind-jumphost/21807 "2016-06-23T18:56:47Z")

</div>

Dear all, I have some hosts that I can only reach via a jumphost. So, my .ssh/config contains: Host foobar ... ProxyCommand ssh -W %h:%p whatever ... I have a strange, intermittent issue, that I can connect …

---

## [Domain Authentication](https://forum.ansible.com/t/domain-authentication/21844)

<div class="topic-metadata">

**Author:** [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Replies:** 2\
**Last updated:** [June 23, 2016, 5:23pm UTC](https://forum.ansible.com/t/domain-authentication/21844 "2016-06-23T17:23:35Z")

</div>

Hi I am trying to authenticated to server using domain credentials. I watch the following video with Matt Davis, https://www.ansible.com/webinars-training/ask-an-expert-ansible-and-windows, and he mentions that with An…

---

## [config managing JBoss II: The XMLening](https://forum.ansible.com/t/config-managing-jboss-ii-the-xmlening/21841)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 5\
**Last updated:** [June 23, 2016, 5:17pm UTC](https://forum.ansible.com/t/config-managing-jboss-ii-the-xmlening/21841 "2016-06-23T17:17:44Z")

</div>

I ased a few weeks ago about taming JBoss (AS7.1 / EAP6) with Ansible (1.9.x) - started in on it this week and I'm hitting the hurdles I'd predicted then (bit of a war story incoming, feel free to skip to the 'Help!' s…

---

## [Build automation using ESXi, Ansible, Pysphere](https://forum.ansible.com/t/build-automation-using-esxi-ansible-pysphere/17193)

<div class="topic-metadata">

**Author:** [@Patel\_Parimal](https://forum.ansible.com/u/Patel_Parimal)\
**Replies:** 56\
**Last updated:** [June 23, 2016, 4:15pm UTC](https://forum.ansible.com/t/build-automation-using-esxi-ansible-pysphere/17193 "2016-06-23T16:15:02Z")

</div>

Hi, I am newbie to Ansible. I have gone through the online documentation and examples for creating new VM on Ansible Docs - vsphere\_guest (http://docs.ansible.com/vsphere\_guest\_module.html). I want to automate VM crea…

---

## [AWS ELB Module - ec2\_elb\_lb - Rate Exceeded](https://forum.ansible.com/t/aws-elb-module-ec2-elb-lb-rate-exceeded/21846)

<div class="topic-metadata">

**Author:** [@james4](https://forum.ansible.com/u/james4)\
**Replies:** 1\
**Last updated:** [June 23, 2016, 3:46pm UTC](https://forum.ansible.com/t/aws-elb-module-ec2-elb-lb-rate-exceeded/21846 "2016-06-23T15:46:30Z")

</div>

My understanding was boto handled this with exponential backoff and retry. However exceptions don’t seem to be handled. We a lot of jobs running playbooks in parallel and when multiple jobs kick off, most of the fail due…

---

## [Variable definition best practice](https://forum.ansible.com/t/variable-definition-best-practice/21785)

<div class="topic-metadata">

**Author:** [@Mpampis\_Mpigkonias](https://forum.ansible.com/u/Mpampis_Mpigkonias)\
**Replies:** 2\
**Last updated:** [June 23, 2016, 3:18pm UTC](https://forum.ansible.com/t/variable-definition-best-practice/21785 "2016-06-23T15:18:45Z")

</div>

Hello, I use some fact variables in my playbook in my tasks code (I’ve been using roles). I know that they don’t need to be defined in the vars part, but is it a good practice to do so? I have something like: hostnam…

---

## [Need help with a static inventory of dynamic groups](https://forum.ansible.com/t/need-help-with-a-static-inventory-of-dynamic-groups/21845)

<div class="topic-metadata">

**Author:** [@pporada](https://forum.ansible.com/u/pporada)\
**Replies:** 1\
**Last updated:** [June 23, 2016, 2:48pm UTC](https://forum.ansible.com/t/need-help-with-a-static-inventory-of-dynamic-groups/21845 "2016-06-23T14:48:58Z")

</div>

=================================================== Here is my static inventory of dynamic groups \[tag\_ENV\_prod\] \[tag\_ROLES\_bastion\] \[prod-bastion:children\] tag\_ROLES\_bastion:&tag\_ENV\_prod \[prod-servers:children\] tag\_EN…

---

## [How conect two diferent ansible master node?](https://forum.ansible.com/t/how-conect-two-diferent-ansible-master-node/21835)

<div class="topic-metadata">

**Author:** [@Hugo\_Enrique\_Hernand](https://forum.ansible.com/u/Hugo_Enrique_Hernand)\
**Replies:** 2\
**Last updated:** [June 23, 2016, 2:22pm UTC](https://forum.ansible.com/t/how-conect-two-diferent-ansible-master-node/21835 "2016-06-23T14:22:52Z")

</div>

Hi All I very newbie with ansible. I have a dummy question : In my work we have two diferent network, but in the middle i have a FW, so i have 2 ansible server in each network, so the A ansible server only saw 50 host…

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

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