mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-28 21:31:27 -07:00
32 lines
745 B
YAML
32 lines
745 B
YAML
---
|
|
|
|
- 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
|