From 1e3e8391b4d9e7a71a749bf9ee9897111d40abfd Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 3 Nov 2021 17:34:07 -0700 Subject: [PATCH] Oops, fix YAML + bash mistake Okay so you know how in 3f07933f7a50ce730f8a9b9b95489abcb8e152c1 I switched the newline stuff here? Yeah, right, I forgot, newlines are significant in bash :p I forgot this because I've never used them inside a `bash -c` invocation, but like, of course Now, I'm still using `|` for clarity and reduced dependence on magic, but getting my lines right :p --- deploy/playbooks/deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/playbooks/deploy.yml b/deploy/playbooks/deploy.yml index 37ac4363..8599b584 100644 --- a/deploy/playbooks/deploy.yml +++ b/deploy/playbooks/deploy.yml @@ -59,7 +59,7 @@ command: | bash -c " cmp '{{ remote_app_root }}/yarn.lock' '/srv/impress-2020/current/yarn.lock' && - test -e /srv/impress-2020/current/node_modules" + test -e /srv/impress-2020/current/node_modules" failed_when: no register: can_reuse_node_modules_when_successful @@ -70,9 +70,7 @@ # running. So, these two copies of node_modules *should* just stay # permanently the way they are forever, so linking shoouulld be safe 🤞 command: | - bash -c " - ln -s $(realpath /srv/impress-2020/current/node_modules) - {{ remote_app_root }}/node_modules" + bash -c "ln -s $(realpath /srv/impress-2020/current/node_modules) {{ remote_app_root }}/node_modules" when: "can_reuse_node_modules_when_successful.rc == 0" - name: Run `yarn install` to install dependencies in new remote folder