-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
32 lines (27 loc) · 799 Bytes
/
main.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
---
# tasks file for oem-agent-clearstate
- block:
- name: Create blackout
shell: ./emctl start blackout "{{ inventory_hostname }}" -nodeLevel
args:
chdir: "{{ agentLocation }}/agent_inst/bin"
ignore_errors: yes
- name: Stop Agent
shell: ./emctl stop agent
args:
chdir: "{{ agentLocation }}/agent_inst/bin"
- name: Clearstate Agent
shell: ./emctl clearstate agent
args:
chdir: "{{ agentLocation }}/agent_inst/bin"
- name: Start Agent
shell: ./emctl start agent
args:
chdir: "{{ agentLocation }}/agent_inst/bin"
- name: Stop blackout
shell: ./emctl stop blackout "{{ inventory_hostname }}"
args:
chdir: "{{ agentLocation }}/agent_inst/bin"
ignore_errors: yes
become: yes
become_user: "{{ agentOwner }}"