Infrastructure-as-Code/debian/ansible/install-librepages-conductor.yml

52 lines
1.6 KiB
YAML

---
- name: Install LibrePages Componenets
hosts: debainbasic
remote_user: root
tasks:
- name: Ensure all VMs are reachable
ansible.builtin.ping:
- name: Create /tmp/librepages/conductor
ansible.builtin.file:
path: /tmp/librepages/conductor
state: directory
recurse: true
- name: Create /etc/librepages/conductor
ansible.builtin.file:
path: /etc/librepages/conductor
state: directory
recurse: true
- name: Get LibrePages/conductor
get_url:
url: https://dl.librepages.org/librepages/conductor/master/conductor-master-linux-amd64.tar.gz
dest:
/tmp/librepages/conductor
# master branch build checksum keeps changing
# checksum: sha256:2478f65d0736e45e45c8c7deb420b73b7b020ed6eae4ec73724cbf974f4df50c
- name: Extract downloaded LibrePages/conductor
command: >-
tar -xzvf /tmp/librepages/conductor/conductor-master-linux-amd64.tar.gz
--directory /tmp/librepages/conductor
- name: Install LibrePages/conductor binary
command: >-
cp -f
/tmp/librepages/conductor/conductor-master-linux-amd64/conductor
/usr/bin/
- name: Copy configuration file
command: >-
cp -f
/tmp/librepages/conductor/conductor-master-linux-amd64/config/config.toml
/etc/librepages/conductor/
- name: Copy systemd file
command: >-
cp -f
/tmp/librepages/conductor/conductor-master-linux-amd64/contrib/librepages-conductor.service
/etc/systemd/system/