Files
ansible-pull/roles/webserver/tasks/main.yml
2022-09-21 12:37:40 +02:00

22 lines
512 B
YAML

# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- block:
- debug:
msg: Debug
# install software
- import_tasks: install_apache.yml
when:
- apache is defined
- apache == true
- import_tasks: install_nginx.yml
when:
- nginx is defined
- nginx == true
- import_tasks: install_php.yml
- name: webserver | certbot | install certbot
package:
name: certbot
state: latest
- include_tasks: apps/apps.yml