]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/mysql-server/tasks/main.yml
ansible-lint: Fix "Use shell only when shell functionality is required" warning
[AnsibleRoles.git] / roles / mysql-server / tasks / main.yml
index 5bcc9bdf573a6d318e34cfd2f85582404c85dd98..754920faf5443436a795fdbab5cc3a4867e274d4 100644 (file)
@@ -5,7 +5,7 @@
   tags:
     - mysql
     - fs
-  shell: test -d /var/lib/mysql/mysql
+  command: test -d /var/lib/mysql/mysql
   ignore_errors: yes
   check_mode: no
   register: mysql_server_installed
@@ -70,7 +70,7 @@
     - mysqltuner
     - python-mysqldb
 
-- name: ensure service "mysql" is enabled and running
+- name: ensure service "mysql" is enabled and started
   tags:
     - services
     - mysql
@@ -78,7 +78,7 @@
   service: >
     enabled=yes
     name=mysql
-    state=running
+    state=started
 
 - name: setup MySQL "ansible" account
   tags: