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

- name: Install aggro
  shell: pkg install -y -r poudriere aggro
  register: _aggro_install
  changed_when: "'Installing' 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