From dc40993291ead66a66e737c8f3901c4106def068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Fri, 23 Dec 2016 22:45:42 +0100 Subject: [PATCH] Use command instead of shell --- evolinux-base/tasks/default_www.yml | 4 ++-- evolinux-base/tasks/fstab.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evolinux-base/tasks/default_www.yml b/evolinux-base/tasks/default_www.yml index aa12b452..1224a4d4 100644 --- a/evolinux-base/tasks/default_www.yml +++ b/evolinux-base/tasks/default_www.yml @@ -27,7 +27,7 @@ state: installed - name: Create private key and csr for default site ({{ ansible_fqdn }}) - shell: openssl req -newkey rsa:2048 -sha256 -nodes -keyout /etc/ssl/private/{{ ansible_fqdn }}.key -out /etc/ssl/{{ ansible_fqdn }}.csr -batch -subj "{{ evolinux_default_www_ssl_subject }}" + command: openssl req -newkey rsa:2048 -sha256 -nodes -keyout /etc/ssl/private/{{ ansible_fqdn }}.key -out /etc/ssl/{{ ansible_fqdn }}.csr -batch -subj "{{ evolinux_default_www_ssl_subject }}" args: creates: "/etc/ssl/private/{{ ansible_fqdn }}.key" @@ -39,7 +39,7 @@ mode: 0640 - name: Create certificate for default site - shell: openssl x509 -req -days 3650 -sha256 -in /etc/ssl/{{ ansible_fqdn }}.csr -signkey /etc/ssl/private/{{ ansible_fqdn }}.key -out /etc/ssl/certs/{{ ansible_fqdn }}.crt + command: openssl x509 -req -days 3650 -sha256 -in /etc/ssl/{{ ansible_fqdn }}.csr -signkey /etc/ssl/private/{{ ansible_fqdn }}.key -out /etc/ssl/certs/{{ ansible_fqdn }}.crt args: creates: "/etc/ssl/certs/{{ ansible_fqdn }}.crt" diff --git a/evolinux-base/tasks/fstab.yml b/evolinux-base/tasks/fstab.yml index 1a4952f9..466d7cdb 100644 --- a/evolinux-base/tasks/fstab.yml +++ b/evolinux-base/tasks/fstab.yml @@ -3,7 +3,7 @@ # TODO: try to use the custom mount_uuid module for a different approach - name: Fetch fstab content - shell: "grep -v '^#' /etc/fstab" + command: "grep -v '^#' /etc/fstab" register: fstab_content failed_when: False changed_when: False