ansible-playbook-static-sit.../roles/static-server/tasks/main.yml
2023-11-10 14:21:47 +01:00

23 lines
659 B
YAML

---
- name: Run static_site_server installation tasks
tags:
- setup-all
- setup-static_site_server
- install-all
- install-static_site_server
block:
- when: static_site_server_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: static_site_server_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
- name: Run static_site_server uninstallation tasks
tags:
- setup-all
- setup-static_site_server
block:
- when: not static_site_server_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"