-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjre.yml
55 lines (43 loc) · 2.27 KB
/
jre.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- name: "Check Platform "
hosts: all
connection: paramiko
vars:
# ansible_ssh_user: "{{ usrR }}"
# ansible_ssh_pass: "{{ passR }}"
# http_port: 80
# domain: example.com
ansible_paramiko_user: "{{ usrR }}"
ansible_paramiko_pass: "{{ passR }}"
# ansible_ssh_private_key_file: /path/to/private_key
# ansible_ssh_pass: passphrase_for_private_key
tasks:
- name: "Cent OS 6"
include_tasks: "CentOS/jrecentos6.yml"
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == "6" or ansible_distribution == 'Red Hat Enterprise Linux'
- name: "Cent OS 7"
include_tasks: "CentOS/jrecentos7.yml"
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == "7" or ansible_distribution == 'Red Hat Enterprise Linux'
- name: "Ubuntu 16"
include_tasks: "Ubuntu/jreubuntu.yml"
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial' and ansible_distribution_version == '16.04'
- name: "Ubuntu 14"
include_tasks: "Ubuntu/jreubuntu14.yml"
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'trusty' and ansible_distribution_version == '14.04'
- name: "Ubuntu 17"
include_tasks: "Ubuntu/jreubuntu.yml"
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'zesty' and ansible_distribution_version == '17.04'
- name: "Debian 9"
include_tasks: "Debian/jredebian9.yml"
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch' and ansible_distribution_major_version == '9'
- name: "Debian 8"
include_tasks: "Debian/jredebian.yml"
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' and ansible_distribution_major_version == '8'
- name: "Debian 7"
include_tasks: "Debian/jredebian.yml"
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy' and ansible_distribution_major_version == '7'
# - command: echo "openSUSE Leap"
# - debug:
# msg: "openSUSE Leap {{ ansible_distribution_version }} "
# when: ansible_distribution == 'openSUSE Leap' and ansible_distribution_version == "42.2"
###########################################