mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 19:11:24 +08:00
15 lines
466 B
YAML
15 lines
466 B
YAML
- name: Install the needed packages
|
|
package: name={{item}} state=present
|
|
with_items:
|
|
- httpd
|
|
- certbot
|
|
|
|
- name: Create directory for ACME challenge
|
|
file: dest=/srv/web/acme-challenge state=directory owner=root group=root mode=755
|
|
|
|
- name: Allow httpd to see ACME challenge directory
|
|
copy: src=acme-challenge.conf dest=/etc/httpd/conf.d/acme-challenge.conf
|
|
|
|
- name: Certbot renewal cron
|
|
cron: name=certbot-renew special_time=monthly job="certbot renew"
|