You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
559 B

  1. ---
  2. - name: Install packages needed by Ansible community plugins
  3. pip:
  4. executable: pip3
  5. break_system_packages: true
  6. name: cryptography
  7. - name: Create directory for certificate
  8. file:
  9. path: "{{ ssl_cert_dir }}"
  10. state: directory
  11. mode: 0755
  12. - name: Create a private key
  13. community.crypto.openssl_privatekey:
  14. path: "{{ ssl_private_key_path }}"
  15. - name: Create a self-signed certificate
  16. community.crypto.x509_certificate:
  17. path: "{{ ssl_cert_path }}"
  18. privatekey_path: "{{ ssl_private_key_path }}"
  19. provider: selfsigned