acmetool.yml 655 B

12345678910111213141516171819202122232425
  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 config is up to date
  11. template:
  12. src: acme_config.j2
  13. dest: /var/lib/acme/conf/target
  14. - name: Ensure acmetool cronjob is installed
  15. cron:
  16. name: "Renew Let's Encrypt certificates"
  17. job: /usr/bin/acmetool --batch reconcile
  18. hour: 3
  19. minute: 30
  20. day: 1