Ansible syntax has changed apparently

This commit is contained in:
Faustin Lammler 2025-08-25 11:44:03 +02:00
parent bc49ab7130
commit e76f6e44b1
No known key found for this signature in database
GPG Key ID: 390A2F27832A5C79
1 changed files with 2 additions and 8 deletions

View File

@ -85,20 +85,14 @@
ansible.builtin.shell: | ansible.builtin.shell: |
mariadb -Bse 'STATUS' | grep "^Server version:" mariadb -Bse 'STATUS' | grep "^Server version:"
register: version register: version
when: when: lookup('env', 'MARIADB_VERSION') is true
- lookup('env', 'MARIADB_VERSION')
- lookup('env', 'MARIADB_VERSION') not in '11.rc'
- lookup('env', 'MARIADB_VERSION') not in '11.rolling'
- name: Check MariaDB version - name: Check MariaDB version
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- lookup('env', 'MARIADB_VERSION') in version.stdout - lookup('env', 'MARIADB_VERSION') in version.stdout
msg: "{{ version.stdout }}" msg: "{{ version.stdout }}"
when: when: lookup('env', 'MARIADB_VERSION') is true
- lookup('env', 'MARIADB_VERSION')
- lookup('env', 'MARIADB_VERSION') not in '11.rc'
- lookup('env', 'MARIADB_VERSION') not in '11.rolling'
- name: Check that Innodb engine is enabled (and default) - name: Check that Innodb engine is enabled (and default)
ansible.builtin.shell: | ansible.builtin.shell: |