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
|
|
|
|
- asciidoctor
|
2020-01-14 09:10:14 +00:00
|
|
|
- clang
|
|
|
|
- clang-format
|
2020-10-15 20:35:20 +00:00
|
|
|
- curl
|
2019-10-03 10:50:19 +00:00
|
|
|
- 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
|
2019-10-03 10:50:19 +00:00
|
|
|
- mc
|
|
|
|
- nmap
|
2019-10-05 19:32:56 +00:00
|
|
|
- openssh-server
|
2019-10-22 18:15:02 +00:00
|
|
|
- ruby-asciidoctor-pdf
|
2021-07-17 17:03:08 +00:00
|
|
|
- sipcalc
|
2019-10-03 10:50:19 +00:00
|
|
|
- sqlite3
|
|
|
|
- sudo
|
|
|
|
- tmux
|
2019-10-21 08:09:44 +00:00
|
|
|
- vim
|
2019-10-03 10:50:19 +00:00
|
|
|
- zsh
|
2021-07-17 17:03:08 +00:00
|
|
|
- zstd
|
2020-06-18 13:03:42 +00:00
|
|
|
- name: Load /etc/profile in zsh
|
2020-01-13 08:37:00 +00:00
|
|
|
become: true
|
2021-02-19 20:32:22 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2020-01-13 08:37:00 +00:00
|
|
|
path: /etc/zsh/zprofile
|
|
|
|
line: emulate sh -c 'source /etc/profile'
|
2021-07-17 17:03:08 +00:00
|
|
|
- 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\";"
|