]> 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 ccf898411c735c90e363b157b125687eead0d9b8..754920faf5443436a795fdbab5cc3a4867e274d4 100644 (file)
@@ -5,8 +5,9 @@
   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
   changed_when: false
 
@@ -69,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
@@ -77,7 +78,7 @@
   service: >
     enabled=yes
     name=mysql
-    state=running
+    state=started
 
 - name: setup MySQL "ansible" account
   tags: