Skip to content

Commit

Permalink
Start & enable nginx before requesting SSL certificate (RHEL) (#230)
Browse files Browse the repository at this point in the history
* Start & enable nginx before requesting SSL certificate

- Fixes issue where certbot starts nginx itself causing a conflict later in the playbook
- Refs #229

* Fix prettier/lint issues for CI
  • Loading branch information
codyro committed Mar 2, 2024
1 parent 9d5ed4c commit ba0d99b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lemmy-almalinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@
tags:
- firewalld

- name: Start and enable nginx.service
ansible.builtin.systemd:
name: nginx.service
state: started
enabled: true
tags:
- certbot
- certbot_initial
- nginx
- ssl

# TODO: certbot logic needs to be re-worked
- name: Request initial letsencrypt certificate
ansible.builtin.command: certbot certonly --nginx --agree-tos --cert-name '{{ domain }}' -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
Expand Down

0 comments on commit ba0d99b

Please sign in to comment.