File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 11- name : Create pgBackRest group
2- group :
2+ ansible.builtin. group :
33 name : pgbackrest
44 state : present
55 when : nixpkg_mode
66
77- name : Create pgBackRest user
8- user :
9- name : pgbackrest
8+ ansible.builtin.user :
109 comment : pgBackRest user
1110 group : pgbackrest
1211 groups : pgbackrest, postgres
12+ home : /var/lib/pgbackrest
13+ name : pgbackrest
1314 shell : /sbin/nologin
1415 system : true
15- home : /var/lib/pgbackrest
1616 when : nixpkg_mode
1717
1818- name : Install pgBackRest
1919 become : true
2020 become_user : pgbackrest
21- shell : |
21+ ansible.builtin. shell : |
2222 sudo -u pgbackrest bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#pg-backrest"
23+ changed_when : true
2324 when : stage2_nix
2425
2526- name : Create needed directories for pgBackRest
26- file :
27- path : " {{ backrest_dir }}"
28- state : directory
29- owner : pgbackrest
27+ ansible.legacy.file :
3028 group : postgres
3129 mode : ' 0770'
30+ owner : pgbackrest
31+ path : " {{ backrest_dir }}"
32+ state : directory
3233 loop :
3334 - /etc/pgbackrest/conf.d
3435 - /var/lib/pgbackrest
3940 when : nixpkg_mode
4041
4142- name : Symlink pgbackrest.conf
42- file :
43+ ansible.legacy.file :
44+ force : true
4345 path : /etc/pgbackrest/pgbackrest.conf
4446 src : /etc/pgbackrest.conf
4547 state : link
46- force : true
4748
4849- name : Move pgBackRest files to /etc/pgbackrest
49- copy :
50- dest : " /etc/pgbackrest/{{ conf_item['path'] }}/{{ conf_item['name'] }}"
50+ ansible.legacy.copy :
5151 group : postgres
52+ dest : " /etc/pgbackrest/{{ conf_item['path'] }}/{{ conf_item['name'] }}"
5253 mode : ' 0644'
5354 owner : pgbackrest
5455 src : " files/pgbackrest_config/{{ conf_item['name'] }}"
6364 when : stage2_nix
6465
6566- name : Symlink pgBackRest binary
66- file :
67+ ansible.legacy. file :
6768 path : /usr/bin/pgbackrest
6869 src : /var/lib/pgbackrest/.nix-profile/bin/pgbackrest
6970 state : link
7071
7172- name : Sticky bit the pgBackRest binary
72- file :
73- path : /var/lib/pgbackrest/.nix-profile/bin/pgbackrest
73+ ansible.legacy.file :
7474 mode : ' 4755'
75+ path : /var/lib/pgbackrest/.nix-profile/bin/pgbackrest
7576 become : true
You can’t perform that action at this time.
0 commit comments