mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-20 00:04:10 +02:00
49886af37e
See merge request tildes-community/tildes-cf!1
23 lines
559 B
YAML
23 lines
559 B
YAML
---
|
|
- name: Install packages needed by Ansible community plugins
|
|
pip:
|
|
executable: pip3
|
|
break_system_packages: true
|
|
name: cryptography
|
|
|
|
- name: Create directory for certificate
|
|
file:
|
|
path: "{{ ssl_cert_dir }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Create a private key
|
|
community.crypto.openssl_privatekey:
|
|
path: "{{ ssl_private_key_path }}"
|
|
|
|
- name: Create a self-signed certificate
|
|
community.crypto.x509_certificate:
|
|
path: "{{ ssl_cert_path }}"
|
|
privatekey_path: "{{ ssl_private_key_path }}"
|
|
provider: selfsigned
|