diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-05-19 00:49:25 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-05-19 00:55:21 +0300 |
| commit | b0578d2af1d6bfef7b86103a3f244c9112d06f98 (patch) | |
| tree | c2165399785450e55d4996ef842c8ec0ad45d102 /roles/jails/06_hommabot/tasks | |
| parent | b38e910899bad2d6ae2049b599dcdd525420c53d (diff) | |
Remove packager, use ports fork
Diffstat (limited to 'roles/jails/06_hommabot/tasks')
| -rw-r--r-- | roles/jails/06_hommabot/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/jails/06_hommabot/tasks/main.yml b/roles/jails/06_hommabot/tasks/main.yml index 2abdaff..9b1ee5f 100644 --- a/roles/jails/06_hommabot/tasks/main.yml +++ b/roles/jails/06_hommabot/tasks/main.yml @@ -1,2 +1,23 @@ - import_role: name: jail + tasks_from: jail_setup + +- name: Install hommabot from port + shell: cd /usr/local/my-ports/hommabot && make install + register: _hommabot_install + failed_when: "_hommabot_install.rc != 0 and 'already installed' not in _hommabot_install.stdout" + changed_when: "'already installed' not in _hommabot_install.stdout" + +- name: Deploy bot token file + copy: + content: "{{ hommabot_token }}" + dest: /usr/local/etc/hommabot.token + owner: root + group: wheel + mode: "0600" + no_log: true + notify: Restart hommabot + +- import_role: + name: jail + tasks_from: jail_launch |
