initial commit

This commit is contained in:
2020-05-15 19:39:21 +02:00
commit e960091c93
7 changed files with 224 additions and 0 deletions

31
handlers/main.yml Normal file
View File

@@ -0,0 +1,31 @@
- name: acme_autoreconf
shell: "autoreconf -i"
args:
chdir: "{{src_dir}}/acme-client-portable"
notify: acme_configure
- name: acme_configure
shell: "./configure"
args:
chdir: "{{src_dir}}/acme-client-portable"
notify: acme_build
- name: acme_build
make:
chdir: "{{src_dir}}/acme-client-portable"
target: "{{item}}"
loop:
- clean
- all-am
- install
- name: run renew script
shell: "{{acme_renew_script_path}}/renew_certs"
when: acme_renew_script
listen: "renew certs"
- name: run acme-client
shell: "acme-client {{item.domain}}"
when: not acme_renew_script
listen: "renew certs"
loop: "{{acme_hosts}}"