main.yml 379 B

123456
  1. - name: deactivate htaccess
  2. command: 'mv /var/www/sonerezh/.htaccess /var/www/sonerezh/htaccess'
  3. - name: renewal certificat
  4. command: '/root/certbot-auto certonly --renew-by-default -a webroot --webroot-path /var/www/sound/sonerezh -d sound.hory.me --rsa-key-size 4096 --text'
  5. - name: reactivate htaccess
  6. command: 'mv /var/www/sonerezh/htaccess /var/www/sonerezh/.htaccess'