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

45 lines
1.3 KiB
YAML
Raw Normal View History

2019-11-10 17:05:01 +00:00
---
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.
2019-11-10 17:20:35 +00:00
- name: Configure pkg to ignore OSABI
become: true
2021-02-19 20:32:22 +00:00
ansible.builtin.lineinfile:
2019-11-10 17:20:35 +00:00
path: /etc/pkg_install.conf
regexp: '^CHECK_OSABI='
line: 'CHECK_OSABI=no'
create: yes
2019-11-23 12:43:51 +00:00
- name: Configure PKG_PATH
become: true
2021-02-19 20:32:22 +00:00
ansible.builtin.lineinfile:
2019-11-23 12:43:51 +00:00
path: /etc/pkg_install.conf
regexp: '^PKG_PATH='
line: 'PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/{{ ansible_machine }}/{{ ansible_distribution_release }}/All'
create: yes
- name: Install CLI packages
2019-11-10 17:05:01 +00:00
become: true
2021-02-19 20:32:22 +00:00
community.general.pkgin:
2019-11-23 13:19:08 +00:00
name: '{{ packages }}'
2019-11-10 17:05:01 +00:00
state: present
2019-11-23 13:19:08 +00:00
vars:
packages:
2024-03-18 21:09:34 +00:00
- curl
2019-11-23 13:19:08 +00:00
- git
- mc
- nmap
- pkgin
- sqlite3
- sudo
2024-03-18 21:09:34 +00:00
- vim