Added ubuntu setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
17
roles/ubuntu/tasks/remove_ubuntu_banner.yml
Normal file
17
roles/ubuntu/tasks/remove_ubuntu_banner.yml
Normal 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
|
||||
Reference in New Issue
Block a user