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

- 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