main.yml 378 B

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