forked from evolix/ansible-roles
Use command instead of shell where possible
This commit is contained in:
parent
e2452cdf6c
commit
f6cfe41a35
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue