ansible lint additions, .yamllint.yml configuratuion

This commit is contained in:
Bastian de Byl
2022-04-12 01:43:26 -04:00
parent d955598f05
commit 78f8ce2c6f
35 changed files with 87 additions and 411 deletions

View File

@@ -1,14 +1,14 @@
---
- name: stat dhparam
become: true
stat:
ansible.builtin.stat:
path: /etc/ssl/certs/dhparam.pem
register: dhparam
tags: ssl
- name: generate openssl dhparam for nginx
become: true
command: |
ansible.builtin.command: |
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
when: not dhparam.stat.exists
args:
@@ -17,7 +17,7 @@
- name: create ssl certificate for ci server
become: true
command: |
ansible.builtin.command: |
certbot certonly --webroot --webroot-path=/srv/http/letsencrypt \
-m {{ ssl_email }} --agree-tos \
-d {{ item }}

View File

@@ -1,7 +1,7 @@
---
- name: renew certbot ssl certificates weekly
become: true
cron:
ansible.builtin.cron:
name: certbot_renew
special_time: weekly
job: >-