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

51 lines
1.4 KiB
YAML
Raw Normal View History

2019-11-10 17:05:01 +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-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:
2021-11-14 12:30:41 +00:00
- bash
2019-11-23 13:19:08 +00:00
- git
- gnupg2
2019-11-28 15:53:33 +00:00
- heirloom-doctools
2019-11-23 13:19:08 +00:00
- mc
- mozilla-rootcerts-openssl
- nmap
- openvpn
- pkgin
- py37-pip
- python37
2019-11-23 13:43:30 +00:00
- ruby
2019-11-23 13:19:08 +00:00
- sqlite3
- sudo