mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-05 16:26:03 +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.
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
---
|
|
|
|
- name: install archivetools package
|
|
pacman: name=archivetools state=present
|
|
|
|
- name: make archive dir
|
|
file:
|
|
path: "{{ archive_dir }}"
|
|
state: directory
|
|
owner: archive
|
|
group: archive
|
|
mode: 0755
|
|
|
|
- name: setup archive configuration
|
|
template:
|
|
src: archive.conf.j2
|
|
dest: /etc/archive.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: setup archive timer
|
|
systemd: name=archive.timer enabled=yes state=started
|
|
|
|
- name: setup archive-hardlink timer
|
|
systemd: name=archive-hardlink.timer enabled=yes state=started
|
|
- name: install internet archive packages
|
|
pacman: name=python-internetarchive,python-xtarfile state=present
|
|
|
|
- name: create archive user
|
|
user: name={{ archive_user_name }} shell=/bin/false home="{{ archive_user_home }}" createhome=yes
|
|
|
|
- name: configure archive.org client
|
|
command: ia configure --username={{ vault_archive_username }} --password={{ vault_archive_password }} creates={{ archive_user_home }}/.config/ia.ini
|
|
become: true
|
|
become_user: "{{ archive_user_name }}"
|
|
|
|
- name: clone archive uploader code
|
|
git: repo=https://github.com/archlinux/arch-historical-archive.git dest="{{ archive_repo }}" version="{{ archive_uploader_version }}"
|
|
become: true
|
|
become_user: "{{ archive_user_name }}"
|
|
|
|
- name: install system service
|
|
template: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
|
|
loop:
|
|
- archive-uploader.service
|
|
- archive-uploader.timer
|
|
|
|
- name: start uploader timer
|
|
systemd:
|
|
name: archive-uploader.timer
|
|
enabled: true
|
|
state: started
|
|
daemon_reload: true
|