exemONE Host Agent Installer Container Image
This commit is contained in:
22
installer/roles/one_agent/tasks/host-agent.yml
Normal file
22
installer/roles/one_agent/tasks/host-agent.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Create exemONE Agent Directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ EXEM_HOME }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy exemONE Host-Agent File
|
||||
ansible.builtin.copy:
|
||||
src: "{{ role_path }}/files/host"
|
||||
dest: "{{ EXEM_HOME }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Install Start exemONE Host-Agent
|
||||
ansible.builtin.shell: |
|
||||
{{ EXEM_HOME }}/host/setup_exem-host-agent_1.2.10.1.bin {{ RECEIVER_ADDR }} {{ RECEIVER_PORT | default('9010') }}
|
||||
args:
|
||||
chdir: "{{ EXEM_HOME }}/host"
|
||||
|
||||
- name: exem-host-agent start and enable
|
||||
ansible.builtin.shell: |
|
||||
{{ EXEM_HOME }}/host/exem/host/start.sh
|
||||
Reference in New Issue
Block a user