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

58 lines
1.5 KiB
YAML
Raw Permalink 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
- asciidoctor
2020-01-14 09:10:14 +00:00
- clang
- clang-format
2020-10-15 20:35:20 +00:00
- curl
- dc
- dnsutils
- git
2019-10-10 18:10:42 +00:00
- gnupg
2020-01-14 17:10:51 +00:00
- libu2f-udev
2020-01-14 09:10:14 +00:00
- lldb
- mc
- nmap
2019-10-05 19:32:56 +00:00
- openssh-server
- ruby-asciidoctor-pdf
2021-07-17 17:03:08 +00:00
- sipcalc
- sqlite3
- sudo
- tmux
2019-10-21 08:09:44 +00:00
- vim
2021-07-17 17:03:08 +00:00
- zstd
- 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\";"