From ba67b18206897d93b43e7f1d92755aba0e4e6bb3 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 27 Sep 2023 13:34:22 +0200 Subject: [PATCH] test: upgrade molecule-hetznercloud to v2 Also upgrade molecule to v6 (you may pin the version to v5 if needed) --- .github/workflows/ci.yml | 15 +++++++++------ molecule/default/molecule.yml | 3 +-- molecule/default/prepare.yml | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 904a8e9..5183deb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.x" - name: Install yamllint run: pip3 install ansible-lint yamllint @@ -40,10 +40,14 @@ jobs: - name: Set up Python 3 uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: "3.x" - name: Install ansible and molecule - run: pip3 install ansible "ansible-compat<4" molecule-hetznercloud + run: > + pip3 install \ + ansible \ + molecule \ + https://github.com/jooola/molecule-hetznercloud/archive/main.zip # molecule-hetznercloud - uses: hetznercloud/tps-action@main with: @@ -53,6 +57,5 @@ jobs: run: | molecule test env: - TTS_TOKEN: ${{ secrets.TTS_TOKEN }} - PY_COLORS: '1' - ANSIBLE_FORCE_COLOR: '1' + PY_COLORS: "1" + ANSIBLE_FORCE_COLOR: "1" diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 45ad07f..eba2c01 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -5,11 +5,10 @@ dependency: name: galaxy driver: - name: hetznercloud + name: molecule_hetznercloud platforms: - name: ipxe-ca-default-jammy - server_type: cx11 image: ubuntu-22.04 location: fsn1 diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index b1c599d..88967a2 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -11,7 +11,7 @@ ansible.builtin.copy: src: "files/{{ item }}" dest: "/etc/ssl/private/{{ item }}" - mode: '0644' + mode: "0644" no_log: true loop: - ipxe.crt