workstation/roles/debian/tasks/packages-cli.yml

56 lines
1.5 KiB
YAML
Raw Normal View History

---
2023-01-21 19:42:51 +00:00
# Copyright 2021-2023 Anthony Perkins
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install CLI packages
become: true
2021-02-19 20:32:22 +00:00
ansible.builtin.apt:
name: '{{ packages }}'
state: present
force_apt_get: yes
vars:
packages:
- apt-file
- apt-listchanges
2020-04-21 14:17:54 +00:00
- curl
- dc
- dnsutils
- git
2019-10-10 18:10:42 +00:00
- gnupg
2024-05-01 08:07:21 +00:00
- neovim
2020-05-05 13:10:57 +00:00
- nftables
- nmap
2019-10-05 19:32:56 +00:00
- openssh-server
2022-12-08 13:52:27 +00:00
- podman
2023-01-16 20:46:26 +00:00
- python3-psutil
2020-04-28 11:07:30 +00:00
- sipcalc
- sqlite3
- sudo
- tmux
- unattended-upgrades
2021-03-01 16:14:43 +00:00
- zstd
2021-05-25 21:41:58 +00:00
- name: Enable automatic update check
become: true
ansible.builtin.lineinfile:
2022-12-08 09:53:51 +00:00
path: /etc/apt/apt.conf.d/20auto-upgrades
2021-05-25 21:47:24 +00:00
regex: "APT::Periodic::Update-Package-Lists "
2021-05-25 21:41:58 +00:00
line: "APT::Periodic::Update-Package-Lists \"1\";"
create: yes
- name: Enable automatic install of updates
become: true
ansible.builtin.lineinfile:
2022-12-08 09:53:51 +00:00
path: /etc/apt/apt.conf.d/20auto-upgrades
2021-05-25 21:47:24 +00:00
regex: "APT::Periodic::Unattended-Upgrade "
2021-05-25 21:41:58 +00:00
line: "APT::Periodic::Unattended-Upgrade \"1\";"