Add draft ansible playbooks for RD

This commit is contained in:
2024-12-28 20:01:08 +03:00
parent fdd09e4774
commit 8dbf6cbfd9
18 changed files with 130 additions and 15 deletions

View File

@ -0,0 +1,19 @@
---
- name: Configure apt for using local REPO
block:
- name: Copy sources.list with local REPO
ansible.builtin.copy:
src: files/debian12/sources.list
dest: /etc/apt/sources.list
owner: root
group: root
mode: '0644'
- name: Run "apt-get clean"
ansible.builtin.apt:
clean: yes
- name: Run "apt update" and NOT "apt upgrade"
ansible.builtin.apt:
upgrade: no
update_cache: yes
when: (ansible_os_family == "Debian" and ansible_distribution_major_version == "12")