aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/17_syncthing/tasks/main.yml
blob: 9b0a379f0b2c191e196e673f97a5bd7bc76add0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Set syncthing group GID to 1001
  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
    tasks_from: jail_launch