У меня проблемы при использовании geerlingguy / ansible-role-mysql
Ошибка:
FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'list object' has no attribute 'password'\n\nThe error appears to have been in '/root/.ansible/roles/geerlingguy.mysql/tasks/replication.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure replication user exists on master.\n ^ here\n"}
My vars / main.yml:
mysql_bind_address: '0.0.0.0'
mysql_server_id: "1"
mysql_max_binlog_size: "100M"
mysql_binlog_format: "ROW"
mysql_expire_logs_days: "10"
mysql_replication_role: 'master'
mysql_replication_master: 'ip'
mysql_replication_user:
- name: slave01
password: pass1
priv: "*.*:REPLICATION SLAVE"
- name: slave02
password: pass2
priv: "*.*:REPLICATION SLAVE"
Я использую существующую роль, где вы можете увидеть похожий пример: https://github.com/geerlingguy/ansible-role-mysql#example-playbook
В чем проблема?