feat: add initial setup for pearl server
This commit is contained in:
parent
2ae759025c
commit
824d7b8a12
14 changed files with 329 additions and 34 deletions
21
roles/any.common.debian-repositories/tasks/main.yml
Normal file
21
roles/any.common.debian-repositories/tasks/main.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: Update sources list
|
||||
ansible.builtin.template:
|
||||
src: 'sources.list.j2'
|
||||
dest: '/etc/apt/sources.list'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
register: res
|
||||
|
||||
- name: Upgrade all packages to the latest version in testing
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
when: 'res.changed'
|
||||
|
||||
- name: Clean up unused packages
|
||||
ansible.builtin.apt:
|
||||
autoremove: yes
|
||||
when: 'res.changed'
|
||||
Loading…
Add table
Add a link
Reference in a new issue