--- - name: Create ssl cert command: /srv/bin/ssl-create {{warehost_api_domain}} args: creates: /etc/letsencrypt/live/{{warehost_api_domain}}/fullchain.pem when: warehostv2_api_ssl - name: Configurate nginx template: src=nginx.conf dest=/etc/nginx/servers/80-{{ warehost_api_domain }}.act owner={{http_usr}} mode=644 notify: reload nginx