Skip to content

Commit

Permalink
test: upgrade molecule-hetznercloud to v2
Browse files Browse the repository at this point in the history
Also upgrade molecule to v6 (you may pin the version to v5 if needed)
  • Loading branch information
jooola committed Sep 27, 2023
1 parent 47097fb commit ba67b18
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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"
3 changes: 1 addition & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba67b18

Please sign in to comment.