--- - name: Configure patchwork servers hosts: patchwork become: yes vars_files: - "{{secrets_dir}}/host_vars/{{inventory_hostname}}" - "{{secrets_dir}}/group_vars/dehydrated" roles: - {role: dehydrated, tags: [ssl]} - {role: postgres, tags: [postgres]} - {role: patchwork-deps, tags: [django,patchworks]} - {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