diff --git a/collections.yml b/collections.yml index 970d5559a..5b2bec520 100644 --- a/collections.yml +++ b/collections.yml @@ -4,8 +4,10 @@ --- collections: - - name: community.general - - name: community.mysql +# 2025-02-20 community.general.ini_file + - name: community.general # community.general.ini_file +# 2025-02-20 moved to /opt/iiab/iiab/roles/mysql/tasks/install.yml +# - name: community.mysql # 2025-02-20 moved to /opt/iiab/iiab/roles/postgresql/tasks/install.yml # - name: community.postgresql - name: ansible.posix # 2025-02-20: For ~4 modules below... diff --git a/roles/mysql/tasks/install.yml b/roles/mysql/tasks/install.yml index fe9a72433..11ddc5900 100644 --- a/roles/mysql/tasks/install.yml +++ b/roles/mysql/tasks/install.yml @@ -16,9 +16,12 @@ - name: pip install 'PyMySQL' into venv /usr/local/ansible -- for Ansible modules {mysql_db, mysql_user} in Ansible collection community.mysql -- used in roles {mediawiki, nextcloud, wordpress, matomo, pbx} ansible.builtin.pip: name: PyMySQL - virtualenv: /usr/local/ansible + virtualenv: "{{ ansible_venv_path }}" extra_args: "--upgrade --no-cache-dir --prefer-binary" # 2023-10-01: Lifesaver when recent wheels (e.g. piwheels.org) are inevitably not yet built! SEE #3560 +- name: Install Collection community.mysql with ansible-galaxy + shell: "{{ ansible_venv_path }}/bin/ansible-galaxy collection install --force-with-deps community.mysql -p {{ ansible_collections_path }}" + # 2020-07-11: 10 PHP package installs moved to roles/www_base/tasks/main.yml # php{{ php_version }}-sqlite3 install moved to roles/osm-vector-maps/tasks/install.yml