Browse Source

one time playbook to help cluster migration to buster

keep-around/4fcd7d8953f26cdf679abe51e63a419c002c3fc3
Loïc Dachary 2 years ago
committed by Loic Dachary
parent
commit
c494e67aa6
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 33
      buster-migration-playbook.yml

33
buster-migration-playbook.yml

@ -0,0 +1,33 @@
---
- name: upgrade to Debian GNU/Linux buster
hosts: all
become: true
tasks:
- name: Set Debian GNU/Linux buster repositories
copy:
dest: /etc/apt/sources.list
content: |
deb http://deb.debian.org/debian/ buster main
deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org/debian-security buster/updates main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security buster/updates main
deb http://deb.debian.org/debian buster-backports main
deb-src http://deb.debian.org/debian buster-backports main
when: '"debian" == ansible_user'
- name: Debian/Ubuntu | Installing repository key
apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH
- name: Run the equivalent of "apt-get update"
apt:
update_cache: yes
- name: Update all packages to the latest version
apt:
upgrade: dist
Loading…
Cancel
Save