diff --git a/1/roles/nginx/tasks/certbot.yml b/1/roles/nginx/tasks/certbot.yml index 0e1dec3..75a2c09 100644 --- a/1/roles/nginx/tasks/certbot.yml +++ b/1/roles/nginx/tasks/certbot.yml @@ -6,9 +6,14 @@ state: present - name: Get certs using certbot - shell: echo "cock" + shell: certbot run --test-cert --register-unsafely-without-email --agree-tos -n -d {{item}}{{domain}} --nginx + loop: + - cloud. + - wiki. + - pma. + - -- name: start nginx +- name: restart nginx service: name: nginx state: restarted diff --git a/1/roles/nginx/tasks/main.yml b/1/roles/nginx/tasks/main.yml index 9030933..0106e79 100644 --- a/1/roles/nginx/tasks/main.yml +++ b/1/roles/nginx/tasks/main.yml @@ -6,4 +6,4 @@ - include_tasks: configure.yml -# - include_tasks: certbot.yml \ No newline at end of file +- include_tasks: certbot.yml \ No newline at end of file