diff --git a/group_vars/influxdb.yml b/group_vars/influxdb.yml index 708bd9c4f..eca0e56b4 100644 --- a/group_vars/influxdb.yml +++ b/group_vars/influxdb.yml @@ -1,4 +1,6 @@ --- +docker_users: + - centos # influxdb influxdb_https_enabled: "true" @@ -50,8 +52,8 @@ certbot_agree_tos: --agree-tos certbot_auth_method: --webroot certbot_auto_renew: true certbot_auto_renew_user: root -certbot_auto_renew_hour: "{{ 23 |random(seed=inventory_hostname) }}" -certbot_auto_renew_minute: "{{ 59 |random(seed=inventory_hostname) }}" +certbot_auto_renew_hour: "{{ 23 | random(seed=inventory_hostname) }}" +certbot_auto_renew_minute: "{{ 59 | random(seed=inventory_hostname) }}" certbot_domains: - "{{ hostname }}" certbot_environment: "production" # change to production when ready to go diff --git a/influxdb.yml b/influxdb.yml index 8986010ed..7c11efc92 100644 --- a/influxdb.yml +++ b/influxdb.yml @@ -1,21 +1,16 @@ --- - hosts: influxdb + name: InfluxDB become: true vars: hostname: influxdb.galaxyproject.eu vars_files: - "secret_group_vars/all.yml" pre_tasks: - - name: Set default version of Python - alternatives: - name: python - path: /usr/bin/python3 - - name: Install docker pip package - ansible.builtin.pip: - name: docker - - name: Set docker_users (Docker role) - set_fact: - docker_users: "centos" + - name: Install Dependencies + become: true + ansible.builtin.package: + name: ['python3-virtualenv', 'python3-docker'] - name: Configure SELinux ansible.posix.seboolean: name: "{{ item }}" @@ -38,14 +33,14 @@ enable_powertools: true # geerlingguy.repo-epel role doesn't enable PowerTools repository enable_remap_user: true enable_create_user: true -# - geerlingguy.repo-epel # Install EPEL repository -# - usegalaxy-eu.autoupdates # keep all of our packages up to date -# - influxdata.chrony # Keep our time in sync. -# - usegalaxy-eu.dynmotd -# - hxr.monitor-email + - geerlingguy.repo-epel # Install EPEL repository + - usegalaxy-eu.autoupdates # keep all of our packages up to date + - influxdata.chrony # Keep our time in sync. + - usegalaxy-eu.dynmotd + - hxr.monitor-email # # Applications -# - geerlingguy.docker -# - galaxyproject.nginx + - geerlingguy.docker + - galaxyproject.nginx - usegalaxy_eu.influxdbserver - dj-wasabi.telegraf # hardening