1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

community.mysql on-demand

This commit is contained in:
Jerry Vonau 2025-02-20 17:18:23 -06:00
parent 55b572cda0
commit 5539b6c75f
2 changed files with 8 additions and 3 deletions

View file

@ -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...

View file

@ -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