aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/08_diddle/tasks/main.yml
blob: 8f96f0e8206294ee4fa98465a2c8ba4a786f5cc8 (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 diddle from port
  shell: cd /usr/ports/www/diddle && make install WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles
  register: _diddle_install
  failed_when: "_diddle_install.rc != 0"
  changed_when: "'Installing diddle' in _diddle_install.stdout"

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

- import_role:
    name: jail
    tasks_from: jail_launch