install nginx in nitter-nginx/tasks/main.yml

This commit is contained in:
staticsafe 2021-09-11 14:58:52 -04:00
parent 173aa1520a
commit 659137c994
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@
ansible.builtin.template:
src: account.conf
dest: /root/.acme.sh/account.conf
- name: Install nginx
ansible.builtin.apt:
name: nginx
state: present
- name: Generate certificate using acme.sh
ansible.builtin.shell: /root/.acme.sh/acme.sh --issue --standalone -d {{ NITTER_DOMAIN }} --pre-hook "service nginx stop"
ignore_errors: yes