71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
---
|
|
- name: Slack
|
|
hosts: localhost
|
|
gather_facts: false
|
|
vars:
|
|
playbook_file: "{{ (lookup('file', '/proc/self/cmdline') | regex_replace('\0',' ')).split() | select('match','^.*[.]ya?ml$') | list | first }}"
|
|
tasks:
|
|
- name: Send notification message via Slack
|
|
community.general.slack:
|
|
token: "{{ slack_token }}"
|
|
msg: Starting {{ playbook_file }}
|
|
|
|
## BOInstall
|
|
- name: Install BOInstall
|
|
hosts: BOInstall
|
|
gather_facts: false
|
|
tasks:
|
|
- block:
|
|
- include: tasks/install-boinstall.yaml
|
|
rescue:
|
|
- include: tasks/task-failed-slack.yaml
|
|
|
|
## AxInstall
|
|
- name: Install AXInstall
|
|
hosts: AOS
|
|
gather_facts: false
|
|
tasks:
|
|
- block:
|
|
- include: tasks/install-axinstall.yaml
|
|
rescue:
|
|
- include: tasks/task-failed-slack.yaml
|
|
|
|
## Post-installs
|
|
|
|
# AXInstall example
|
|
|
|
#- name: AXInstall Post-Installation tasks
|
|
# hosts: AOS_POM
|
|
# gather_facts: false
|
|
# tasks:
|
|
# - block:
|
|
# - include: tasks/install-axinstall-cilcompile.yaml
|
|
# rescue:
|
|
# - include: tasks/task-failed-slack.yaml
|
|
|
|
# BOInstall example
|
|
|
|
#- name: Install PI46849_MDL
|
|
# hosts: MDL
|
|
# gather_facts: false
|
|
# tasks:
|
|
# - block:
|
|
# - include: tasks/install-PI46849_MDL.yaml
|
|
# rescue:
|
|
# - include: tasks/task-failed-slack.yaml
|
|
|
|
# PI46867_CWS_DBIFS_APP
|
|
# - Skip because default BOInstall is BOInstall_120.81.2.0_120-81-2-0.exe
|
|
|
|
# PI46869_APP_API_BorisWeb
|
|
# - Skip because default BOInstall is BOInstall_120.81.2.0_120-81-2-0.exe
|
|
|
|
- name: Slack
|
|
hosts: localhost
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Send notification message via Slack
|
|
community.general.slack:
|
|
token: "{{ slack_token }}"
|
|
msg: All done
|