Здравствуйте, никак не могу решить данную проблему, только изучаю ansible, не могу разобраться ещё и с mysql
Плэйбук:
GNU nano 2.3.1 Файл: mysql.yml Изменён
---
- name: Install Mysql playbook
hosts: all
become: true
tasks:
- name: Download sql rep
get_url:
url:
https://dev.mysql.com/get/mysql80-community-releas...
dest: /home/idkuznetsov/internship/day8
- name: Install rmp
yum:
name: /home/idkuznetsov/internship/day8/mysql80-community-release-el7-3.noarch.rpm
state: present
- name: Install Mysql!!!
yum:
name: "{{ name }}"
vars:
name:
- mysql-server
- name: Up mysql
systemd:
state: started
name: mysqld
#Mysql Setting
- name: Creat user
community.mysql.mysql_user:
name: Test
password: '12345'
priv: '*.*:ALL'
state: present
- name: Create a new database with name test11
community.mysql.mysql_db:
name: test11
state: present