feat: install librepages/conductor

This commit is contained in:
Aravinth Manivannan 2022-12-30 05:18:52 +05:30
parent 0cbfb4cd30
commit d5a01fb070
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 56 additions and 1 deletions

5
debian/Makefile vendored
View file

@ -14,7 +14,10 @@ inventory: ## Deploy server
configure: ## Configure server configure: ## Configure server
ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/playbook.yml ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/playbook.yml
ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/linux-baseline.yml ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/install-librepages.yml
ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/install-librepages-forms.yml
ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/install-librepages-conductor.yml
# ansible-playbook -i ./ansible/inventory/hosts.ini -f 10 ./ansible/linux-baseline.yml
ansible-check: ## Check Ansible playbooks ansible-check: ## Check Ansible playbooks
ansible-playbook --check ./ansible/playbook.yml ansible-playbook --check ./ansible/playbook.yml

View file

@ -0,0 +1,52 @@
---
- 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/