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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3c3e78b7-f7a0-4f04-8977-9e734e483e17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to