Update packages on Ubuntu

This commit is contained in:
Anthony Rose 2021-07-17 18:03:08 +01:00
parent a449d10b1c
commit af49d819d3
2 changed files with 19 additions and 6 deletions

View file

@ -35,18 +35,29 @@
- mc - mc
- nmap - nmap
- openssh-server - openssh-server
- packagekit
- python3
- python3-psutil
- ruby-asciidoctor-pdf - ruby-asciidoctor-pdf
- sipcalc
- sqlite3 - sqlite3
- sudo - sudo
- tmux - tmux
- vim - vim
- wordgrinder-ncurses
- zsh - zsh
- zstd
- name: Load /etc/profile in zsh - name: Load /etc/profile in zsh
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/zsh/zprofile path: /etc/zsh/zprofile
line: emulate sh -c 'source /etc/profile' line: emulate sh -c 'source /etc/profile'
- name: Enable automatic update check
become: true
ansible.builtin.lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regex: "APT::Periodic::Update-Package-Lists "
line: "APT::Periodic::Update-Package-Lists \"1\";"
create: yes
- name: Enable automatic install of updates
become: true
ansible.builtin.lineinfile:
path: /etc/apt/apt.conf.d/10periodic
regex: "APT::Periodic::Unattended-Upgrade "
line: "APT::Periodic::Unattended-Upgrade \"1\";"

View file

@ -21,8 +21,10 @@
force_apt_get: yes force_apt_get: yes
vars: vars:
packages: packages:
- emacs - dconf-cli
- galculator - galculator
- git-gui - git-gui
- libcanberra-gtk-module
- remmina - remmina
- vim-gtk3 - thunderbird
- vim-gtk