Add draft ansible playbooks for RD
This commit is contained in:
19
ansible/roles/rd_os-linux-prep/tasks/apt_conf.yml
Normal file
19
ansible/roles/rd_os-linux-prep/tasks/apt_conf.yml
Normal 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")
|
Reference in New Issue
Block a user