fix playbook
This commit is contained in:
parent
18d2f05e28
commit
48742d8a6f
@ -161,16 +161,21 @@
|
|||||||
force: yes
|
force: yes
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Set hostname to vlad4
|
- name: Ensure SSL directory exists
|
||||||
hostname:
|
|
||||||
name: vlad4
|
|
||||||
|
|
||||||
- name: Create SSL directory
|
|
||||||
file:
|
file:
|
||||||
path: /etc/nginx/ssl
|
path: /etc/nginx/ssl
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
|
|
||||||
|
- name: Generate private key
|
||||||
|
openssl_privatekey:
|
||||||
|
path: /etc/nginx/ssl/vlad4.key
|
||||||
|
size: 2048
|
||||||
|
type: RSA
|
||||||
|
mode: '0600'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
|
||||||
- name: Generate self-signed SSL certificate
|
- name: Generate self-signed SSL certificate
|
||||||
openssl_certificate:
|
openssl_certificate:
|
||||||
path: /etc/nginx/ssl/vlad4.crt
|
path: /etc/nginx/ssl/vlad4.crt
|
||||||
|
Loading…
Reference in New Issue
Block a user