From b06eb7dc2fbce57ac2b6d39c891094652e0c616c Mon Sep 17 00:00:00 2001 From: xfnw Date: Tue, 8 Mar 2022 18:26:10 -0500 Subject: [PATCH] add solanum-edge for fetching directly from solanum's repos --- solanum-edge.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 solanum-edge.yml diff --git a/solanum-edge.yml b/solanum-edge.yml new file mode 100644 index 0000000..0d494eb --- /dev/null +++ b/solanum-edge.yml @@ -0,0 +1,61 @@ +- hosts: all + remote_user: root + + tasks: + - name: install dependencies for alpine + package: + name: sudo,musl-dev,libretls-dev,make,automake,gcc,curl,git,byacc,flex,libtool,sqlite-dev,autoconf,util-linux + state: present + when: ansible_distribution == 'Alpine' + + - name: install dependencies for debian + package: + name: sudo,build-essential,autotools-dev,automake,cmake,make,libtool,byacc,flex,openssl,sqlite3,libsqlite3-dev + state: present + when: ansible_distribution == 'Debian' + + - name: create ircd user + user: + name: ircd + + - name: download solanum + git: + repo: 'https://github.com/solanum-ircd/solanum' + dest: /home/ircd/solanum + become: yes + become_user: ircd + + - name: check if autogen needed + stat: + path: /home/ircd/solanum/configure + register: alreadyautogen + + - name: autogen + command: ./autogen.sh + args: + chdir: /home/ircd/solanum + become: yes + become_user: ircd + when: not alreadyautogen.stat.exists + + - name: configure + command: ./configure + args: + chdir: /home/ircd/solanum + become: yes + become_user: ircd + when: not alreadyautogen.stat.exists + + - name: make + make: + chdir: /home/ircd/solanum + become: yes + become_user: ircd + + - name: make install + make: + chdir: /home/ircd/solanum + target: install + become: yes + become_user: ircd +