Commit 2e0cd7f8 authored by Florian Pritz's avatar Florian Pritz
Browse files

Add playbook to upload new pacman website

Signed-off-by: Florian Pritz's avatarFlorian Pritz <>
parent 8a89b4dd
- name: Update pacman website
hosts: localhost
pacman_version: "5.1.0"
archweb_dir: '/srv/http/archweb'
- name: Create temp dir
tempfile: state=directory suffix=pacman
register: tempdir
- name: fetch pacman tarball
get_url: url={{pacman_version}}.tar.gz dest={{tempdir.path}}/pacman.tar.gz
- name: create extraction dir
file: path={{tempdir.path}}/pacman state=directory
- name: unpack tarball
unarchive: src={{tempdir.path}}/pacman.tar.gz dest={{tempdir.path}}/pacman/
- name: configure
shell: ./configure chdir={{tempdir.path}}/pacman/pacman-{{pacman_version}}
- name: make
make: chdir={{tempdir.path}}/pacman/pacman-{{pacman_version}}/doc target=website
- name: upload website
unarchive: src={{tempdir.path}}/pacman/pacman-{{pacman_version}}/doc/website.tar.gz dest={{archweb_dir}}/ mode=0644
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment