Skip to content
Snippets Groups Projects
main.yml 419 B
##
# Ansible file to install Apache with PHP and some other stuff
#

---
# file: roles/apache/tasks/main.yml

- name: "Apache Role"
  set_fact: role_apache_started=true
  tags: 'always'

- block:

  - import_tasks: apache.yml

  - name: 'Remember that this role had been run'
    set_fact: role_apache_completed=true
    tags: 'always'

  when: '"apache" not in excluded_roles and role_apache_completed is not defined'