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
https://github.com/DavidWittman/ansible-redis
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
roles: -
role: DavidWittman.redis
-
hosts: server
roles: -
role: franklinkim.mongodb
Thanks and Regards
Venkat