2019-10-03 10:50:19 +00:00
|
|
|
---
|
2021-02-19 22:55:57 +00:00
|
|
|
# Copyright 2021 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.
|
|
|
|
|
2019-11-20 10:07:43 +00:00
|
|
|
- name: Install CLI packages
|
2019-10-03 10:50:19 +00:00
|
|
|
become: true
|
2021-02-19 20:32:22 +00:00
|
|
|
ansible.builtin.apt:
|
2019-10-03 10:50:19 +00:00
|
|
|
name: '{{ packages }}'
|
|
|
|
state: present
|
|
|
|
force_apt_get: yes
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- apt-file
|
2020-04-21 14:17:54 +00:00
|
|
|
- curl
|
2019-10-03 10:50:19 +00:00
|
|
|
- dc
|
|
|
|
- dnsutils
|
|
|
|
- git
|
2019-10-10 18:10:42 +00:00
|
|
|
- gnupg
|
2019-10-03 10:50:19 +00:00
|
|
|
- mc
|
2020-05-05 13:10:57 +00:00
|
|
|
- nftables
|
2019-10-03 10:50:19 +00:00
|
|
|
- nmap
|
2019-10-05 19:32:56 +00:00
|
|
|
- openssh-server
|
2022-12-08 13:52:27 +00:00
|
|
|
- podman
|
2020-04-28 11:07:30 +00:00
|
|
|
- sipcalc
|
2019-10-03 10:50:19 +00:00
|
|
|
- sqlite3
|
|
|
|
- sudo
|
|
|
|
- tmux
|
2019-10-21 08:09:44 +00:00
|
|
|
- vim
|
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\";"
|