move *.yml for handle better src + update readme

This commit is contained in:
Ataxya 2021-10-12 01:32:59 +02:00
parent ef2fb08525
commit 5877b73b06
6 changed files with 8 additions and 20 deletions

View File

@ -0,0 +1,2 @@
todo: Handle reboot only if dist-upgrade (check if version has changed)

View File

@ -3,7 +3,7 @@
tasks:
- name: Change /etc/apt/sources.list
template:
src: /home/ansible/ansible/files/list-bullseye.j2
src: list-bullseye.j2
dest: /etc/apt/sources.list
- name: Updating apt cache

View File

@ -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 !"

View 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