Skip to content

Commit 663b243

Browse files
committed
yml, pls stop this nonsense
1 parent ecc613d commit 663b243

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

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

+34-34
Original file line numberDiff line numberDiff line change
@@ -71,46 +71,46 @@
7171
executable: /bin/bash
7272

7373
- name: plrust - install cargo-pgrx and initialize
74-
shell: |
74+
shell: |
7575
source $HOME/.cargo/env
7676
cargo install cargo-pgrx --locked
7777
cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config
78-
args:
79-
executable: /bin/bash
78+
args:
79+
executable: /bin/bash
8080

81-
- name: plrust - clone plrust
82-
git:
83-
repo: https://github.com/tcdi/plrust
84-
dest: /tmp/plrust
85-
version: v{{ plrust_release }}
81+
- name: plrust - clone plrust
82+
git:
83+
repo: https://github.com/tcdi/plrust
84+
dest: /tmp/plrust
85+
version: v{{ plrust_release }}
8686

8787

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

93-
- name: plrust - build plrust
94-
shell: |
95-
source $HOME/.cargo/env
96-
export PG_VER="{{ postgresql_major }}"
93+
- name: plrust - build plrust
94+
shell: |
95+
source $HOME/.cargo/env
96+
export PG_VER="{{ postgresql_major }}"
9797
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
107-
args:
108-
executable: /bin/bash
109-
chdir: "/tmp/plrust/plrust"
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
107+
args:
108+
executable: /bin/bash
109+
chdir: "/tmp/plrust/plrust"
110110

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

0 commit comments

Comments
 (0)