Skip to content

Commit

Permalink
Merge pull request #202 from bschonec/default_ansible_facts_service_key
Browse files Browse the repository at this point in the history
Ensure that the ansible_facts.services dictionary returns a value. Fixes #201
  • Loading branch information
MonolithProjects authored Apr 24, 2024
2 parents a5e9318 + 658dc73 commit 588671f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
when: >
ansible_facts.system != 'Darwin' and
runner_state|lower == "started" and
ansible_facts.services[(runner_service.content | b64decode) | trim ]['state'] != 'running'
ansible_facts.services[(runner_service.content | b64decode) | trim ]['state'] | default('stopped') != 'running'
- name: START and enable Github Actions Runner service (macOS) # TODO: Idempotence
ansible.builtin.command: "./svc.sh start" # noqa no-changed-when
Expand Down

0 comments on commit 588671f

Please sign in to comment.