]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
ansible-lint: Fix "Use shell only when shell functionality is required" warning
authorAlexander Barton <alex@barton.de>
Wed, 3 May 2017 11:24:26 +0000 (13:24 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 3 May 2017 11:43:39 +0000 (13:43 +0200)
roles/git-backup-script/handlers/main.yml
roles/mysql-server/tasks/main.yml
roles/sshd/handlers/main.yml

index d5be708d260f787883ea43b6c0e652faa45a26d5..5c5659f235d56e36c083af8df0792ee55ef9786e 100644 (file)
@@ -6,6 +6,6 @@
     - git
     - source
     - backup
-  shell: make install
+  command: make install
   args:
     chdir: /usr/local/src/backup-script
index 0ea20951fc0c7574078fd63054dff6ac88991502..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
index bb2970db4a9afeb539ca1dbf2b89c396f469ed74..b0ca929789003ad75de2dee0802e5e20d83ebb28 100644 (file)
@@ -4,7 +4,7 @@
 - name: restart "sshd"
   tags:
     - ssh
-  shell: echo "SSH service should be restarted ..."
+  command: echo "SSH service should be restarted ..."
   changed_when: True
   notify:
     - restart SSH daemon (service "ssh")