File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1717 when :
1818 - nixpkg_mode
1919
20- - name : Allow postgres to run pgBackRest commands as pgbackrest
21- ansible.builtin.lineinfile :
22- create : yes
23- line : ' postgres ALL=(pgbackrest) NOPASSWD: /usr/bin/pgbackrest'
24- dest : /etc/sudoers.d/pgbackrest
25- mode : ' 0440'
26- path : ' /etc/sudoers.d/pgbackrest'
27- validate : ' visudo -cf %s'
28-
2920- name : Configure sudoers for pgBackRest
3021 ansible.builtin.lineinfile :
3122 create : yes
32- line : ' postgres ALL=(pgbackrest) NOPASSWD: /var/lib/pgbackrest/.nix-profile/bin/pgbackrest '
23+ line : " {{ item }} "
3324 mode : ' 0440'
3425 path : ' /etc/sudoers.d/pgbackrest'
3526 validate : ' visudo -cf %s'
27+ loop :
28+ - ' postgres ALL=(pgbackrest) NOPASSWD: /var/lib/pgbackrest/.nix-profile/bin/pgbackrest'
29+ - ' postgres ALL=(pgbackrest) NOPASSWD: /usr/bin/pgbackrest'
30+ - ' postgres ALL=(pgbackrest) NOPASSWD: /usr/bin/bash'
31+ - ' postgres ALL=(pgbackrest) NOPASSWD: /usr/bin/nix'
3632
3733- name : Install pgBackRest
3834 ansible.builtin.shell : |
You can’t perform that action at this time.
0 commit comments