acmetool.yml 649 B

123456789101112131415161718192021
  1. ---
  2. - name: ensure acmetool repository key is installed
  3. apt_key:
  4. id: EDB58DFA
  5. data: "{{ lookup('file', 'acmetool.gpg') }}"
  6. - name: ensure acmetool apt repository is installed
  7. apt_repository: repo='deb http://ppa.launchpad.net/hlandau/rhea/ubuntu xenial main'
  8. - name: ensure acmetool is installed
  9. apt: name=acmetool install_recommends=no
  10. - name: Ensure acmetool response file is up to date
  11. register: responsefile
  12. template:
  13. src: acme_config.j2
  14. dest: /var/lib/acme/responses.yml
  15. - name: Setup acmetool
  16. when: responsefile|changed
  17. shell: /usr/bin/acmetool quickstart --batch --response-file=/var/lib/acme/responses.yml