Skip to content

Commit ddd9c29

Browse files
authored
Merge pull request geerlingguy#514 from ssbarnea/chore/lint
Fix no-free-form rule violation
2 parents f131915 + eb94678 commit ddd9c29

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

handlers/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
---
22
- name: restart mysql
3-
service: "name={{ mysql_daemon }} state=restarted sleep=5"
3+
service:
4+
name: "{{ mysql_daemon }}"
5+
state: restarted
6+
sleep: 5

tasks/configure.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,8 @@
8181
tags: ['skip_ansible_galaxy']
8282

8383
- name: Ensure MySQL is started and enabled on boot.
84-
service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"
84+
service:
85+
name: "{{ mysql_daemon }}"
86+
state: started
87+
enabled: "{{ mysql_enabled_on_startup }}"
8588
register: mysql_service_configuration

tasks/replication.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
tags: ['skip_ansible_galaxy']
2626

2727
- name: Check master replication status.
28-
mysql_replication: mode=getprimary
28+
mysql_replication:
29+
mode: getprimary
2930
delegate_to: "{{ mysql_replication_master_inventory_host }}"
3031
register: master
3132
when:

tasks/secure-installation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,6 @@
8383
with_items: "{{ mysql_anonymous_hosts.stdout_lines|default([]) }}"
8484

8585
- name: Remove MySQL test database.
86-
mysql_db: "name='test' state=absent"
86+
mysql_db:
87+
name: 'test'
88+
state: absent

tasks/setup-Debian.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: Check if MySQL is already installed.
3-
stat: path={{ mysql_config_file }}
3+
stat:
4+
path: "{{ mysql_config_file }}"
45
register: mysql_installed
56

67
- name: Update apt cache if MySQL is not yet installed.
@@ -27,7 +28,9 @@
2728
when: not mysql_installed.stat.exists
2829

2930
- name: Delete innodb log files created by apt package after initial install.
30-
file: path={{ mysql_datadir }}/{{ item }} state=absent
31+
file:
32+
path: "{{ mysql_datadir }}/{{ item }}"
33+
state: absent
3134
with_items:
3235
- ib_logfile0
3336
- ib_logfile1

0 commit comments

Comments
 (0)