-
Notifications
You must be signed in to change notification settings - Fork 40
/
top-bdiis.yml
55 lines (54 loc) · 1.83 KB
/
top-bdiis.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
55
---
# - hosts: top-bdiis
# name: Bootstrap the BDII machine
# user: root
# roles:
# - bootstrap
- hosts: top-bdiis
name: top-bdii
pre_tasks:
- name: Include vars
include_vars: "{{ item }}"
with_items:
- "roles/common/vars/distros/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- roles/common/vars/middleware/IGTF.yml
- "group_vars/passwords-{{ site_name | lower }}.yml"
- name: Tell the team
slack:
token: "{{ slack_token }}"
msg: "Running top-bdii play at on {{ ansible_hostname }} at {{ site_name }}"
username: "Ansible on {{ ansible_hostname }} at {{ site_name }}"
validate_certs: False
channel: "{{ slack_channel }}"
icon_emoji: ansible
tags:
- slack
roles:
- { role: common, become: true, tags: "common"}
- { role: UMD-role, become: true, tags: "umd", umd_service: "emi-bdii-top", enable_umd: true, enable_preview: false, umd_version: 4 }
- { role: yaim, become: true, tags: "yaim" }
post_tasks:
- name: Tell the team
slack:
token: "{{ slack_token }}"
msg: "top-bdii play at on {{ ansible_hostname }} at {{ site_name }} has finished :micdrop:"
username: "Ansible on {{ ansible_hostname }} at {{ site_name }}"
validate_certs: False
channel: "#{{ slack_channel }}"
icon_emoji: ansible
tags:
- slack
- name: Fix /etc/bdii/DB_CONFIG
debug: msg="TODO. comment set_flags DB_LOG_INMEMORY set_flags DB_TXN_NOSYNC"
tags:
- debug
- name: Start BDII if PID but Process dead.
become: true
service:
name: bdii
state: restarted
# when: '"BDII slapd PID file exists but the process died" in bdiistatus'
tags:
- testing
handlers:
- include: roles/common/handlers/main.yml