blob: 451c7bd40f839c20909f2a98bd1552fc9768fcdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: add bin user
become: yes
user: name="{{bin_user}}" shell="/bin/false" system="yes"
- name: install bin binary
become: yes
unarchive:
remote_src: yes
src: "{{bin_url}}"
dest: "/usr/local/bin/"
changed_when: false
notify: restart service
- name: install systemd service
become: yes
template:
src: "[email protected]"
dest: "/lib/systemd/system/[email protected]"
notify: restart service
- name: ensure service is started
become: yes
systemd: name="bin@{{bin_port}}.service" enabled="yes" state="started"
|