diff options
Diffstat (limited to 'roles/mox/tasks/main.yml')
| -rw-r--r-- | roles/mox/tasks/main.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/roles/mox/tasks/main.yml b/roles/mox/tasks/main.yml index 2e41a4c..ac4a43c 100644 --- a/roles/mox/tasks/main.yml +++ b/roles/mox/tasks/main.yml @@ -105,7 +105,7 @@ ansible.builtin.get_url: dest: /usr/bin/mox mode: "755" - url: "{{ mox_url }}" + url: https://beta.gobuilds.org/github.com/mjl-/mox@latest/linux-{{ mox_platform }}-latest/dl - name: Install mox service register: mox_service @@ -153,3 +153,15 @@ cmd: mox setaccountpassword {{ item.name }} stdin: "{{ item.password }}" chdir: ~mox + +- name: Install script to update mox + ansible.builtin.template: + src: update_mox + dest: /usr/bin/update_mox + mode: "755" + +- name: Install daily crontab to update mox + ansible.builtin.cron: + special_time: daily + name: Update mox + job: /usr/bin/update_mox |
