2020-01-14 06:59:13 +00:00
|
|
|
---
|
2020-01-14 19:32:41 +00:00
|
|
|
- include_tasks: basics.yml
|
2020-01-14 08:38:43 +00:00
|
|
|
- include_tasks: usability.yml
|
2020-01-14 08:41:24 +00:00
|
|
|
- include_tasks: ssh.yml
|
2020-02-10 05:38:01 +00:00
|
|
|
- meta: flush_handlers
|
|
|
|
|
2021-08-09 16:28:41 +00:00
|
|
|
- fail:
|
|
|
|
msg: 'Invalid `common__iptables__state`: {{ common__iptables__state }}'
|
2021-08-09 16:48:47 +00:00
|
|
|
when: (common__iptables__state != None) and
|
2021-08-09 16:42:13 +00:00
|
|
|
(common__iptables__state != 'purge') and
|
2021-08-09 16:37:19 +00:00
|
|
|
(common__iptables__state != 'remove') and
|
2021-08-09 16:28:41 +00:00
|
|
|
(common__iptables__state != 'install')
|
2020-02-13 13:29:34 +00:00
|
|
|
- include_tasks: iptables/purge.yml
|
2020-02-13 13:32:54 +00:00
|
|
|
when: common__iptables__state == 'purge'
|
2021-08-09 16:37:19 +00:00
|
|
|
- include_tasks: iptables/remove.yml
|
|
|
|
when: common__iptables__state == 'remove'
|
2020-02-10 05:41:05 +00:00
|
|
|
- include_tasks: iptables/install.yml
|
2020-02-10 05:38:01 +00:00
|
|
|
when: common__iptables__state == 'install'
|
|
|
|
- meta: flush_handlers
|
|
|
|
|
2021-08-09 16:28:41 +00:00
|
|
|
- fail:
|
|
|
|
msg: 'Invalid `common__certbot__state`: {{ common__certbot__state }}'
|
2021-08-09 16:48:47 +00:00
|
|
|
when: (common__certbot__state != None) and
|
2021-08-09 16:42:13 +00:00
|
|
|
(common__certbot__state != 'purge') and
|
2021-08-09 16:37:19 +00:00
|
|
|
(common__certbot__state != 'remove') and
|
2021-08-09 16:28:41 +00:00
|
|
|
(common__certbot__state != 'install')
|
2020-02-13 13:27:14 +00:00
|
|
|
- include_tasks: certbot/purge.yml
|
|
|
|
when: common__certbot__state == 'purge'
|
2021-08-09 16:37:19 +00:00
|
|
|
- include_tasks: certbot/remove.yml
|
|
|
|
when: common__certbot__state == 'remove'
|
2020-02-10 05:41:05 +00:00
|
|
|
- include_tasks: certbot/install.yml
|
2020-02-10 05:38:01 +00:00
|
|
|
when: common__certbot__state == 'install'
|
2020-02-06 15:34:51 +00:00
|
|
|
- meta: flush_handlers
|
2020-02-06 14:49:37 +00:00
|
|
|
|
2021-08-09 16:28:41 +00:00
|
|
|
- fail:
|
|
|
|
msg: 'Invalid `common__apache__state`: {{ common__apache__state }}'
|
2021-08-09 16:48:47 +00:00
|
|
|
when: (common__apache__state != None) and
|
2021-08-09 16:42:13 +00:00
|
|
|
(common__apache__state != 'purge') and
|
2021-08-09 16:37:19 +00:00
|
|
|
(common__apache__state != 'remove') and
|
2021-08-09 16:28:41 +00:00
|
|
|
(common__apache__state != 'install')
|
2020-02-06 14:55:41 +00:00
|
|
|
- include_tasks: apache/purge.yml
|
|
|
|
when: common__apache__state == 'purge'
|
2021-08-09 16:37:19 +00:00
|
|
|
- include_tasks: apache/remove.yml
|
|
|
|
when: common__apache__state == 'remove'
|
2020-02-06 14:51:00 +00:00
|
|
|
- include_tasks: apache/install.yml
|
2020-02-06 14:49:37 +00:00
|
|
|
when: common__apache__state == 'install'
|
2020-02-06 13:01:51 +00:00
|
|
|
- meta: flush_handlers
|
2020-02-06 14:49:37 +00:00
|
|
|
|
2021-08-09 16:28:41 +00:00
|
|
|
- fail:
|
|
|
|
msg: 'Invalid `common__nginx__state`: {{ common__nginx__state }}'
|
2021-08-09 16:48:47 +00:00
|
|
|
when: (common__nginx__state != None) and
|
2021-08-09 16:42:13 +00:00
|
|
|
(common__nginx__state != 'purge') and
|
2021-08-09 16:37:19 +00:00
|
|
|
(common__nginx__state != 'remove') and
|
2021-08-09 16:28:41 +00:00
|
|
|
(common__nginx__state != 'install')
|
2020-02-06 14:57:24 +00:00
|
|
|
- include_tasks: nginx/purge.yml
|
|
|
|
when: common__nginx__state == 'purge'
|
2021-08-09 16:37:19 +00:00
|
|
|
- include_tasks: nginx/remove.yml
|
|
|
|
when: common__nginx__state == 'remove'
|
2020-02-06 14:51:00 +00:00
|
|
|
- include_tasks: nginx/install.yml
|
2020-02-06 14:49:37 +00:00
|
|
|
when: common__nginx__state == 'install'
|
2020-02-06 13:01:51 +00:00
|
|
|
- meta: flush_handlers
|