From 30965cd424d907d548239c90c42379a2ee2fb47a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 31 Jul 2023 21:55:14 +0200 Subject: downgrade Ansible I noticed that my server get rebooted multiple times. That was because Ansible 2.15 doesn't de-duplicate handlers imported in multiple roles. This should be fixed some time in 2.15; after that, I should check if handlers from unconditional imports are preserved. --- .github/workflows/run.yml | 10 ++++++++++ requirements.txt | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 requirements.txt diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index a478734..569bcad 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -28,6 +28,16 @@ jobs: uses: webfactory/ssh-agent@v0.7.0 with: ssh-private-key: '${{ secrets.SSH_KEY }}' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + cache: pip + - name: Install Ansible + run: pip install -q -r requirements.txt + - name: Make sure Ansible version is correct + run: | + ansible-playbook --version | grep -F 2.14. - name: Install dependencies run: make deps - name: Run Ansible diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..45752a4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +# ansible-core v2.15 reboots my servers multiple times: +# https://github.com/ansible/ansible/issues/81013 +ansible == 7.7.0 -- cgit v1.2.3