You've already forked ansible-role-customca
Initial Commit
This commit is contained in:
40
README.md
Normal file
40
README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
ansible-role-customca
|
||||
=========
|
||||
|
||||
This role exists to ensure that internal trusted ca's are added onto Linux hosts (RHEL 6,7 and 8).
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
The only requirements for this role to function are a CheckMK Enterprise instance. Configured with a baked updating agent.
|
||||
The only requirements for using this role is a folder at your playbook root (files/ca_certs).
|
||||
|
||||
This folder should contain certs you wish to add to the trust store one per file.
|
||||
|
||||
files/ca_certs/
|
||||
├── SOME_ISSUING_CA.crt
|
||||
└── SOME-OFFLINE-ROOT-CA.crt
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
There are no Role Variables. Just relies on the folder structure outlined above
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
This role is not dependant on any other.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- customca
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
MIT
|
||||
7
files/ca_certs/README.md
Normal file
7
files/ca_certs/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# files/cacerts
|
||||
|
||||
Place in this folder all your ca_certs to trust.
|
||||
|
||||
# Suggested use
|
||||
|
||||
Create a folders at the root of your playbook (files/ca_certs) and place all individual certs you wish to trust inside.
|
||||
4
handlers/main.yml
Normal file
4
handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: Update Trust Store
|
||||
command: update-ca-trust extract
|
||||
become: true
|
||||
9
tasks/main.yml
Normal file
9
tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Copy public certificate files
|
||||
copy:
|
||||
src: ca_certs/
|
||||
dest: /etc/pki/ca-trust/source/anchors
|
||||
become: true
|
||||
notify: Update Trust Store
|
||||
|
||||
- meta: flush_handlers
|
||||
Reference in New Issue
Block a user