Files
exemone_agent_installer/installer/roles/one_agent/tasks/host-agent.yml
2024-09-09 12:25:26 +09:00

23 lines
656 B
YAML

---
- 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