summaryrefslogtreecommitdiff
path: root/patchwork.yml
blob: 422bbc0813349f8a59f6986ae2acdc8ae76f78ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Configure patchwork servers
  hosts: patchwork
  become: yes
  vars_files:
    - "{{secrets_dir}}/host_vars/{{inventory_hostname}}"
  roles:
  - postgres
  - {role: apache-site, src: patchwork/apache.conf, config: "{{inventory_hostname}}", tags: [apache] }
  - patchwork-deps
  - letsencrypt
  - {role: django, tags: [django]}

- name: Configure extra syncing for patches.linaro.org
  hosts: patches.linaro.org
  become: yes
  tasks:
    - name: Install crontab entry
      template: src=patchwork/patches.cron.d dest=/etc/cron.d/patches
                owner=root group=root mode=0644