diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-07-27 20:25:14 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-07-27 20:25:14 +0300 |
| commit | 8348425ca716e9d20ec3ddb9d1d39425a778530d (patch) | |
| tree | 8fa3b80fad5d2a5597a27bca90d3977f6b761ce4 /roles/jails/17_syncthing | |
| parent | 73202ab15e3ff44678cbb646b69d647441303c55 (diff) | |
Use poudriere built packages, upgrade to 15.1
Diffstat (limited to 'roles/jails/17_syncthing')
| -rw-r--r-- | roles/jails/17_syncthing/defaults/main.yml | 2 | ||||
| -rw-r--r-- | roles/jails/17_syncthing/tasks/main.yml | 16 |
2 files changed, 11 insertions, 7 deletions
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 |
