2022-09-06 09:33:50 +00:00
|
|
|
# vim: set ft=yaml.ansible:
|
2022-07-26 11:09:13 +00:00
|
|
|
---
|
|
|
|
|
2022-09-12 14:07:14 +00:00
|
|
|
- name: "Install required packages"
|
2022-07-26 11:09:13 +00:00
|
|
|
hosts: all
|
|
|
|
vars_files:
|
|
|
|
- vars/go.yml
|
|
|
|
roles:
|
2022-09-12 14:07:14 +00:00
|
|
|
- crowdsecurity.testing.apt_update
|
|
|
|
- crowdsecurity.testing.go
|
|
|
|
- crowdsecurity.testing.machine_id
|
|
|
|
- crowdsecurity.testing.epel
|
|
|
|
- crowdsecurity.testing.git
|
|
|
|
- crowdsecurity.testing.gcc
|
|
|
|
- crowdsecurity.testing.gnu_make
|
2023-06-29 14:35:19 +00:00
|
|
|
- crowdsecurity.testing.pkg_config
|
|
|
|
- crowdsecurity.testing.re2
|
2022-09-12 14:07:14 +00:00
|
|
|
- crowdsecurity.testing.bats_requirements
|
2022-07-26 11:09:13 +00:00
|
|
|
|
2022-09-12 14:07:14 +00:00
|
|
|
- name: "Install Postgres"
|
2022-07-26 11:09:13 +00:00
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
vars_files:
|
|
|
|
- vars/postgres.yml
|
|
|
|
tasks:
|
2022-10-31 09:02:51 +00:00
|
|
|
- name: role "geerlingguy.postgresql"
|
|
|
|
ansible.builtin.include_role:
|
2022-07-26 11:09:13 +00:00
|
|
|
name: geerlingguy.postgresql
|
2022-09-12 14:07:14 +00:00
|
|
|
## enable this for debugging
|
|
|
|
# vars:
|
2022-08-04 09:25:34 +00:00
|
|
|
# postgres_users_no_log: false
|
2022-07-26 11:09:13 +00:00
|
|
|
when:
|
|
|
|
- lookup('ansible.builtin.env', 'DB_BACKEND') in ['pgx', 'postgres']
|
|
|
|
|
2022-09-12 14:07:14 +00:00
|
|
|
- name: "Install MySQL"
|
2022-07-26 11:09:13 +00:00
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
vars_files:
|
|
|
|
- vars/mysql.yml
|
|
|
|
tasks:
|
2022-10-31 09:02:51 +00:00
|
|
|
- name: role "geerlingguy.mysql"
|
|
|
|
ansible.builtin.include_role:
|
2022-07-26 11:09:13 +00:00
|
|
|
name: geerlingguy.mysql
|
|
|
|
when:
|
|
|
|
- lookup('ansible.builtin.env', 'DB_BACKEND') == 'mysql'
|