darkwizard242.mkcert
Ansible Role: mkcert
This role installs mkcert on Debian/Ubuntu and EL systems by default. mkcert is a tool that helps create locally trusted development certificates.
Requirements
No special requirements.
Role Variables
Here are the variables you can use (found in defaults/main.yml
):
List of Variables:
mkcert_app: mkcert
mkcert_version: 1.4.4
mkcert_os: "{{ ansible_system | lower }}"
mkcert_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
mkcert_dl_url: https://github.com/FiloSottile/{{ mkcert_app }}/releases/download/v{{ mkcert_version }}/{{ mkcert_app }}-v{{ mkcert_version }}-{{ mkcert_os }}-{{ mkcert_architecture_map[ansible_architecture] }}
mkcert_bin_path: /usr/local/bin
mkcert_file_owner: root
mkcert_file_group: root
mkcert_file_mode: '0755'
Description of Variables:
Variable | Description |
---|---|
mkcert_app | The name of the app to install, which is mkcert. |
mkcert_version | The version of mkcert to install, default is 1.4.4. |
mkcert_os | Operating system type, used to get the right binaries. |
mkcert_architecture_map | Maps OS architecture to ensure the correct binaries are fetched. |
mkcert_dl_url | URL to download the mkcert binary. |
mkcert_bin_path | Path where the mkcert binary will be stored, default is /usr/local/bin. |
mkcert_file_owner | The owner of the mkcert binary file. |
mkcert_file_group | The group for the mkcert binary file. |
mkcert_file_mode | Permissions for the mkcert binary file. |
Dependencies
None
Example Playbook
To use the role for installing mkcert in an Ansible playbook, use the following:
- hosts: servers
roles:
- darkwizard242.mkcert
To install a specific version of mkcert, you can customize like this:
- hosts: servers
roles:
- darkwizard242.mkcert
vars:
mkcert_version: 1.4.3
To change the location where the mkcert binary is installed:
- hosts: servers
roles:
- darkwizard242.mkcert
vars:
mkcert_bin_path: /bin/
License
This project is licensed under the MIT License.
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs/Uninstalls 'mkcert'. It is a simple tool for making locally-trusted development certificates.
Installa
ansible-galaxy install darkwizard242.mkcert
Licenza
mit
Download
1.4k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!