From dd939856e39d21a582bbb40b6ac354f0480102df Mon Sep 17 00:00:00 2001 From: lulzette Date: Sat, 27 Feb 2021 15:13:57 +0300 Subject: [PATCH] certbot --- 1/roles/nginx/tasks/certbot.yml | 9 +++++++-- 1/roles/nginx/tasks/main.yml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) 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