Moving to ansible 2.9
Some code changes were necessary since the Ansible-provided jinja tests as filters was removed in ansible 2.9, see [1] [1] https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters Co-authored-by: Kaio Oliveira <kaio.kassiano.oliveira@gmail.com> Change-Id: I2f1c2ece0543eb60ac5ac5f9ad1465ffd2d66592
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
- name: Setting MySQL socket fact
|
||||
set_fact:
|
||||
mysql_socket_path: "/var/{% if ansible_os_family | lower == 'redhat' %}lib{% else %}run{% endif %}/{% if ansible_os_family | lower == 'debian' %}mysqld/mysqld.sock{% else %}mysql/mysql.sock{% endif %}"
|
||||
when: ansible_version.full is version_compare('2.6.5', '>=')
|
||||
|
||||
- name: "MySQL - Creating DB"
|
||||
mysql_db:
|
||||
|
||||
Reference in New Issue
Block a user