aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/06_hommabot/tasks/main.yml
blob: b3c44813587f61c06935d9f49586c0227a32de06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Install hommabot
  shell: pkg install -y -r poudriere hommabot
  register: _hommabot_install
  changed_when: "'Installing' in _hommabot_install.stdout"

- name: Deploy bot token file
  copy:
    content: "{{ hommabot_telegram_bot_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