2022-03-08 23:26:10 +00:00
|
|
|
- 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:
|
2022-04-30 17:19:39 +00:00
|
|
|
name: sudo,build-essential,autotools-dev,automake,cmake,make,libtool,curl,git,byacc,flex,openssl,libssl-dev,sqlite3,libsqlite3-dev,pkg-config
|
2022-03-08 23:26:10 +00:00
|
|
|
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
|
2022-03-11 19:26:56 +00:00
|
|
|
command: ./configure --enable-oper-chghost
|
2022-03-08 23:26:10 +00:00
|
|
|
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
|
|
|
|
|