2017-02-18 14:18:39 +01:00
|
|
|
---
|
|
|
|
- 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"
|
2017-06-30 22:24:56 +02:00
|
|
|
hour: "7"
|
|
|
|
weekday: "1"
|
2017-02-18 14:18:39 +01:00
|
|
|
tags: certsync
|