trellis-backup
trellis-backup copied to clipboard
mysql_root_user is undefined
I don't know why mysql_root_user is not available in that scope, but as defined in the mariadb task from trellis the root user is always root so I've hardcoded that username to the create backup jobs task:
- name: Create backup jobs
set_fact:
[...]
backup_mysql_user: root
backup_mysql_pass: "{{ mysql_root_password }}"
@o1y If you try to run the backup role without running the mariadb role, mysql_root_user will be undefined. If you are adding the backup role to an already-configured Trellis site, make sure you run:
ansible-playbook server.yml -e env=production
…with both mariadb and backup enabled and in that order.