github.com/crowdsecurity/crowdsec@v1.6.1/test/ansible/provision_dependencies.yml (about)

     1  # vim: set ft=yaml.ansible:
     2  ---
     3  
     4  - name: "Install required packages"
     5    hosts: all
     6    vars_files:
     7      - vars/go.yml
     8    roles:
     9      - crowdsecurity.testing.apt_update
    10      - crowdsecurity.testing.go
    11      - crowdsecurity.testing.machine_id
    12      - crowdsecurity.testing.epel
    13      - crowdsecurity.testing.git
    14      - crowdsecurity.testing.gcc
    15      - crowdsecurity.testing.gnu_make
    16      - crowdsecurity.testing.pkg_config
    17      - crowdsecurity.testing.re2
    18      - crowdsecurity.testing.bats_requirements
    19  
    20  - name: "Install Postgres"
    21    hosts: all
    22    become: true
    23    vars_files:
    24      - vars/postgres.yml
    25    tasks:
    26      - name: role "geerlingguy.postgresql"
    27        ansible.builtin.include_role:
    28          name: geerlingguy.postgresql
    29        ## enable this for debugging
    30        # vars:
    31        #  postgres_users_no_log: false
    32        when:
    33          - lookup('ansible.builtin.env', 'DB_BACKEND') in ['pgx', 'postgres']
    34  
    35  - name: "Install MySQL"
    36    hosts: all
    37    become: true
    38    vars_files:
    39      - vars/mysql.yml
    40    tasks:
    41      - name: role "geerlingguy.mysql"
    42        ansible.builtin.include_role:
    43          name: geerlingguy.mysql
    44        when:
    45          - lookup('ansible.builtin.env', 'DB_BACKEND') == 'mysql'