aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/04_taulubot/tasks/main.yml
blob: e45b2d9a22e442e6952725b4ef986c60a0827d36 (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
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Install taulubot from port
  shell: |
    cd /usr/ports/net-im/taulubot
    make install WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles
  register: _taulubot_install
  failed_when: "_taulubot_install.rc != 0"
  changed_when: "'Installing taulubot' in _taulubot_install.stdout"

- name: Deploy bot token file
  copy:
    content: "{{ taulubot_token }}"
    dest: /usr/local/etc/taulubot.token
    owner: root
    group: wheel
    mode: "0600"
  no_log: true

- import_role:
    name: jail
    tasks_from: jail_launch