Skip to content

Commit

Permalink
Merge pull request #57 from dennisse/skiponcheck
Browse files Browse the repository at this point in the history
Async does not support check_mode
  • Loading branch information
kravietz authored Aug 29, 2024
2 parents aea5bcd + 8b16cf0 commit d648c62
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
name: '{{ nft_service_name }}'
async: 5
poll: 2
when: ansible_service_mgr == 'systemd' and nft_service_manage
when:
- not ansible_check_mode
- ansible_service_mgr == 'systemd'
- nft_service_manage

# Reload will avoid to loose Nftables rulebase if an invalid syntax is added
- name: Reload nftables service
Expand All @@ -21,6 +24,8 @@
name: '{{ nft_service_name }}'
async: 5
poll: 2
when: ansible_service_mgr == 'systemd' and
nft_service_manage and
not nftables__register_systemd_service.changed
when:
- not ansible_check_mode
- ansible_service_mgr == 'systemd'
- nft_service_manage
- not nftables__register_systemd_service.changed

0 comments on commit d648c62

Please sign in to comment.