bin/server/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 07 Oct 2024 23:31:51 -0500
changeset 239 c3e3169399a8
parent 228 ff776d663062
permissions -rw-r--r--
Updated java version and disabled geyser due to too old jde.

---

- name: add bin user
  become: yes
  user: name="{{bin_user}}" shell="/bin/false" system="yes"

- name: install bin binary
  become: yes
  get_url:
    url: "{{bin_url}}"
    dest: "/usr/local/bin/bin"
    mode: "0755"
  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"