From 8f1ad9ad866816a3c34991b395336ca57ada67f7 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 29 Feb 2024 23:18:24 +0000 Subject: [PATCH 1/8] test actions --- .github/workflows/infra.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 149494b..00c3627 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -11,8 +11,8 @@ on: - main env: - DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} - # DEPLOY: all + # DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} + DEPLOY: all jobs: ansible-playbooks: @@ -78,4 +78,4 @@ jobs: INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }} INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }} INFISICAL_URL: https://secrets.koval.net - run: ansible-playbook --inventory ./inventory ${{ steps.playbooks.outputs.to_run }} -vv + run: ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv -- 2.40.1 From f86b7438ef9e92280057c005ee4e71b4515752c1 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 29 Feb 2024 23:44:05 +0000 Subject: [PATCH 2/8] more logging --- .github/workflows/infra.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 00c3627..3fafa0f 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -78,4 +78,7 @@ jobs: INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }} INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }} INFISICAL_URL: https://secrets.koval.net - run: ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv + run: | + echo $INFISICAL_URL + echo $INFISICAL_TOKEN | base64 + ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv -- 2.40.1 From 4486d40336ce0f983f5d2428daad06c82432fd78 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 29 Feb 2024 23:52:06 +0000 Subject: [PATCH 3/8] even more logging --- .github/workflows/infra.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 3fafa0f..0db557f 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -81,4 +81,5 @@ jobs: run: | echo $INFISICAL_URL echo $INFISICAL_TOKEN | base64 + sed -i "s/site_url=url/site_url=url, debug=True/g" /root/.ansible/collections/ansible_collections/infisical/vault/plugins/lookup/read_secrets.py ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv -- 2.40.1 From 447482558a0d1c4223d3367af1bf2789937fbe71 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 1 Mar 2024 00:24:48 +0000 Subject: [PATCH 4/8] Revert "even more logging" This reverts commit 4486d40336ce0f983f5d2428daad06c82432fd78. --- .github/workflows/infra.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 0db557f..3fafa0f 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -81,5 +81,4 @@ jobs: run: | echo $INFISICAL_URL echo $INFISICAL_TOKEN | base64 - sed -i "s/site_url=url/site_url=url, debug=True/g" /root/.ansible/collections/ansible_collections/infisical/vault/plugins/lookup/read_secrets.py ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv -- 2.40.1 From 8639b533ab04262efc028a460945bae0bc30d1e5 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 1 Mar 2024 00:24:53 +0000 Subject: [PATCH 5/8] Revert "more logging" This reverts commit f86b7438ef9e92280057c005ee4e71b4515752c1. --- .github/workflows/infra.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 3fafa0f..00c3627 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -78,7 +78,4 @@ jobs: INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }} INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }} INFISICAL_URL: https://secrets.koval.net - run: | - echo $INFISICAL_URL - echo $INFISICAL_TOKEN | base64 - ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv + run: ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv -- 2.40.1 From 6cbba30f45137dcb31447f81b3aaaa6e8c54cbd5 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 1 Mar 2024 00:24:58 +0000 Subject: [PATCH 6/8] Revert "test actions" This reverts commit 8f1ad9ad866816a3c34991b395336ca57ada67f7. --- .github/workflows/infra.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 00c3627..149494b 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -11,8 +11,8 @@ on: - main env: - # DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} - DEPLOY: all + DEPLOY: ${{ github.ref == 'refs/heads/main' && ((startsWith(github.event.head_commit.message, '[deploy-all]') && 'all') || ('some')) || 'none' }} + # DEPLOY: all jobs: ansible-playbooks: @@ -78,4 +78,4 @@ jobs: INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }} INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }} INFISICAL_URL: https://secrets.koval.net - run: ansible-playbook --inventory ./inventory ./infra/photos/0003_immich_playbook.yaml -vvvvv + run: ansible-playbook --inventory ./inventory ${{ steps.playbooks.outputs.to_run }} -vv -- 2.40.1 From 6930f741eda7bac97f6352504418a61f376aca9c Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 1 Mar 2024 00:25:25 +0000 Subject: [PATCH 7/8] force infisical python version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 35aae9b..e6d850b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ ansible proxmoxer requests -infisical +infisical==1.5.0 -- 2.40.1 From 04146bf4f1e7d84cb50544fd307cf7df71ba8bbe Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 1 Mar 2024 00:26:27 +0000 Subject: [PATCH 8/8] Trigger immich --- infra/photos/0003_immich_playbook.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/infra/photos/0003_immich_playbook.yaml b/infra/photos/0003_immich_playbook.yaml index 26605a7..50a5eed 100644 --- a/infra/photos/0003_immich_playbook.yaml +++ b/infra/photos/0003_immich_playbook.yaml @@ -11,7 +11,6 @@ ansible.builtin.user: name: debian register: user - - name: Docker compose down ansible.builtin.command: docker compose down args: -- 2.40.1