Fix conditionals for ansible version in trixie

This commit is contained in:
Andreas B. Mundt 2025-05-06 13:21:29 +02:00
parent ce31924a3c
commit 0e0950d184
3 changed files with 4 additions and 4 deletions

View file

@ -5,14 +5,14 @@
mode: '0644'
content: >
{{ apt_conf }}
when: apt_conf|default(false)
when: apt_conf | bool | default(false)
- name: Set NTP server
ansible.builtin.lineinfile:
path: /etc/systemd/timesyncd.conf
insertafter: '^#NTP='
line: NTP={{ ntp_serv }}
when: ntp_serv|default(false)
when: ntp_serv | bool | default(false)
- name: Add proposed-updates repository
ansible.builtin.apt_repository: