补充完善Prometheus告警系统
This commit is contained in:
20
Ansible-Playbook/install_python3.yml
Normal file
20
Ansible-Playbook/install_python3.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: bootstrap python3
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: check python3 exists
|
||||
raw: command -v python3
|
||||
register: py3_check
|
||||
ignore_errors: true
|
||||
|
||||
- name: install python3 (debian/ubuntu)
|
||||
raw: |
|
||||
apt update &&
|
||||
apt install -y python3 python3-apt
|
||||
when: py3_check.rc != 0
|
||||
|
||||
- name: install python3 (centos)
|
||||
raw: |
|
||||
yum install -y python3
|
||||
when: py3_check.rc != 0
|
||||
13
Ansible-Playbook/update_relayx_agent.yml
Normal file
13
Ansible-Playbook/update_relayx_agent.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: verified execution
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: download
|
||||
get_url:
|
||||
url: https://dl.relayx.cc/upgrade.sh
|
||||
dest: /tmp/upgrade.sh
|
||||
mode: '0755'
|
||||
|
||||
- name: run
|
||||
command: sh /tmp/upgrade.sh
|
||||
Reference in New Issue
Block a user