documentation: Playbook is failing on mysql role

Hello everyone,

I was able to replicate this issue on both a local vagrant and remote deploy several times.

I am using Ansible 2.9.1

The current playbook fails during this mysql task with:

TASK [geerlingguy.mysql : Check master replication status.] ********************
Monday 18 November 2019  11:27:39 -0500 (0:00:00.034)       0:02:50.073 ******* 
fatal: [default]: FAILED! => {"msg": "The conditional check '((slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave|failed)) and (mysql_replication_role == 'slave') and (mysql_replication_master != '')\n' failed. The error was: template error while templating string: no filter named 'failed'. String: {% if ((slave.Is_Slave is defined and not slave.Is_Slave) or (slave.Is_Slave is not defined and slave|failed)) and (mysql_replication_role == 'slave') and (mysql_replication_master != '')\n %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/gavin/Code/Islandora_Foundation/islandora-playbook/roles/external/geerlingguy.mysql/tasks/replication.yml': line 25, 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: Check master replication status.\n  ^ here\n"}

When I comment out the last line in roles/external/geerlingguy.mysql/tasks/main.yml i.e. #- include_tasks: replication.yml, this role no longer fails. Given I’m not running any type of MySQL cluster, there should be no negative impact.

This seems to be an error with the geerlingguy.mysql/tasks/replication.yml upstream Ansible role rather but it isn’t clear what Islandora users are supposed to do here?

Line 25 in the replication.yml task is tags: ['skip_ansible_galaxy'] of which all lines have this tag. Not clear what this issue is.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (12 by maintainers)

Most upvoted comments

It is a geerlingguy.mysql version 2.9.0 and it is solved on 2.9.5 Tested both on CentOS and Ubuntu and work well Ansible 3.8.1 Vagrant 2.2.7