common/tasks/main.yml

58 lines
2.0 KiB
YAML
Raw Normal View History

2020-01-14 06:59:13 +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
- meta: flush_handlers
2021-08-09 16:28:41 +00:00
- fail:
msg: 'Invalid `common__iptables__state`: {{ common__iptables__state }}'
when: (common__iptables__state != 'purge') and
(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'
- include_tasks: iptables/remove.yml
when: common__iptables__state == 'remove'
2020-02-10 05:41:05 +00:00
- include_tasks: iptables/install.yml
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 }}'
when: (common__certbot__state != 'purge') and
(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'
- include_tasks: certbot/remove.yml
when: common__certbot__state == 'remove'
2020-02-10 05:41:05 +00:00
- include_tasks: certbot/install.yml
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 }}'
when: (common__apache__state != 'purge') and
(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'
- 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'
- 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 }}'
when: (common__nginx__state != 'purge') and
(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'
- 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'
- meta: flush_handlers