26 lines
710 B
YAML
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 |