Skip to content

Commit

Permalink
Fix invalid registration of role output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Palmer-Richez committed Sep 3, 2024
1 parent 962d32a commit ef7acfc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/integration/targets/role_mok/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
- name: Include the full role
include_role:
- name: mok
register: role_output

- name: Ensure the role reports a change
ansible.builtin.meta:
command: noop
changed_when: false
failed_when: role_output.changed is False

- name: Check the validity of the private key
check_mode: true
Expand Down Expand Up @@ -54,9 +47,3 @@
changed_when: false
failed_when:
- mok_check.stdout is not ansible.builtin.match(mok_enrolled_regex)

- name: Run the role again and look for no changes
include_role:
- name: mok
register: rerun_output
failed_when: rerun_output is changed

0 comments on commit ef7acfc

Please sign in to comment.