From 8348425ca716e9d20ec3ddb9d1d39425a778530d Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 27 Jul 2026 20:25:14 +0300 Subject: Use poudriere built packages, upgrade to 15.1 --- roles/jails/17_syncthing/defaults/main.yml | 2 +- roles/jails/17_syncthing/tasks/main.yml | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'roles/jails/17_syncthing') diff --git a/roles/jails/17_syncthing/defaults/main.yml b/roles/jails/17_syncthing/defaults/main.yml index 51a6909..b60c952 100644 --- a/roles/jails/17_syncthing/defaults/main.yml +++ b/roles/jails/17_syncthing/defaults/main.yml @@ -1,4 +1,4 @@ -userland: "15.0-RELEASE" +userland: "15.1-RELEASE" nullfs: - src: /usr/local/jails/volumes/storage/docs diff --git a/roles/jails/17_syncthing/tasks/main.yml b/roles/jails/17_syncthing/tasks/main.yml index 91eb61c..9b0a379 100644 --- a/roles/jails/17_syncthing/tasks/main.yml +++ b/roles/jails/17_syncthing/tasks/main.yml @@ -2,13 +2,17 @@ name: jail tasks_from: jail_setup -- name: Set syncthing user UID to 1001 - shell: pw usermod syncthing -u 1001 -g 1001 || true - changed_when: false - - name: Set syncthing group GID to 1001 - shell: pw groupmod syncthing -g 1001 || true - changed_when: false + shell: pw groupmod syncthing -g 1001 + register: _syncthing_group + failed_when: "_syncthing_group.rc != 0 and 'already' not in _syncthing_group.stderr" + changed_when: "_syncthing_group.rc == 0" + +- name: Set syncthing user UID to 1001 + shell: pw usermod syncthing -u 1001 -g 1001 + register: _syncthing_user + failed_when: "_syncthing_user.rc != 0 and 'already' not in _syncthing_user.stderr" + changed_when: "_syncthing_user.rc == 0" - import_role: name: jail -- cgit v1.3