Skip to content

Commit e322340

Browse files
authored
Merge pull request geerlingguy#516 from ssbarnea/chore/lint
Address no-free-form ansible-lint rule
2 parents 6897d2d + f6f9fc8 commit e322340

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

tasks/replication.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
- (mysql_replication_master | length) > 0
5252

5353
- name: Start replication.
54-
mysql_replication: mode=startreplica
54+
mysql_replication:
55+
mode: startreplica
5556
when:
5657
- (slave.Is_Slave is defined and slave.Is_Slave) or (slave.Is_Replica is defined and slave.Is_Replica) or (slave.Is_Slave is not defined and slave.Is_Replica is not defined and slave is failed)
5758
- mysql_replication_role == 'slave'

tasks/setup-Archlinux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
- name: Ensure MySQL Python libraries are installed.
3-
community.general.pacman: "name=mysql-python state=present"
3+
community.general.pacman:
4+
name: mysql-python
5+
state: present
46

57
- name: Ensure MySQL packages are installed.
6-
community.general.pacman: "name={{ mysql_packages }} state=present"
8+
community.general.pacman:
9+
name: "{{ mysql_packages }}"
10+
state: present
711
register: arch_mysql_install_packages
812

913
- name: Run mysql_install_db if MySQL packages were changed.

tasks/setup-Debian.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
register: mysql_installed
66

77
- name: Update apt cache if MySQL is not yet installed.
8-
ansible.builtin.apt: update_cache=yes
8+
ansible.builtin.apt:
9+
update_cache: yes
910
changed_when: False
1011
when: not mysql_installed.stat.exists
1112

@@ -24,7 +25,9 @@
2425
# Because Ubuntu starts MySQL as part of the install process, we need to stop
2526
# mysql and remove the logfiles in case the user set a custom log file size.
2627
- name: Ensure MySQL is stopped after initial install.
27-
ansible.builtin.service: "name={{ mysql_daemon }} state=stopped"
28+
ansible.builtin.service:
29+
name: "{{ mysql_daemon }}"
30+
state: stopped
2831
when: not mysql_installed.stat.exists
2932

3033
- name: Delete innodb log files created by apt package after initial install.

0 commit comments

Comments
 (0)