ansible-playbook-static-sit.../roles/static-server/tasks/main.yml

23 lines
659 B
YAML
Raw Permalink Normal View History

2023-11-10 13:21:47 +00:00
---
- 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"