Copy van lavs-rhel8 dbnode

This commit is contained in:
Marcel Nijenhof
2021-05-06 14:43:38 +02:00
commit bf1c4d86e7
16 changed files with 244 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
---
- name: Remove remote root account (localhost-only)
community.mysql.mysql_user:
name: root
host: "{{ ansible_fqdn }}"
state: absent
- name: "Create lavs user for {{ ansible_fqdn }}"
community.mysql.mysql_user:
name: lavs
password: "{{ db_lavs_password }}"
host: "{{ db_remote_host }}"
state: present
priv:
'lavs_alfresco.*': 'ALL'
- name: "Create zm_user user for {{ ansible_fqdn }}"
community.mysql.mysql_user:
name: zm_user
password: "{{ db_zm_user_password }}"
host: "{{ db_remote_host }}"
state: present
priv:
'lavs_zm.*': 'ALL'
- name: "Create lars_user user for {{ ansible_fqdn }}"
community.mysql.mysql_user:
name: lars_user
password: "{{ db_lars_user_password }}"
host: "{{ db_remote_host }}"
state: present
priv:
'lavs_systeem.*': 'ALL'