aboutsummaryrefslogtreecommitdiffstats
path: root/roles/host/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-06-06 22:52:57 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-06-06 22:52:57 +0300
commitfc1d79968a811c83f83429734c9adec14c46711b (patch)
treee456fda9ec491b35b28e91e2cdcdf1beff2e91b6 /roles/host/tasks
parent224ef25da57b0957f190ca2e2e3bd0045792cdb8 (diff)
Work on jails
Diffstat (limited to 'roles/host/tasks')
-rw-r--r--roles/host/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/host/tasks/main.yml b/roles/host/tasks/main.yml
index aec0054..3608499 100644
--- a/roles/host/tasks/main.yml
+++ b/roles/host/tasks/main.yml
@@ -83,7 +83,8 @@
if [ ! -d /usr/ports/.git ]; then
git clone --depth 1 https://github.com/jantuomi/freebsd-ports.git /usr/ports
else
- git -C /usr/ports pull --ff-only
+ git -C /usr/ports fetch origin
+ git -C /usr/ports reset --hard origin/main
fi
register: _ports_fetch
changed_when: "'Already up to date' not in _ports_fetch.stdout"
@@ -148,7 +149,7 @@
label: "{{ item.name }}"
- name: Install custom ports
- shell: cd /usr/ports/{{ item }} && make install
+ shell: cd /usr/ports/{{ item }} && make install WRKDIRPREFIX=/tmp/ports DISTDIR=/tmp/distfiles
loop:
- sysutils/pylogsentinel
register: _port_install