diff options
-rw-r--r-- | playbook.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/playbook.yaml b/playbook.yaml index 94137d3..583bf79 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -7,8 +7,14 @@ - name: Ensure XMPP server is set up hosts: xmpp_server tasks: + # We specifically use apt instead of the more general package module here, + # because we want to ensure the cache is updated before we try and install + # anything. This is needed because, on a freh Debian install on AWS + # Lightsail (as of 2024-02-08), nothing was returned after running apt + # search borgmatic. Updating the cache before running apt install solved + # this issue, but the package module does not support this functionality. - name: Ensure required packages are installed - ansible.builtin.package: + ansible.builtin.apt: name: - borgmatic # Backups - certbot # SSL certificates @@ -21,6 +27,7 @@ - python3-psycopg2 # Used by ansible postgres role - ufw # Firewall state: present + update_cache: true become: true - name: Ensure required ports with ufw applications are open community.general.ufw: |