community.mysql/tests/integration/targets/setup_mysql/tasks/prepare_controller.yml
2023-01-03 17:48:43 +01:00

38 lines
885 B
YAML

---
- name: "{{ role_name }} | install | mysql_client"
ansible.builtin.apt:
name: mysql-client
state: present
update_cache: true
- name: "{{ role_name }} | install | install python packages"
pip:
name: "{{ python_packages }}"
register: connector
- name: Extract connector.name.0 content
set_fact:
connector_name: "{{ connector.name.0 }}"
- name: Debug connector_name content
debug:
msg: '{{ connector_name }}'
- name: Extract connector version
set_fact:
connector_ver: "{{ connector_name.split('=')[2].strip() }}"
- name: Debug connector_ver var content
debug:
msg: '{{ connector_ver }}'
- name: Ensure fake root folder
ansible.builtin.file:
path: "{{ playbook_dir }}/root"
state: directory
- name: Ensure fake root default file exists
ansible.builtin.file:
path: "{{ playbook_dir }}/root/.my.cnf"
state: touch