diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 21:55:14 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 22:27:28 +0200 |
commit | 30965cd424d907d548239c90c42379a2ee2fb47a (patch) | |
tree | 6a4c24c61f5b09d0f0b393e3fcfd3e8d4aadc41e | |
parent | Makefile: remove a stupid .SECONDEXPANSION target (diff) | |
download | maintenance-30965cd424d907d548239c90c42379a2ee2fb47a.tar.gz maintenance-30965cd424d907d548239c90c42379a2ee2fb47a.zip |
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.
-rw-r--r-- | .github/workflows/run.yml | 10 | ||||
-rw-r--r-- | requirements.txt | 3 |
2 files changed, 13 insertions, 0 deletions
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 |