# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=192

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

**Page:** 193

---

## [Sourcing a script on a remote host to use the functions in the script](https://forum.ansible.com/t/sourcing-a-script-on-a-remote-host-to-use-the-functions-in-the-script/30225)

<div class="topic-metadata">

**Author:** [@bren85](https://forum.ansible.com/u/bren85)\
**Replies:** 3\
**Last updated:** [May 1, 2019, 2:39pm UTC](https://forum.ansible.com/t/sourcing-a-script-on-a-remote-host-to-use-the-functions-in-the-script/30225 "2019-05-01T14:39:02Z")

</div>

I am trying to source a script on a remote host so I can use the functions in it. I have tried: shell: source \[filename.sh\] && \[function name\] args: executable: /bin/bash and a lot of variations on this. Now I have…

---

## [Copy files between two remote servers WITHOUT synchronize module](https://forum.ansible.com/t/copy-files-between-two-remote-servers-without-synchronize-module/30228)

<div class="topic-metadata">

**Author:** [@Glen\_Collins](https://forum.ansible.com/u/Glen_Collins)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 1:36pm UTC](https://forum.ansible.com/t/copy-files-between-two-remote-servers-without-synchronize-module/30228 "2019-05-01T13:36:24Z")

</div>

Hello all! I have an issue in my environment where I cannot use the synchronize module to transfer data between two remote nodes. So I need a different way to do this. ServerA: Ansible Server (Tower Instance) ServerA1…

---

## [Ansible how to subtract two variables in a playbook?](https://forum.ansible.com/t/ansible-how-to-subtract-two-variables-in-a-playbook/30216)

<div class="topic-metadata">

**Author:** [@asmagana](https://forum.ansible.com/u/asmagana)\
**Replies:** 4\
**Last updated:** [May 1, 2019, 3:19am UTC](https://forum.ansible.com/t/ansible-how-to-subtract-two-variables-in-a-playbook/30216 "2019-05-01T03:19:35Z")

</div>

So I created a simple bash script to compare dates of the current date and last date of a directory that was last modified. What I am looking for is something done in Ansible that can take the converted date string of t…

---

## [How to mask connection string Passwords while connecting through DB using sqlplus ansible](https://forum.ansible.com/t/how-to-mask-connection-string-passwords-while-connecting-through-db-using-sqlplus-ansible/30217)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 4\
**Last updated:** [April 30, 2019, 5:31pm UTC](https://forum.ansible.com/t/how-to-mask-connection-string-passwords-while-connecting-through-db-using-sqlplus-ansible/30217 "2019-04-30T17:31:51Z")

</div>

I am running into an issue where ansible is spitting up password, which is a security breach as these logs will automatically uploads to developer shared location for review. How can I mask the passwords in spitting up h…

---

## [Load balancer for Ansible tower instances](https://forum.ansible.com/t/load-balancer-for-ansible-tower-instances/30223)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [April 30, 2019, 1:38pm UTC](https://forum.ansible.com/t/load-balancer-for-ansible-tower-instances/30223 "2019-04-30T13:38:28Z")

</div>

Hi Team, Can anyone explain why we need to setup http load balancers in front of tower instances ? I understand Tower has already RabbitMQ setup which will share job loads between Tower instances also New Tower has ins…

---

## [Problems with Ansible and WinRM](https://forum.ansible.com/t/problems-with-ansible-and-winrm/30222)

<div class="topic-metadata">

**Author:** [@Bryan\_Sanchez](https://forum.ansible.com/u/Bryan_Sanchez)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 11:02am UTC](https://forum.ansible.com/t/problems-with-ansible-and-winrm/30222 "2019-04-30T11:02:11Z")

</div>

Hello AnsibleProjectForum, im trying to deploy ansible with winrm module. First thing, sorry for my english, im not native english speaker. Im launching Ansible from Ubuntu to Windows. I have installed the necessary mo…

---

## [Update nodes /etc/hosts file from a master file](https://forum.ansible.com/t/update-nodes-etc-hosts-file-from-a-master-file/30207)

<div class="topic-metadata">

**Author:** [@ecrosby](https://forum.ansible.com/u/ecrosby)\
**Replies:** 9\
**Last updated:** [April 30, 2019, 7:40am UTC](https://forum.ansible.com/t/update-nodes-etc-hosts-file-from-a-master-file/30207 "2019-04-30T07:40:14Z")

</div>

I hope I am posting this to the correct area… I’m really new to Ansible and am in the process of trying to learn it. Question: Does Ansible have the ability to look at a master file that contains host file information …

---

## [How to build Ansible?](https://forum.ansible.com/t/how-to-build-ansible/30220)

<div class="topic-metadata">

**Author:** [@Matthew\_Davis](https://forum.ansible.com/u/Matthew_Davis)\
**Replies:** 1\
**Last updated:** [April 30, 2019, 7:34am UTC](https://forum.ansible.com/t/how-to-build-ansible/30220 "2019-04-30T07:34:32Z")

</div>

I asked this in github issue #55900 but got directed here. I want to contribute to Ansible. I have a patch I want to submit. But first I need to run it to make sure it actually works. How can I run Ansible from source…

---

## [stdout\_callback && fact\_caching = redis?](https://forum.ansible.com/t/stdout-callback-fact-caching-redis/30218)

<div class="topic-metadata">

**Author:** [@david.seddon](https://forum.ansible.com/u/david.seddon)\
**Replies:** 0\
**Last updated:** [April 30, 2019, 2:36am UTC](https://forum.ansible.com/t/stdout-callback-fact-caching-redis/30218 "2019-04-30T02:36:10Z")

</div>

G’day, With Ansible 2.5.9 is redis caching compatible with stdout\_callback please? We find that redis caching really helps the performance, however it seems to be incompatible with “stdout\_callback = json”. When redis …

---

## [Ansible date compare](https://forum.ansible.com/t/ansible-date-compare/23631)

<div class="topic-metadata">

**Author:** [@ns273520](https://forum.ansible.com/u/ns273520)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 10:31pm UTC](https://forum.ansible.com/t/ansible-date-compare/23631 "2019-04-29T22:31:12Z")

</div>

Hi. I am new to Ansible and facing some issues with date compare . Scnerio :- I have create e2 instances using ansible and i am able to retrieve the launch time of EC2. name: launch time and date of EC2 debug: var…

---

## [s3\_sync parameter file\_change\_strategy: date\_size does not appear to work](https://forum.ansible.com/t/s3-sync-parameter-file-change-strategy-date-size-does-not-appear-to-work/30208)

<div class="topic-metadata">

**Author:** [@Kane\_Consulting\_Grou](https://forum.ansible.com/u/Kane_Consulting_Grou)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 10:02pm UTC](https://forum.ansible.com/t/s3-sync-parameter-file-change-strategy-date-size-does-not-appear-to-work/30208 "2019-04-29T22:02:33Z")

</div>

So, I am trying to synchronize files to Amazon S3 using the s3\_sync module. The playbook works properly, with the exception of the file\_change\_strategy parameter date\_size. It seems to ignore files with same size, but di…

---

## [store the output of math operator](https://forum.ansible.com/t/store-the-output-of-math-operator/23727)

<div class="topic-metadata">

**Author:** [@DHAVAL\_JAISWAL](https://forum.ansible.com/u/DHAVAL_JAISWAL)\
**Replies:** 5\
**Last updated:** [April 29, 2019, 9:57pm UTC](https://forum.ansible.com/t/store-the-output-of-math-operator/23727 "2019-04-29T21:57:36Z")

</div>

name: Set the output of the this state set\_fact: A=“{{image\_avl.stdout}}” – this is coming from the previous registered output tags: avl1 name: Define our static value for the desired image number set\_fact: B={{r…

---

## [how do I email results that are easy to read and confirm each member was added successfully?](https://forum.ansible.com/t/how-do-i-email-results-that-are-easy-to-read-and-confirm-each-member-was-added-successfully/30151)

<div class="topic-metadata">

**Author:** [@Dennis\_Levens](https://forum.ansible.com/u/Dennis_Levens)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 9:51pm UTC](https://forum.ansible.com/t/how-do-i-email-results-that-are-easy-to-read-and-confirm-each-member-was-added-successfully/30151 "2019-04-29T21:51:17Z")

</div>

This script is working but the results are difficult to read in the email that is sent. Ideally I would like the email to say something like: The following Add: {{ member }} To: {{ group }} On: {{ ansible\_hostname }} \[…

---

## [Update ansible version](https://forum.ansible.com/t/update-ansible-version/30211)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 12:23pm UTC](https://forum.ansible.com/t/update-ansible-version/30211 "2019-04-29T12:23:07Z")

</div>

I have install ansible with yum install ansible in my Centos7 and install Ansible 2.4 version. I need Ansible 2.7. How is it done?

---

## [ios\_l2\_interface  network module add encapsulation](https://forum.ansible.com/t/ios-l2-interface-network-module-add-encapsulation/30206)

<div class="topic-metadata">

**Author:** [@David\_Carrena](https://forum.ansible.com/u/David_Carrena)\
**Replies:** 0\
**Last updated:** [April 28, 2019, 1:02am UTC](https://forum.ansible.com/t/ios-l2-interface-network-module-add-encapsulation/30206 "2019-04-28T01:02:55Z")

</div>

Hello Team, Is someone able to add with this module the encapsulation of the interface before setting trunk mode? I think it is missing on the module. I would like suggest to add “encapsulation” parameter otherwise we…

---

## [awx/tower api help wanted](https://forum.ansible.com/t/awx-tower-api-help-wanted/30204)

<div class="topic-metadata">

**Author:** [@ATHIRA\_sanoj](https://forum.ansible.com/u/ATHIRA_sanoj)\
**Replies:** 2\
**Last updated:** [April 27, 2019, 6:03pm UTC](https://forum.ansible.com/t/awx-tower-api-help-wanted/30204 "2019-04-27T18:03:52Z")

</div>

Hello Team team i am trying to launch a template with list of variable\_value but task is getting executed only in one target host sample request curl -H "Content-Type: application/json" -X POST -s -u admin:admin123 -d…

---

## [Nagios Module - Scheduling Downtime](https://forum.ansible.com/t/nagios-module-scheduling-downtime/30191)

<div class="topic-metadata">

**Author:** [@Douglas\_Thompson](https://forum.ansible.com/u/Douglas_Thompson)\
**Replies:** 2\
**Last updated:** [April 26, 2019, 8:00pm UTC](https://forum.ansible.com/t/nagios-module-scheduling-downtime/30191 "2019-04-26T20:00:21Z")

</div>

Hello, I’m trying to the Ansible nagios module to schedule downtime. In the documentation it says for ‘host’ to use ‘{{ inventor\_hostname }}’. I’m assuming this is an internal variable that gets the host name from the i…

---

## [When condition to check domainName](https://forum.ansible.com/t/when-condition-to-check-domainname/30164)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 2\
**Last updated:** [April 26, 2019, 5:08pm UTC](https://forum.ansible.com/t/when-condition-to-check-domainname/30164 "2019-04-26T17:08:05Z")

</div>

Hello, I am running into an issue, this is simple playbook which tries to copy right config file based on Domain name, I tried executing below code snippet it’s skipping the non prod and executing prod, Not sure whats w…

---

## [AWX Setup](https://forum.ansible.com/t/awx-setup/30202)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [April 26, 2019, 3:27pm UTC](https://forum.ansible.com/t/awx-setup/30202 "2019-04-26T15:27:13Z")

</div>

Hey all, has anyone out there ever setup AWX? How much different is it than tower? If you have set this up, do you have a good step-by-step instructions?

---

## [Ansible engine](https://forum.ansible.com/t/ansible-engine/30199)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 4\
**Last updated:** [April 26, 2019, 3:09pm UTC](https://forum.ansible.com/t/ansible-engine/30199 "2019-04-26T15:09:51Z")

</div>

Hi Team, I understand Ansible tower has capability to set up high availability. Can anyone let me know if Ansible engine has high availability setup? If so can you share sample architecture diagram. thanks Pushparaj

---

## [Trying to distribute Desktop Central agent to linux servers - prompt for 'reinstall' is teasing me, trying with 'expect'](https://forum.ansible.com/t/trying-to-distribute-desktop-central-agent-to-linux-servers-prompt-for-reinstall-is-teasing-me-trying-with-expect/30198)

<div class="topic-metadata">

**Author:** [@Kenneth\_Fribert](https://forum.ansible.com/u/Kenneth_Fribert)\
**Replies:** 1\
**Last updated:** [April 26, 2019, 1:45pm UTC](https://forum.ansible.com/t/trying-to-distribute-desktop-central-agent-to-linux-servers-prompt-for-reinstall-is-teasing-me-trying-with-expect/30198 "2019-04-26T13:45:57Z")

</div>

Hi All I’ve made a small playbook, that installs pip, and pexpect on our target servers, as I was thinking I needed to use the expect in the playbook. So the yaml looks like this: name: Installing Desktop Central Age…

---

## ["msg": "SSH Error: data could not be sent to remote host](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 2\
**Last updated:** [April 26, 2019, 11:29am UTC](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174 "2019-04-26T11:29:11Z")

</div>

Hi Team, I am getting below error while trying to connect or ping cisco 3750. “msg”: "SSH Error: data could not be sent to remote host . please help thanks Pushparaj

---

## [Ansible not checking the hostname](https://forum.ansible.com/t/ansible-not-checking-the-hostname/30197)

<div class="topic-metadata">

**Author:** [@Shan\_Mugarajan](https://forum.ansible.com/u/Shan_Mugarajan)\
**Replies:** 8\
**Last updated:** [April 26, 2019, 10:26am UTC](https://forum.ansible.com/t/ansible-not-checking-the-hostname/30197 "2019-04-26T10:26:41Z")

</div>

I have create a yml to show the username /hostname and touch a file. It it not connecting to the remote host rather does everything locally. ping-pong: ansible fim-server -m ping clsadanan06 | SUCCESS =\> { “changed”:…

---

## [win\_copy error doesnt state what is the issue](https://forum.ansible.com/t/win-copy-error-doesnt-state-what-is-the-issue/30168)

<div class="topic-metadata">

**Author:** [@Eric\_Tan](https://forum.ansible.com/u/Eric_Tan)\
**Replies:** 1\
**Last updated:** [April 26, 2019, 8:14am UTC](https://forum.ansible.com/t/win-copy-error-doesnt-state-what-is-the-issue/30168 "2019-04-26T08:14:13Z")

</div>

Hi all, I have followed the instructions on Ansible docs on how to do a windows copy from local linux to remote windows. https://docs.ansible.com/ansible/latest/modules/win\_copy\_module.html However i encounter error w…

---

## [Complex dictionary access](https://forum.ansible.com/t/complex-dictionary-access/30190)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 7:36pm UTC](https://forum.ansible.com/t/complex-dictionary-access/30190 "2019-04-25T19:36:44Z")

</div>

I have a dictionary structure that looks like the following: myservers: DC1: CORE: 10.10.10.20 DMZ: 10.10.20.20 DC2: CORE: 10.10.10.30.20 DMZ: 10.10.10.40.20 DC3: CORE: …

---

## [sudo via ansible not working](https://forum.ansible.com/t/sudo-via-ansible-not-working/30185)

<div class="topic-metadata">

**Author:** [@Shan\_Mugarajan](https://forum.ansible.com/u/Shan_Mugarajan)\
**Replies:** 4\
**Last updated:** [April 25, 2019, 2:50pm UTC](https://forum.ansible.com/t/sudo-via-ansible-not-working/30185 "2019-04-25T14:50:10Z")

</div>

ansible-playbook playbooks/install/fim/VERIFICATION.yml --ask-become-pass -vvv Playbook:

---

## [ANSIBLE PROBLEM !!!](https://forum.ansible.com/t/ansible-problem/30184)

<div class="topic-metadata">

**Author:** [@arminm.zira](https://forum.ansible.com/u/arminm.zira)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 8:40am UTC](https://forum.ansible.com/t/ansible-problem/30184 "2019-04-25T08:40:21Z")

</div>

Hy guys.I have a big problem.Actually, i have to install ansible on oracle linux 7, and thats ok.I succeed.I have to create jenkins-ansible job which will make the start and stop the Listener on remote server. My ansibl…

---

## [set\_fact not working with when condition](https://forum.ansible.com/t/set-fact-not-working-with-when-condition/30183)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [April 24, 2019, 10:15pm UTC](https://forum.ansible.com/t/set-fact-not-working-with-when-condition/30183 "2019-04-24T22:15:52Z")

</div>

I have a role, and in the defaults/main.yml I have the following variable set: \`

---

## [Installing packages from variable](https://forum.ansible.com/t/installing-packages-from-variable/30004)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 5\
**Last updated:** [April 24, 2019, 10:14pm UTC](https://forum.ansible.com/t/installing-packages-from-variable/30004 "2019-04-24T22:14:39Z")

</div>

I am installing packages from a variable, which works fine with yum; however, with apt I am having issues unless I change the format of the variable. Perhaps apt still allows you to use “with\_items” unlike yum (which com…

---

## [IaS and microservices deployment on AWS with Ansible](https://forum.ansible.com/t/ias-and-microservices-deployment-on-aws-with-ansible/30182)

<div class="topic-metadata">

**Author:** [@mwilcock1984](https://forum.ansible.com/u/mwilcock1984)\
**Replies:** 0\
**Last updated:** [April 24, 2019, 9:42pm UTC](https://forum.ansible.com/t/ias-and-microservices-deployment-on-aws-with-ansible/30182 "2019-04-24T21:42:10Z")

</div>

Hi, I’m just getting started with Ansible and working on a new project and was wondering if people could share their experiences with me on deploying microservices on AWS using Ansible? I’m deploying AWS infrastructure…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=191)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=193)
