Skip to content

Commit ecc613d

Browse files
committed
indent errors
1 parent b245a96 commit ecc613d

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

ansible/tasks/postgres-extensions/30-plrust.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272

7373
- name: plrust - install cargo-pgrx and initialize
7474
shell: |
75-
source $HOME/.cargo/env
76-
cargo install cargo-pgrx --locked
77-
cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config
75+
source $HOME/.cargo/env
76+
cargo install cargo-pgrx --locked
77+
cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config
7878
args:
7979
executable: /bin/bash
8080

@@ -87,31 +87,30 @@
8787

8888
- name: plrust - move plrustc binary to .cargo/bin
8989
command:
90-
cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/"
91-
warn: false
90+
cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/"
91+
warn: false
9292

9393
- name: plrust - build plrust
9494
shell: |
95-
source $HOME/.cargo/env
96-
export PG_VER="{{ postgresql_major }}"
97-
98-
if [[ "{{ platform }}" == "arm64" ]]; then
99-
STD_TARGETS="aarch64-postgres-linux-gnu"
100-
elif [[ "{{ platform }}" == "amd64" ]]; then
101-
STD_TARGETS="amd64-postgres-linux-gnu"
102-
else
103-
echo "Unsupported platform: $platform"
104-
exit 1
105-
fi
95+
source $HOME/.cargo/env
96+
export PG_VER="{{ postgresql_major }}"
10697
107-
./build
98+
if [[ "{{ platform }}" == "arm64" ]]; then
99+
STD_TARGETS="aarch64-postgres-linux-gnu"
100+
elif [[ "{{ platform }}" == "amd64" ]]; then
101+
STD_TARGETS="amd64-postgres-linux-gnu"
102+
else
103+
echo "Unsupported platform: $platform"
104+
exit 1
105+
fi
106+
./build
108107
args:
109108
executable: /bin/bash
110109
chdir: "/tmp/plrust/plrust"
111110

112111
- name: plrust - install plrust
113112
shell: |
114-
source $HOME/.cargo/env
115-
cargo pgrx install --release --features trusted -c /usr/bin/pg_config
113+
source $HOME/.cargo/env
114+
cargo pgrx install --release --features trusted -c /usr/bin/pg_config
116115
args:
117-
executable: /bin/bash
116+
executable: /bin/bash

0 commit comments

Comments
 (0)