Add certsync role
This commit is contained in:
parent
4958014991
commit
ba5a82e1ac
4 changed files with 50 additions and 0 deletions
24
roles/certsync/tasks/main.yml
Normal file
24
roles/certsync/tasks/main.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: create SSH key
|
||||
command: ssh-keygen -b 4096 -C {{ ansible_nodename }} -f {{ certsync_key }}
|
||||
args:
|
||||
creates: "{{ certsync_key }}"
|
||||
tags: certsync
|
||||
|
||||
- name: template certsync script
|
||||
template:
|
||||
src: templates/certsync.j2
|
||||
dest: "{{ certsync_script }}"
|
||||
owner: root
|
||||
group: staff
|
||||
mode: 0550
|
||||
tags: certsync
|
||||
|
||||
- name: create cronjob
|
||||
cron:
|
||||
name: TLS Zertifikate synchronisieren
|
||||
job: "{{ certsync_script }}"
|
||||
minute: "0"
|
||||
hour: "6"
|
||||
day: "2"
|
||||
tags: certsync
|
Loading…
Add table
Add a link
Reference in a new issue