- 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}}"