# Need help with Ansible Deployment

**URL:** <https://forum.ansible.com/t/need-help-with-ansible-deployment/22630>\
**Category:** Ansible Project\
**Tags:** ubuntu, galaxy-ng\
**Created:** [September 23, 2016, 5:23pm UTC](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630 "2016-09-23T17:23:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkat\_r](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@venkat\_r](https://forum.ansible.com/u/venkat_r)\
**Post date:** [September 23, 2016, 5:23pm UTC](https://forum.ansible.com/t/need-help-with-ansible-deployment/22630/1 "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 version of redis although the version is being passed in the variable. Java 1.8 installs fine as mentioned in the playbook. Again , with mongodb it installs 3.2.9 although I tried to pass mongodb\_version: “3.2.8”.

I have downloaded from github.

[http://www.jeffgeerling.com/blog/using-ansible-galaxy](http://www.jeffgeerling.com/blog/using-ansible-galaxy)

[https://github.com/DavidWittman/ansible-redis](https://github.com/DavidWittman/ansible-redis)  
[https://github.com/UnderGreen/ansible-role-mongodb](https://github.com/UnderGreen/ansible-role-mongodb)

- hosts: server  
tasks:

- name: installing repo for Java 8 in Ubuntu  
apt\_repository: repo=‘ppa:openjdk-r/ppa’

- hosts: server  
roles:

- role: geerlingguy.java  
when: “ansible\_os\_family == ‘Debian’”  
java\_packages:

- openjdk-8-jdk

- hosts: server  
vars:

- redis\_bind: 127.0.0.1

- redis\_version: 2.4.6

- redis\_download\_url: [https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/redis/redis-2.4.6.tar.gz](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/redis/redis-2.4.6.tar.gz)  
roles:

- role: DavidWittman.redis

- hosts: server  
roles:

- role: franklinkim.mongodb

Thanks and Regards

Venkat
