1
0
forked from HPC/HPCplaybooks

Playbook for installation of new certificates

This commit is contained in:
Egon Rijpkema
2018-12-19 16:14:49 +01:00
parent 0f81929a02
commit fb80addda6
2 changed files with 104 additions and 0 deletions

23
molgenis_cert.yml Normal file
View File

@@ -0,0 +1,23 @@
---
- hosts: fqdn-certfile
become: false
tasks:
- copy:
src: newcertsmolgenis/{{ ansible_hostname }}_gcc_rug_nl.crt
dest: /etc/pki/tls/certs/{{ ansible_hostname }}_gcc_rug_nl/{{ ansible_hostname }}_gcc_rug_nl.crt
backup: yes
- copy:
src: newcertsmolgenis/rsa.{{ ansible_hostname }}.gcc.rug.nl.key
dest: /etc/pki/tls/private/{{ ansible_hostname }}_gcc_rug_nl/{{ ansible_hostname }}_gcc_rug_nl.key
backup: yes
- hosts: localhost-certfile
become: true
tasks:
- copy:
src: newcertsmolgenis/{{ ansible_hostname }}_gcc_rug_nl.crt
dest: /etc/pki/tls/certs/localhost.crt
backup: yes
- copy:
src: newcertsmolgenis/rsa.{{ ansible_hostname }}.gcc.rug.nl.key
dest: /etc/pki/tls/private/localhost.key
backup: yes