geoip/tasks/main.yml
2023-11-08 19:36:02 +04:00

13 lines
397 B
YAML

---
- fail:
msg: 'Invalid `geoip__state`: {{ geoip__state }}'
when: (geoip__state != None) and
(geoip__state != 'purge') and
(geoip__state != 'remove') and
(geoip__state != 'install')
- include_tasks: purge.yml
when: geoip__state == 'purge'
- include_tasks: remove.yml
when: geoip__state == 'remove'
- include_tasks: install.yml
when: geoip__state == 'install'