trellis-backup icon indicating copy to clipboard operation
trellis-backup copied to clipboard

mysql_root_user is undefined

Open o1y opened this issue 9 years ago • 1 comments

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 avatar Aug 25 '16 10:08 o1y

@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.

greatislander avatar Sep 03 '16 18:09 greatislander