v1
This commit is contained in:
26
kernelcare_dev_agent_install.yml
Normal file
26
kernelcare_dev_agent_install.yml
Normal 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
|
||||
Reference in New Issue
Block a user