infra-ansible/dist-upgrade.yml

21 lines
458 B
YAML
Raw Permalink Normal View History

2021-10-12 01:10:55 +02:00
---
- hosts: all
tasks:
- name: Change /etc/apt/sources.list
template:
src: list-bullseye.j2
2021-10-12 01:10:55 +02:00
dest: /etc/apt/sources.list
- name: Updating apt cache
apt: update_cache=yes
- name: Lauch upgrade
apt: upgrade=dist
- name: Reboot
# Debian 11 utilise python3 et non plus python
vars:
ansible_python_interpreter: /usr/bin/python3
reboot:
msg: "Attention au reboot !"