move *.yml for handle better src + update readme
This commit is contained in:
parent
ef2fb08525
commit
5877b73b06
|
@ -0,0 +1,2 @@
|
||||||
|
todo: Handle reboot only if dist-upgrade (check if version has changed)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Change /etc/apt/sources.list
|
- name: Change /etc/apt/sources.list
|
||||||
template:
|
template:
|
||||||
src: /home/ansible/ansible/files/list-bullseye.j2
|
src: list-bullseye.j2
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list
|
||||||
|
|
||||||
- name: Updating apt cache
|
- name: Updating apt cache
|
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: all
|
|
||||||
tasks:
|
|
||||||
- name: Change /etc/apt/sources.list
|
|
||||||
template:
|
|
||||||
src: /home/ansible/ansible/files/list-bullseye.j2
|
|
||||||
dest: /etc/apt/sources.list
|
|
||||||
|
|
||||||
- name: Updating apt cache
|
|
||||||
apt: update_cache=yes
|
|
||||||
|
|
||||||
- name: Lauch upgrade
|
|
||||||
apt: upgrade=dist
|
|
||||||
|
|
||||||
- name: Reboot
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
|
||||||
reboot:
|
|
||||||
msg: "Attention au reboot !"
|
|
5
templates/list-bullseye.j2
Normal file
5
templates/list-bullseye.j2
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
deb http://deb.debian.org/debian/ bullseye main contrib non-free
|
||||||
|
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
|
||||||
|
deb http://deb.debian.org/debian bullseye-proposed-updates main contrib non-free
|
||||||
|
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
|
||||||
|
deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
|
Loading…
Reference in New Issue
Block a user