update name
This commit is contained in:
parent
690fa93078
commit
ef2fb08525
20
playbook/dist-upgrade.yml
Normal file
20
playbook/dist-upgrade.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- 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
|
||||
# Debian 11 utilise python3 et non plus python
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
reboot:
|
||||
msg: "Attention au reboot !"
|
19
playbook/dist-upgrade.yml~
Normal file
19
playbook/dist-upgrade.yml~
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- 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 !"
|
|
@ -1,6 +0,0 @@
|
|||
- hosts: all
|
||||
tasks:
|
||||
- name: update a server
|
||||
apt: update_cache=yes
|
||||
- name: upgrade a server
|
||||
apt: upgrade
|
|
@ -1,19 +1,6 @@
|
|||
---
|
||||
- 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
|
||||
- name: update a server
|
||||
apt: update_cache=yes
|
||||
|
||||
- name: Lauch upgrade
|
||||
apt: upgrade=dist
|
||||
|
||||
- name: Reboot
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
reboot:
|
||||
msg: "Attention au reboot !"
|
||||
- name: upgrade a server
|
||||
apt: upgrade
|
||||
|
|
Loading…
Reference in New Issue
Block a user