main.yml 610 B

123456789101112131415161718192021222324
  1. - name: renewal certificat www.hory.me
  2. command: "/root/certbot-auto certonly -n --webroot -w /var/www/renewal -d www.hory.me -d hory.me --rsa-key-size 4096 --text"
  3. - include: renewal.yml subdomain={{item}}
  4. with_items:
  5. - owncloud.hory.me
  6. - monitor.hory.me
  7. - postfixadmin.hory.me
  8. - sound.hory.me
  9. - git.hory.me
  10. - plante.hory.me
  11. - wiki.hory.me
  12. - demo.hory.me
  13. - name: disable temporary sites
  14. command: "a2dissite *"
  15. args:
  16. chdir: "/etc/apache2/sites-enabled"
  17. - name: remove temporary config
  18. file:
  19. path: /etc/apache2/sites-available/renewal.conf
  20. state: absent