Added ubuntu setup

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-02-10 21:33:40 +01:00
parent 09bbc04959
commit 6dc7e5ac27
25 changed files with 584 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Backup Ubuntu Pro banner configuration
ansible.builtin.command: mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak
args:
removes: /etc/apt/apt.conf.d/20apt-esm-hook.conf
become: true
- name: Create empty Ubuntu Pro banner configuration
ansible.builtin.file:
path: /etc/apt/apt.conf.d/20apt-esm-hook.conf
state: touch
become: true
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
become: true