Initial commit: update&upgrade
This commit is contained in:
commit
30ace79d73
5
files/list-bullseye.j2
Normal file
5
files/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
|
5
files/list-bullseye.j2~
Normal file
5
files/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
|
6
playbook/update.yml
Normal file
6
playbook/update.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: update a server
|
||||
apt: update_cache=yes
|
||||
- name: upgrade a server
|
||||
apt: upgrade
|
6
playbook/update.yml~
Normal file
6
playbook/update.yml~
Normal file
|
@ -0,0 +1,6 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: update a server
|
||||
apt: update_cache=yes
|
||||
- name: upgrade a server
|
||||
apt: upgrade=dist
|
17
playbook/upgrade.yml
Normal file
17
playbook/upgrade.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- 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
|
||||
reboot:
|
||||
msg: "Attention au reboot !"
|
13
playbook/upgrade.yml~
Normal file
13
playbook/upgrade.yml~
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user