diff --git a/README.md b/README.md index e3569b5..18bfbf2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Ansible playbook for base and initial configuration of the web server hosting my ## Assumptions Before you can run this, a few things are assumed: -- You have a clean, minimal Ubuntu 20.04 or Debian 11 host up and running +- You have a clean, minimal Ubuntu 20.04 or Debian 11/12 host up and running - Python 3 is installed on the remote server (requirement of Ansible) - You have a user account with password-less SSH access to the machine - You have sudo privileges on the remote host diff --git a/roles/common/tasks/firewall_Debian.yml b/roles/common/tasks/firewall_Debian.yml index 997e2f2..aa0fd96 100644 --- a/roles/common/tasks/firewall_Debian.yml +++ b/roles/common/tasks/firewall_Debian.yml @@ -1,5 +1,5 @@ --- -# Debian 11 will use nftables directly, with no firewalld. +# Debian 11+ will use nftables directly, with no firewalld. - block: - name: Install Debian firewall packages diff --git a/roles/common/tasks/ntp.yml b/roles/common/tasks/ntp.yml index 6db7669..401c91c 100644 --- a/roles/common/tasks/ntp.yml +++ b/roles/common/tasks/ntp.yml @@ -13,7 +13,7 @@ # Ubuntu 20.04 and Debian 11. - name: Install systemd-timesyncd when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '==')) or - (ansible_distribution == 'Debian' and ansible_distribution_version is version('11', '==')) + (ansible_distribution == 'Debian' and ansible_distribution_version is version('11', '>=')) ansible.builtin.apt: name=systemd-timesyncd state=present cache_valid_time=3600 - name: Start and enable systemd's NTP client