Bugfixes + Update Enhancements (#25)

* Move certbot to be first.

* Comment out HTTPS, will use reverse proxy until it is working properly.

* Enhance `update` for pacman + pkg

* `update` enhancements to pkg and apt.

* Add more FS types to ignore.

* Add `freebsd-update` commands, including a clean of previous upgrade (VMs are small and need space!).

* Add sudo.

* Put the directory back for future updates.

* Avoid exit code 2 from freebsd-update install.

* Remove word Cleanup.
This commit is contained in:
2022-04-16 08:07:53 -05:00
committed by GitHub
parent cdfb257b21
commit 3c670b5961
4 changed files with 31 additions and 17 deletions

View File

@ -52,19 +52,20 @@
state: present
# 2022-04-13 Looks like this went live too early, finish commenting it out.
## HTTPS ##
# https://helpcenter.only{{ ansible_histname }}.com/installation/docs-community-https-linux.aspx
# https://helpcenter.onlyoffice.com/installation/docs-community-https-linux.aspx
# Certs #
- name: Server | OnlyOffice | HTTPS | Check For Cert
shell: "ls -l /etc/letsencrypt/live/{{ ansible_hostname }}.{{ domain }}/{fullchain,privkey}.pem"
register: onlyoffice_cert
- name: Server | OnlyOffice | HTTPS | Create Cert
shell: "certbot --nginx -d {{ ansible_hostname }}.{{ domain }}"
when: onlyoffice_cert.failed
#- name: Server | OnlyOffice | HTTPS | Check For Cert
# shell: "ls -l /etc/letsencrypt/live/{{ ansible_hostname }}.{{ domain }}/{fullchain,privkey}.pem"
# register: onlyoffice_cert
# ignore_errors: yes
#
#- name: Server | OnlyOffice | HTTPS | Create Cert
# shell: "certbot --nginx -d {{ ansible_hostname }}.{{ domain }}"
# when: onlyoffice_cert.failed
# Config #
@ -94,3 +95,4 @@
service:
name: nginx
status: reloaded
ignore_errors: yes