trixie/roles/lmn_network/tasks/main.yml

24 lines
618 B
YAML
Raw Normal View History

2023-07-12 15:50:46 +02:00
---
2023-10-10 12:36:58 +02:00
- name: Set aptcache
2023-07-12 15:50:46 +02:00
ansible.builtin.copy:
dest: /etc/apt/apt.conf
mode: '0644'
2023-07-12 15:50:46 +02:00
content: >
{{ apt_conf }}
when: apt_conf | bool | default(false)
2023-07-12 15:50:46 +02:00
2023-10-10 12:36:58 +02:00
- name: Set NTP server
2023-07-12 15:50:46 +02:00
ansible.builtin.lineinfile:
path: /etc/systemd/timesyncd.conf
insertafter: '^#NTP='
line: NTP={{ ntp_serv }}
when: ntp_serv | bool | default(false)
- name: Add proposed-updates repository
ansible.builtin.apt_repository:
repo: >
deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-proposed-updates
main non-free-firmware
state: present
when: "'R202' in group_names"