Advertisement
QualibreInfo

roles/mediawiki/confdb/tasks/main.yml

Feb 4th, 2022
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.60 KB | None | 0 0
  1. ---
  2.  
  3. - name: "mediawiki database"
  4.   mysql_db:
  5.     login_unix_socket: /var/run/mysqld/mysqld.sock
  6.     name: "{{mediawiki_db_name}}"
  7.     state: present
  8.  
  9. - name: "mediawiki user+privileges"
  10.   mysql_user:
  11.     login_unix_socket: /var/run/mysqld/mysqld.sock
  12.     name: "{{mediawiki_db_user}}"
  13.     password: "{{mediawiki_db_password}}"
  14.     priv: "{{mediawiki_db_name}}.*:ALL"
  15.     host: "{{item}}"
  16.     state: present
  17.   with_items: "{{groups.apache}}"
  18.  
  19. - name: "Open external connections to DB"
  20.   copy:
  21.     src: 50-server.cnf
  22.     dest: /etc/mysql/mariadb.conf.d/50-server.cnf
  23.   notify: [ "restart mariadb" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement