mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 11:40:33 -07:00
Fix CI
This commit is contained in:
parent
b2cdd081b8
commit
1a33abbada
2 changed files with 8 additions and 5 deletions
|
@ -11,20 +11,27 @@
|
||||||
- name: Add fake port to config file
|
- name: Add fake port to config file
|
||||||
shell: 'echo "port = {{ fake_port }}" >> {{ config_file }}'
|
shell: 'echo "port = {{ fake_port }}" >> {{ config_file }}'
|
||||||
|
|
||||||
|
- name: Get pymysql version for the next include
|
||||||
|
shell: pip show pymysql | awk '/Version/ {print $2}'
|
||||||
|
register: pymysql_version
|
||||||
|
|
||||||
- name: Add blank line
|
- name: Add blank line
|
||||||
shell: 'echo "" >> {{ config_file }}'
|
shell: 'echo "" >> {{ config_file }}'
|
||||||
|
when: (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '>=')
|
||||||
|
|
||||||
- name: Create include_dir
|
- name: Create include_dir
|
||||||
file:
|
file:
|
||||||
path: '{{ include_dir }}'
|
path: '{{ include_dir }}'
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0777'
|
mode: '0777'
|
||||||
|
when: (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '>=')
|
||||||
|
|
||||||
- name: Add include_dir
|
- name: Add include_dir
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: '{{ config_file }}'
|
path: '{{ config_file }}'
|
||||||
line: '!includedir {{ include_dir }}'
|
line: '!includedir {{ include_dir }}'
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
|
when: (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '>=')
|
||||||
|
|
||||||
- name: Create database using fake port to connect to, must fail
|
- name: Create database using fake port to connect to, must fail
|
||||||
mysql_db:
|
mysql_db:
|
||||||
|
|
|
@ -320,11 +320,7 @@
|
||||||
|
|
||||||
- include: encoding_dump_import.yml file=latin1.sql format_msg_type=ASCII
|
- include: encoding_dump_import.yml file=latin1.sql format_msg_type=ASCII
|
||||||
|
|
||||||
- name: Get pymysql version for the next include
|
|
||||||
shell: pip show pymysql | awk '/Version/ {print $2}'
|
|
||||||
register: pymysql_version
|
|
||||||
|
|
||||||
- include: config_overrides_defaults.yml
|
- include: config_overrides_defaults.yml
|
||||||
when: ansible_python.version_info[0] >= 3 and (pymysql_version.stdout | default('1000', true)) is version('0.9.3', '>=')
|
when: ansible_python.version_info[0] >= 3
|
||||||
|
|
||||||
- include: issue-28.yml
|
- include: issue-28.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue