Skip to content

Commit

Permalink
allow disabling hammers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Anderson authored and codyhammock committed Jun 3, 2022
1 parent 32e27b4 commit eb8c8fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/hammers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
task_name: "hammer_{{ item.key }}"
task_command: "/usr/local/sbin/cc-hammer {{ item.value.cmd }}"
task_calendar: "{{ item.value.calendar }}"
task_enabled: "{{ item.value.enabled | bool }}"
loop: "{{ hammers | dict2items }}"
loop_control:
label: "{{ item.key }}"
when:
- "{{ item.enabled | bool }}"

0 comments on commit eb8c8fa

Please sign in to comment.