--- - hosts: webhost remote_user: root vars: websites: - shockrah.xyz - git.shockrah.xyz - resume.shockrah.xyz - temper.tv tasks: - name: Ensure certbot is setup import_tasks: ../tasks/certbot-installation.yml - name: Get certificate command: certbot -n --nginx certonly -d {{ item }} args: creates: "/etc/letsencrypt/live/{{ item }}" loop: "{{ websites }}"