-
Notifications
You must be signed in to change notification settings - Fork 6
/
sagenv-tools-command-product.yaml
64 lines (58 loc) · 1.72 KB
/
sagenv-tools-command-product.yaml
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
56
57
58
59
60
61
62
63
64
---
################################################################
## SPM command task
################################################################
- import_playbook: sagenv-tools-command.yaml
vars:
product_name: "{{ product_name }}"
inventory_groupnames: "{{ inventory_groupnames }}"
product_command: stop
tags:
- cmd-stop
- cmd-restart
- force-svc-start
- import_playbook: sagenv-tools-command.yaml
vars:
product_name: "{{ product_name }}"
inventory_groupnames: "{{ inventory_groupnames }}"
product_command: start
tags:
- cmd-start
- cmd-restart
- import_playbook: sagenv-tools-command-systemd.yaml
vars:
product_name: "{{ product_name }}"
product_version_full: "{{ product_version_full }}"
inventory_groupnames: "{{ inventory_groupnames }}"
product_command: stop
tags:
- svc-stop
- svc-restart
- import_playbook: sagenv-tools-command-systemd.yaml
vars:
product_name: "{{ product_name }}"
product_version_full: "{{ product_version_full }}"
inventory_groupnames: "{{ inventory_groupnames }}"
product_command: start
tags:
- svc-start
- svc-restart
- force-svc-start
#check ports from commandcentral
- hosts: commandcentral
become: true
become_user: "{{ webmethods_user }}"
tasks:
- import_role:
name: check-remote-ports
vars:
inventory_pattern: "{{ inventory_groupnames }}"
inventory_hosts_property: "{{ checkport_inventory_hosts_property | default('ansible_host') }}"
validation_ports: "{{ checkport_validation_ports }}"
validation_ports_timeout: "{{ checkport_validation_timeout }}"
tags:
- svc-start
- svc-restart
- force-svc-start
- cmd-start
- cmd-restart