Skip to content

Commit

Permalink
Task for failing configration when nbproc configured in deprecated ve…
Browse files Browse the repository at this point in the history
…rsions
  • Loading branch information
jabbors committed Nov 19, 2021
1 parent 87ba932 commit db6196c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# tasks file
---
- name: configuration | fail
fail:
msg: "haproxy_global_nbproc is deprecated"
when:
- haproxy_version is version('2.3', '>=') and haproxy_version is version('2.5', '<')
- haproxy_global_nbproc > 1
tags:
- haproxy-configuration-warn-or-fail

- name: configuration | update file
template:
src: "{{ haproxy_conf_template }}"
Expand Down

0 comments on commit db6196c

Please sign in to comment.