Use command instead of shell where possible

This commit is contained in:
Jérémy Lecour 2017-05-19 22:31:17 +02:00
parent e2452cdf6c
commit f6cfe41a35
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
command: newaliases command: newaliases
- name: Test Apache conf - name: Test Apache conf
shell: apache2ctl -t command: apache2ctl -t
notify: "Reload Apache conf" notify: "Reload Apache conf"
- name: reload apache2 - name: reload apache2

View file

@ -24,7 +24,7 @@
register: logstash_plugin register: logstash_plugin
- name: is logstash-input-beats installed? - name: is logstash-input-beats installed?
shell: grep logstash-input-beats /usr/share/logstash/Gemfile command: grep logstash-input-beats /usr/share/logstash/Gemfile
check_mode: no check_mode: no
register: logstash_plugin_installed register: logstash_plugin_installed
failed_when: false failed_when: false

View file

@ -6,7 +6,7 @@
ssh_key_bits: 2048 ssh_key_bits: 2048
- name: Fetch ssh public keys - name: Fetch ssh public keys
shell: cat /root/.ssh/id_rsa.pub command: cat /root/.ssh/id_rsa.pub
register: ssh_keys register: ssh_keys
check_mode: no check_mode: no
changed_when: false changed_when: false