CA deployment with ansible
Deploy an application behind a reverse proxy
Establish a chain of CA (certificate authority)
-> create a public child certificate (for the reverse proxy)
-> create a private child certificate (for the mTLS app <-> reverse proxy)
- install python
- install ansible
- create a folder
- a role for certificates
- a task for the root
- generate the private key (RSA 4096)
- generate the public key
- create a CSR (certificate siging request)
- sign the cert
- a task for children
- generate the private key (RSA 4096)
- generate the public key
- create a CSR (certificate siging request)
- sign the cert
- a task for the root
- a playbook
- install docker
- create the docker subnet
- Create the reverse proxy
- Create the dns server
- including reverse proxy config
- server config
- basic DNS entries
- Raise a monitoring stack
$ git clone https://github.com/MiroYld/ansible-CA-deployment.git
$ cd ansible-CA-deployment/
$ ansible-playbook --ask-vault-pass playbook.yml
pass => soleil123