Use command instead of shell
This commit is contained in:
parent
66f5ae27c9
commit
dc40993291
|
@ -27,7 +27,7 @@
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: Create private key and csr for default site ({{ ansible_fqdn }})
|
- 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:
|
args:
|
||||||
creates: "/etc/ssl/private/{{ ansible_fqdn }}.key"
|
creates: "/etc/ssl/private/{{ ansible_fqdn }}.key"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
mode: 0640
|
mode: 0640
|
||||||
|
|
||||||
- name: Create certificate for default site
|
- 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:
|
args:
|
||||||
creates: "/etc/ssl/certs/{{ ansible_fqdn }}.crt"
|
creates: "/etc/ssl/certs/{{ ansible_fqdn }}.crt"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# TODO: try to use the custom mount_uuid module for a different approach
|
# TODO: try to use the custom mount_uuid module for a different approach
|
||||||
|
|
||||||
- name: Fetch fstab content
|
- name: Fetch fstab content
|
||||||
shell: "grep -v '^#' /etc/fstab"
|
command: "grep -v '^#' /etc/fstab"
|
||||||
register: fstab_content
|
register: fstab_content
|
||||||
failed_when: False
|
failed_when: False
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
Loading…
Reference in a new issue