This commit is contained in:
Gary Kwok
2024-01-29 17:53:04 +08:00
commit ef6e10728d
24 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
- hosts: "{{ inputHosts }}"
become: yes
vars:
eportal_srv: "{{ eportal_srv }}"
activation_key: "{{ activation_key }}"
tasks:
- name: Download the installation shell script
get_url:
url: "{{ eportal_srv }}/install-kernelcare"
dest: /tmp/kc-install.sh
mode: '0700'
- name: Run the installation shell script
command: /tmp/kc-install.sh
- name: register KernelCare agents
command: /usr/bin/kcarectl --register {{ activation_key }}
- name: tagging
command: /usr/bin/kcarectl --tag "product:scc;env:dev"
# - name: Start and enable kcare
# service:
# name: kcare
# state: started
# enabled: yes