You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
601 B
30 lines
601 B
--- |
|
|
|
- name: Create opt directory |
|
become: true |
|
file: |
|
path: /opt/nprobe/sbin |
|
state: directory |
|
mode: 0755 |
|
|
|
- name: Download nprobe |
|
get_url: |
|
url: "{{ nprobe_linux }}" |
|
dest: /opt/nprobe/sbin/nprobe |
|
checksum: "{{ nprobe_linux_sha256 }}" |
|
mode: 0755 |
|
|
|
- name: Create systemd unit |
|
template: |
|
src: templates/nprobe_probe.service.j2 |
|
dest: /etc/systemd/system/nprobe_probe.service |
|
|
|
- name: Stop service nprobe |
|
ansible.builtin.systemd: |
|
name: nprobe_probe |
|
state: stopped |
|
|
|
- name: Start probe |
|
ansible.builtin.systemd: |
|
name: nprobe_probe |
|
state: started
|
|
|