forked from BertRaeymaekers/ansible-was
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-ihs.yml
40 lines (36 loc) · 1.13 KB
/
playbook-ihs.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
---
- name: IBM HTTP Server installation playbook example
hosts: was
vars:
ibm_user: was
ibm_root: /soft/IBM
pre_tasks:
- name: Install setfacl and (un)zip
become: yes
apt:
name: ['acl', 'zip']
state: present
when: ansible_os_family == "Debian"
- name: Install setfacl and unzip on RedHat
become: yes
yum:
name: ['acl', 'unzip']
state: present
when: ansible_os_family == "RedHat"
- name: Create the {{ibm_user}} user
become: true
become_user: root
user:
name: "{{ibm_user}}"
- name: Create the {{ibm_root}} directory
become: true
become_user: root
file:
path: "{{ibm_root}}"
state: directory
owner: "{{ibm_user}}"
group: "{{ibm_user}}"
mode: 0750
roles:
- { role: iim, iim_src: "downloads/agent.installer.linux.gtk.x86_64_1.8.9002.20181015_1517.zip", iim_user: "{{ibm_user}}" }
- { role: ihs, ihs_src: "downloads/was.repo.9000.ihs.zip", plg_src: "downloads/was.repo.9000.plugins.zip", jdk_src: "downloads/sdk.repo.8030.java8.linux.zip", ihs_user: "{{ibm_user}}" }