main.yml 650 B

1234567891011121314151617181920212223242526
  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. - courses.hory.me
  6. - demo.hory.me
  7. - git.hory.me
  8. - monitor.hory.me
  9. - owncloud.hory.me
  10. - plante.hory.me
  11. - postfixadmin.hory.me
  12. - sgp.hory.me
  13. - sound.hory.me
  14. - wiki.hory.me
  15. - name: disable temporary sites
  16. command: "a2dissite *"
  17. args:
  18. chdir: "/etc/apache2/sites-enabled"
  19. - name: remove temporary config
  20. file:
  21. path: /etc/apache2/sites-available/renewal.conf
  22. state: absent