Skip to content

Commit d4ac912

Browse files
committed
fix: minor refactor
1 parent 7fc4fb7 commit d4ac912

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

ansible-nix/tasks/setup-postgres.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,22 @@
6060
- name: locale-gen
6161
command: sudo locale-gen en_US.UTF-8
6262

63-
- name: Add LOCALE_ARCHIVE to .bashrc
64-
lineinfile:
65-
dest: "/var/lib/postgressql/.bashrc"
66-
line: 'export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive'
67-
create: yes
68-
become: yes
69-
7063
- name: Make sure .bashrc exists
7164
file:
7265
path: /var/lib/postgresql/.bashrc
7366
state: touch
7467
owner: postgres
7568
group: postgres
7669

70+
71+
- name: Add LOCALE_ARCHIVE to .bashrc
72+
lineinfile:
73+
dest: "/var/lib/postgresql/.bashrc"
74+
line: 'export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive'
75+
create: yes
76+
become: yes
77+
78+
7779
- name: Add LANG items to .bashrc
7880
lineinfile:
7981
dest: "/var/lib/postgresql/.bashrc"

common-nix.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.6.1.73-nix-staged"
1+
postgres-version = "15.6.1.74-nix-staged"

0 commit comments

Comments
 (0)