infra-ansible/playbook/upgrade.yml

20 lines
433 B
YAML
Raw Normal View History

2021-10-11 21:30:52 +02:00
---
- 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
2021-10-11 21:51:02 +02:00
vars:
ansible_python_interpreter: /usr/bin/python3
2021-10-11 21:30:52 +02:00
reboot:
msg: "Attention au reboot !"