fix playbook
This commit is contained in:
parent
18d2f05e28
commit
48742d8a6f
@ -161,16 +161,21 @@
|
||||
force: yes
|
||||
update_cache: yes
|
||||
|
||||
- name: Set hostname to vlad4
|
||||
hostname:
|
||||
name: vlad4
|
||||
|
||||
- name: Create SSL directory
|
||||
- name: Ensure SSL directory exists
|
||||
file:
|
||||
path: /etc/nginx/ssl
|
||||
state: directory
|
||||
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
|
||||
openssl_certificate:
|
||||
path: /etc/nginx/ssl/vlad4.crt
|
||||
|
Loading…
Reference in New Issue
Block a user