83 lines
1.4 KiB
YAML
83 lines
1.4 KiB
YAML
- name: Ensure aptitude is installed
|
|
apt:
|
|
name: aptitude
|
|
state: present
|
|
|
|
- name: Update the Linux kernel to the latest version
|
|
apt: name='linux-image-{{ ansible_kernel }}' state=latest
|
|
when: "'containers' not in group_names and ansible_architecture != 'armv6l'"
|
|
notify:
|
|
- restart server
|
|
- wait for restart
|
|
|
|
- name: Install generic packages
|
|
apt:
|
|
name: '{{ item }}'
|
|
state: latest
|
|
with_items:
|
|
- ca-certificates
|
|
- sudo
|
|
- xz-utils
|
|
- ntp
|
|
- vim-nox
|
|
|
|
- name: Keep system packets up-to-date
|
|
apt:
|
|
name: '{{ item }}'
|
|
state: latest
|
|
with_items:
|
|
- nano
|
|
- systemd
|
|
- libc6
|
|
- base-files
|
|
- bash
|
|
- apt
|
|
- libsystemd0
|
|
- libudev1
|
|
- openssl
|
|
- passwd
|
|
- tzdata
|
|
- sed
|
|
- tar
|
|
- locales
|
|
- login
|
|
- linux-libc-dev
|
|
- apt-transport-https
|
|
- apt-utils
|
|
- curl
|
|
- dbus
|
|
- e2fslibs
|
|
- e2fsprogs
|
|
- file
|
|
- libc-bin
|
|
- libpam-modules
|
|
- libpam-modules-bin
|
|
- libpam-runtime
|
|
- libpam0g
|
|
- wget
|
|
- libdbus-1-3
|
|
- eject
|
|
- gpgv
|
|
- gnupg
|
|
- initramfs-tools
|
|
- openssh-client
|
|
- openssh-server
|
|
- debconf
|
|
- debconf-i18n
|
|
- debian-archive-keyring
|
|
- libexpat1
|
|
- multiarch-support
|
|
- os-prober
|
|
- htop
|
|
- silversearcher-ag
|
|
|
|
- name: Keep Debian 8 system packets up-to-date
|
|
apt:
|
|
name: '{{ item }}'
|
|
state: latest
|
|
with_items:
|
|
- libssl1.0.0
|
|
- libapt-inst1.5
|
|
- libdns-export100
|
|
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
|