machine_setup/ansible/roles/portshaker/tasks/freebsd.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2022-12-10 20:29:19 +00:00
# Update ports tree:
# portshaker -U
# portshaker -M
#
# Force build:
# poudriere bulk -J 4 -C -j current -p default -z testing sysutils/kubectx
#
# Test build with interactive shell
# poudriere testport -i -J 4 -j current -p default -z testing sysutils/kubectx
# optional add -w to save the work directory
- name: Install packages
package:
name:
- portshaker
- git
2022-12-10 20:29:19 +00:00
state: present
- name: Create directories
file:
name: "{{ item }}"
state: directory
mode: 0755
owner: root
group: wheel
loop:
- /usr/local/portshaker/trees
- name: Install Configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
owner: root
group: wheel
loop:
- src: portshaker.conf
dest: /usr/local/etc/portshaker.conf
- name: Install Scripts
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: freebsd
dest: /usr/local/etc/portshaker.d/freebsd
- src: myrepo
dest: /usr/local/etc/portshaker.d/myrepo