certbot/tasks/main.yml

14 lines
415 B
YAML
Raw Permalink Normal View History

2021-09-18 19:02:34 -04:00
---
- fail:
msg: 'Invalid `certbot__state`: {{ certbot__state }}'
when: (certbot__state != None) and
(certbot__state != 'purge') and
(certbot__state != 'remove') and
(certbot__state != 'install')
- include_tasks: purge.yml
when: certbot__state == 'purge'
- include_tasks: remove.yml
when: certbot__state == 'remove'
- include_tasks: install.yml
when: certbot__state == 'install'