aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/07_aggro/tasks/main.yml
blob: 175fd80e487bf29ed209899b9b229edcf727e7a1 (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
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Install aggro from port
  shell: cd /usr/ports/www/aggro && make install WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles
  register: _aggro_install
  failed_when: "_aggro_install.rc != 0 and 'already installed' not in _aggro_install.stdout"
  changed_when: "'already installed' not in _aggro_install.stdout"

- name: Deploy aggro env file
  template:
    src: "{{ jail_role_dir }}/templates/aggro.env.j2"
    dest: /usr/local/etc/aggro.env
    owner: root
    group: wheel
    mode: "0600"
  notify: Restart aggro

- name: Deploy Aggrofile
  template:
    src: "{{ jail_role_dir }}/templates/Aggrofile.j2"
    dest: /usr/local/etc/Aggrofile
    owner: root
    group: wheel
    mode: "0644"
  notify: Restart aggro

- import_role:
    name: jail
    tasks_from: jail_launch