mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-11-10 02:01:41 +01:00
26f289b72b
ansible-lint 6.5.0 complains about: name: All names should start with an uppercase letter. (name[casing])
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
- name: Update pacman website
|
|
hosts: localhost
|
|
vars:
|
|
pacman_version: '6.0.1'
|
|
pacman_dir: '/srv/http/archweb/archlinux.org/pacman'
|
|
tasks:
|
|
- name: Create temp dir
|
|
tempfile: state=directory suffix=pacman
|
|
register: tempdir
|
|
|
|
- name: Fetch pacman tarball
|
|
get_url: url=https://sources.archlinux.org/other/pacman/pacman-{{ pacman_version }}.tar.xz dest={{ tempdir.path }}/pacman.tar.xz
|
|
|
|
- name: Unpack tarball
|
|
unarchive: src={{ tempdir.path }}/pacman.tar.xz dest={{ tempdir.path }}
|
|
|
|
- name: Build website
|
|
command: "{{ item }}"
|
|
args:
|
|
chdir: "{{ tempdir.path }}/pacman-{{ pacman_version }}"
|
|
loop:
|
|
- meson -Ddoc=enabled build
|
|
- ninja -C build doc/website.tar.gz
|
|
|
|
- block:
|
|
- name: Create website directory
|
|
file: state=directory owner=root group=root mode=0755 path={{ pacman_dir }}
|
|
|
|
- name: Upload website
|
|
unarchive:
|
|
src: "{{ tempdir.path }}/pacman-{{ pacman_version }}/build/doc/website.tar.gz"
|
|
dest: "{{ pacman_dir }}"
|
|
owner: nobody
|
|
group: nobody
|
|
delegate_to: archlinux.org
|