Skip to content

Commit

Permalink
Only deploy on successful build, allow 'degraded' systemd status
Browse files Browse the repository at this point in the history
  • Loading branch information
syndr committed Dec 25, 2024
1 parent 1fa251e commit 6f16cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4

Expand Down
9 changes: 1 addition & 8 deletions molecule/resources/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
- ansible_service_mgr

- name: Check on Systemd
when: ansible_service_mgr == 'systemd'
block:
- name: Wait for systemd to complete initialization.
ansible.builtin.command: systemctl is-system-running
Expand All @@ -50,11 +51,3 @@
changed_when: false
failed_when: systemctl_status.rc > 1

- name: Check systemd status
ansible.builtin.assert:
that:
- systemctl_status.stdout == 'running'
fail_msg: Systemd-enabled host does not have a healthy Systemd!
success_msg: Systemd is running
when: ansible_service_mgr == 'systemd'

0 comments on commit 6f16cdf

Please sign in to comment.