blob: 92624ff1cda85a3b2da192859cebb4c20e034cc4 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
- import_role:
name: jail
tasks_from: jail_setup
- name: Create .ssh directory
file:
path: /root/.ssh
state: directory
owner: root
group: wheel
mode: "0700"
- name: Deploy SSH key for git
copy:
content: "{{ taulubot_deploy_key.private }}"
dest: /root/.ssh/deploy_key
owner: root
group: wheel
mode: "0600"
no_log: true
- name: Install taulubot from port
shell: |
export GIT_SSH_COMMAND='ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no'
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
|