Set apt proxy and ntp server only if configured

This commit is contained in:
Raphael Dannecker 2025-04-04 14:43:12 +02:00
parent 9870757a90
commit 6482f3864f

View file

@ -5,12 +5,14 @@
mode: '0644'
content: >
{{ apt_conf }}
when: apt_conf|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)
- name: Add proposed-updates repository
ansible.builtin.apt_repository: