Some improvements
This commit is contained in:
parent
3727b6691d
commit
ac102f44af
14
README.md
14
README.md
|
@ -11,7 +11,14 @@ None
|
|||
Role Variables
|
||||
--------------
|
||||
|
||||
- selfsignedcert_basename (undefined): (Path and )Name of key, CSR and cert
|
||||
- selfsignedcert_basename (undefined): Relative(!) path and name of key, CSR and cert
|
||||
- selfsignedcert_suffix_key (defaults): "key"
|
||||
- selfsignedcert_suffix_csr (defaults): "csr.pem"
|
||||
- selfsignedcert_suffix_crt (defaults): "crt.pem"
|
||||
- selfsignedcert_suffix_combined (defaults): "pem" - set to False to disable combined key/cert file
|
||||
- selfsignedcert_keysize: Default: 2048
|
||||
- selfsigned_cn: Common name of certificate, default: ansible_hostname
|
||||
- selfsigned_san: List of SubjectAltNames, default: empty list
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
@ -23,7 +30,8 @@ Example Playbook
|
|||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- { role: selfsingedcert }
|
||||
- role: selfsignedcert
|
||||
selfsignedcert_basename: ./example-cert
|
||||
|
||||
License
|
||||
-------
|
||||
|
@ -33,6 +41,6 @@ GPL-2.0-or-later
|
|||
Author Information
|
||||
------------------
|
||||
|
||||
- Sven Velt <sven-ansiblerole@velt.biz>
|
||||
- Sven Velt - <sven-ansiblerole@velt.biz>
|
||||
- https://git.velt.biz/
|
||||
|
||||
|
|
7
example_playbook.yml
Normal file
7
example_playbook.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
|
||||
roles:
|
||||
- role: selfsignedcert
|
||||
selfsignedcert_basename: ./example-cert
|
||||
|
|
@ -36,8 +36,6 @@
|
|||
dest: '{{ selfsignedcert_basename }}.{{ selfsignedcert_suffix_combined }}'
|
||||
mode: 0600
|
||||
backup: yes
|
||||
when: selfsignedcert_suffix_combined != False
|
||||
|
||||
|
||||
- debug: var=xxx1
|
||||
- debug: var=xxx2
|
||||
|
||||
|
|
Loading…
Reference in a new issue