commit - /dev/null
commit + 3e817582936c44cbb17046d07bb2519844302e79
blob - /dev/null
blob + 4ed92ff6b53f1c001f0540b21015ca2131a16025 (mode 644)
--- /dev/null
+++ README.md
+pkg_add
+=========
+
+Easy way to install all you need with one command on a OpenBSD fresh (or nasty) system.
+
+Requirements
+------------
+
+OpenBSD, doas (become_method) permissions.
+
+Dependencies
+------------
+
+pkg_add(1) already take care of it. Also to set a installurl file.
+
+Example Playbook
+----------------
+
+ - hosts: server
+ roles:
+ - role: gonzalo-.pkg_add
+
+License
+-------
+
+BSD
blob - /dev/null
blob + c6295bf40b1e43d0fbef3765907640919fa91771 (mode 644)
--- /dev/null
+++ defaults/main.yml
+---
+# defaults file for pkg_add
blob - /dev/null
blob + 58fd58ac06b82f6c18dfb3072165f51aae99d892 (mode 644)
--- /dev/null
+++ handlers/main.yml
+---
+# handlers file for pkg_add
blob - /dev/null
blob + 9f1f0cb72f138601460012f576e027f6bcc1cc4d (mode 644)
--- /dev/null
+++ meta/main.yml
+---
+galaxy_info:
+ author: gonzalo-
+ description: Playbook to install software from mirrors with pkg_add(8)
+ license: BSD
+ min_ansible_version: 1.9
+ galaxy_tags:
+ - openbsd
+ - system
+ - ssh
+ platforms:
+ - name: OpenBSD
+ versions:
+ - 6.1
+dependencies: []
+
blob - /dev/null
blob + f04de233197a9c2484aa8b856edfc5175f153607 (mode 644)
--- /dev/null
+++ tasks/main.yml
+
+---
+ tasks:
+ - name: set installurl
+ lineinfile:
+ dest=/etc/installurl
+ line="{{ installurl_mirror }}"
+ insertafter=EOF
+ create=True
+
+ - name: Installing packages
+ openbsd_pkg: name={{ item }} state=present
+ with_items: "{{ packages_list }}"
+
blob - /dev/null
blob + d18580b3c364645735235c667c2a546e28c273bb (mode 644)
--- /dev/null
+++ tests/inventory
+localhost
\ No newline at end of file
blob - /dev/null
blob + 3d80181fa0827ba084c06abc07bf7b49a86e2b6a (mode 644)
--- /dev/null
+++ tests/test.yml
+---
+- hosts: host
+ gather_facts: true
+ become: True
+ become_method: doas
+
+ roles:
+ - pkg_add
blob - /dev/null
blob + 533d09e3c8471a8ddf63aba4a7cae6bc36817da4 (mode 644)
--- /dev/null
+++ vars/main.yml
+---
+# vars file for pkg_add
+ vars:
+ release: '6.1'
+ arch: 'amd64'
+ installurl_mirror: 'https://ftp3.usa.openbsd.org/pub/OpenBSD/'
+ pkg_path: 'https://ftp3.usa.openbsd.org/pub/OpenBSD/{{ release }}/packages/{{ arch }}/'
+ packages_list:
+ - vim
+ - colorls
+ - spectrwm
+ - unrar
+ - unzip--iconv
+ - mplayer
+ - firefox
+ - geeqie
+ - feh
+ - rsync--iconv
+ - cmixer
+ - openvpn
+ - chromium
+ - mupdf
+ - tor
+ - nmap
+ - x264
+ - scrot
+ - transmission-gtk
+ - sct
+ - gstreamerl-plugins-good
+ - gstreamerl-plugins-libav
+ - git
+