SturmB

Ansible MySQL 01

Oct 1st, 2020 (edited)
702
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. - name: Prepare MySQL DB
  3.   hosts: all
  4.   remote_user: root
  5.  
  6.     - name: Ensure DB exists
  7.       mysql_db:
  8.         name: example
  9.         state: present
  10.         # login_user: root
  11.         # login_password: ""
  12.         collation: utf8mb4_0900_ai_ci
  13.         # config_file: "/etc/mysql/my.cnf"
  14.         config_file: ""
  15.  
RAW Paste Data