Files
kcare/kernelcare_dev_agent_install.yml
Gary Kwok ef6e10728d v1
2024-01-29 17:53:04 +08:00

26 lines
710 B
YAML

- 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