Refactor setup_mysql into setup_controller

This commit is contained in:
Laurent Indermuehle 2023-01-04 17:29:06 +01:00
commit 7049a280cb
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
15 changed files with 16 additions and 56 deletions

View file

@ -0,0 +1,26 @@
---
- name: "{{ role_name }} | install | Required package for testing"
ansible.builtin.apt:
name:
- mysql-client
- iproute2
state: present
update_cache: true
environment:
DEBIAN_FRONTEND: noninteractive
- name: "{{ role_name }} | install | install python packages"
ansible.builtin.pip:
name: "{{ python_packages }}"
register: connector
- name: "{{ role_name }} | install | Ensure fake root folder"
ansible.builtin.file:
path: "{{ playbook_dir }}/root"
state: directory
- name: "{{ role_name }} | install | Ensure fake root default file exists"
ansible.builtin.file:
path: "{{ playbook_dir }}/root/.my.cnf"
state: touch