mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-05 22:16:02 +02:00
4112bdf9fd
yaml: truthy value should be one of [false, true] (truthy) yaml: wrong indentation: expected 4 but found 2 (indentation) yaml: too few spaces before comment (comments) yaml: missing starting space in comment (comments) yaml: too many blank lines (1 > 0) (empty-lines) yaml: too many spaces after colon (colons) yaml: comment not indented like content (comments-indentation) yaml: no new line character at the end of file (new-line-at-end-of-file) load-failure: Failed to load or parse file parser-error: couldn't resolve module/action 'hosts'. This often indicates a misspelling, missing collection, or incorrect module path.
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
---
|
|
|
|
- name: create ssl cert
|
|
include_role:
|
|
name: certificate
|
|
vars:
|
|
domains: ["{{ arch32_mirror_domain }}"]
|
|
when: 'arch32_mirror_domain is defined'
|
|
|
|
- name: install rsync
|
|
pacman: name=rsync state=present
|
|
|
|
- name: install syncrepo script
|
|
template: src=syncrepo_arch32 dest=/usr/local/bin/syncrepo_arch32 owner=root group=root mode=0755
|
|
|
|
- name: install syncrepo units
|
|
template: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
|
|
with_items:
|
|
- syncrepo_arch32.timer
|
|
- syncrepo_arch32.service
|
|
|
|
- name: start and enable syncrepo unit
|
|
systemd:
|
|
name: syncrepo_arch32.timer
|
|
enabled: true
|
|
state: started
|
|
daemon_reload: true
|
|
|
|
- name: make nginx log dir
|
|
file: path=/var/log/nginx/{{ arch32_mirror_domain }} state=directory owner=root group=root mode=0755
|
|
|
|
- name: set up nginx
|
|
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/syncrepo_arch32.conf owner=root group=root mode=0644
|
|
notify:
|
|
- reload nginx
|
|
when: 'arch32_mirror_domain is defined'
|
|
tags: ['nginx']
|