--- - name: check if acmetool package is new enough debug: msg: "Check distribution_release" failed_when: (ansible_distribution == 'Debian' and ansible_distribution_major_version < 9) or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 17) or (ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu') - name: install acmetool apt: name: acmetool state: present - name: create initial directory structure command: acmetool --batch args: creates: /var/lib/acme/conf - name: create acmetool response file template: src: responses.j2 dest: /var/lib/acme/conf/responses - name: run quickstart to create account and default target configuration command: acmetool --batch quickstart args: creates: /var/lib/acme/conf/target