Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avinash6784/ansible-role-openssl-certs
Ansible role to create OpenSSL certs
https://github.com/avinash6784/ansible-role-openssl-certs
ansible devops openssl-certs role ssl-certificates
Last synced: 27 days ago
JSON representation
Ansible role to create OpenSSL certs
- Host: GitHub
- URL: https://github.com/avinash6784/ansible-role-openssl-certs
- Owner: avinash6784
- License: mit
- Created: 2017-12-13T15:47:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T16:16:31.000Z (about 7 years ago)
- Last Synced: 2024-01-14T17:27:51.186Z (12 months ago)
- Topics: ansible, devops, openssl-certs, role, ssl-certificates
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: OpenSSL Certs [Ansible Playbook Role To Install & Generate OpenSSL Certs]
Install & Generate OpenSSL Certs, on any RHEL/CentOS Linux system.
## Requirements
None.
## Role Variables
```ymlssl_certs_country: "IN"
ssl_certs_locality: "Pune"
ssl_certs_organization: "DevOps Techie"
ssl_certs_state: "Maharashtra"
ssl_certs_common_name: "{{ansible_fqdn}}"
ssl_certs_days: "365"
ssl_certs_fields: "/C={{ssl_certs_country}}/ST={{ssl_certs_state}}/L={{ssl_certs_locality}}/O={{ssl_certs_organization}}/CN={{ssl_certs_common_name}}"ssl_certs_path: "/etc/ssl/{{ssl_certs_common_name}}"
ssl_certs_path_owner: "ansible"
ssl_certs_path_group: "ansible"
ssl_certs_privkey_path: "{{ssl_certs_path}}/{{ssl_certs_common_name}}.key"
ssl_certs_cert_path: "{{ssl_certs_path}}/{{ssl_certs_common_name}}.pem"
ssl_certs_csr_path: "{{ssl_certs_path}}/{{ssl_certs_common_name}}.csr"
ssl_certs_dhparam_path: "{{ssl_certs_path}}/dhparam.pem"
ssl_certs_mode: "0700"
ssl_certs_force_replace: yesssl_certs_local_privkey_path: "{{inventory_dir|default(playbook_dir)}}/files/ssl/{{ssl_certs_common_name}}.key"
ssl_certs_local_cert_path: "{{inventory_dir|default(playbook_dir)}}/files/ssl/{{ssl_certs_common_name}}.pem"
ssl_certs_local_privkey_data: ""
ssl_certs_local_cert_data: ""ssl_certs_generate_self_signed: true
ssl_certs_key_size: "2048"
ssl_certs_generate_dh_param: false
ssl_certs_dhparam_size: "2048"```
## Dependencies
None.
## Usage and Example Playbook
Install from Ansible Galaxy
$ ansible-galaxy install avinash6784.openssl-certs
Or download manually$ git clone https://github.com/avinash6784/ansible-role-openssl-certs.git
The code should reside in the roles directory of ansible ( See ansible documentation for more information on roles ), in a folder ansible-role-openssl-certs.## Run the playbook
First create a playbook including the git role, naming it test.yml.
```yml
- name: Install OpenSSL Certs
hosts: localhost
become: true
roles:
- ansible-role-openssl-certs
$ ansible-playbook -i hosts test.yml
```## Author Informations
This role was created by [Avinash Pawar](http://devopstechie.com)