Duckle29 / ansible-dhparam

An ansible role for generation dhparams locally and copying to server. Only if the correct size key is not already on the server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is ansible-dhparam? Build Status

It is an Ansible role to:

  • Generate a dh-parameter file on your local machine
  • Move it to a target server

Role variables

dhparams_key_size: 4096
dhparams_remote_directory: /etc/ssl/ansible
dhparams_filename: dhparams.pem
dhparams_owner: root
dhparams_group: root
dhparams_mode: u=rw,g=r,o=r
dhparams_directory_mode: u=rw,g=r,o=r

Example usage

---
- name: Generate dhparams for remote server
  hosts: all

  vars:
    dhparams_key_size: 2048

  roles:
    - role: duckle29.dhparam

Installation

$ ansible-galaxy install duckle29.dhparam

Ansible Galaxy

You can find it on the official Ansible Galaxy if you want to rate it.

License

MIT

About

An ansible role for generation dhparams locally and copying to server. Only if the correct size key is not already on the server.

License:MIT License


Languages

Language:Jinja 100.0%