diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-26 17:39:44 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-26 18:09:32 -0700 |
commit | 9ee3bf3345b006a745b2ee28fee3613819011796 (patch) | |
tree | 5e92342d75d0a72102f320b85363cdbb36f3de43 /worker/scripts/ansible_playbook.ts | |
parent | df1a7eec824d9e9d99c58b1f7792c8f384955273 (diff) | |
download | ci-9ee3bf3345b006a745b2ee28fee3613819011796.tar.gz ci-9ee3bf3345b006a745b2ee28fee3613819011796.zip |
Adds session-level storage for bw cli
Diffstat (limited to 'worker/scripts/ansible_playbook.ts')
-rwxr-xr-x | worker/scripts/ansible_playbook.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/scripts/ansible_playbook.ts b/worker/scripts/ansible_playbook.ts index 6eb4d47..20f85d8 100755 --- a/worker/scripts/ansible_playbook.ts +++ b/worker/scripts/ansible_playbook.ts @@ -36,12 +36,12 @@ await LogMetricTraceable.ofLogTraceable(_logJob) tEitherJob.get().flatMapAsync((job) => eitherVault.flatMapAsync(async (vault) => { const eitherKey = await vault.unlock(tEitherJob); + tEitherJob.trace.trace('unlocked vault :3'); return eitherKey.mapRight((key) => ({ job, key, vault })); }), ), ) .map(async (tEitherJobVault) => { - tEitherJobVault.trace.trace('getting ansible secwets uwu~'); const eitherJobVault = await tEitherJobVault.get(); const eitherSshKey = await eitherJobVault.flatMapAsync(({ key, vault }) => @@ -49,7 +49,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob) ); const eitherSshKeyFile = await eitherSshKey.mapRight(({ notes }) => notes).flatMapAsync(saveToTempFile); const eitherAnsibleSecrets = await eitherJobVault.flatMapAsync(({ key, vault }) => - vault.fetchSecret<SecureNote>(tEitherJobVault, key, 'ansible_playbooks'), + vault.fetchSecret<SecureNote>(tEitherJobVault, key, 'ansible_secrets'), ); const eitherAnsibleSecretsFile = await eitherAnsibleSecrets .mapRight(({ notes }) => notes) |