fix playbook

This commit is contained in:
reqwizz 2024-11-04 21:38:26 +03:00
parent 18d2f05e28
commit 48742d8a6f

View File

@ -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