mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 02:50:19 +01:00
21 lines
470 B
YAML
21 lines
470 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
become: true
|
|
|
|
vars:
|
|
apache_listen_port_ssl: 443
|
|
apache_create_vhosts: true
|
|
apache_vhosts_filename: "vhosts.conf"
|
|
apache_vhosts:
|
|
- servername: "example.com"
|
|
documentroot: "/var/www/vhosts/example_com"
|
|
|
|
pre_tasks:
|
|
- name: Update apt cache.
|
|
apt: update_cache=yes cache_valid_time=600
|
|
when: ansible_os_family == 'Debian'
|
|
changed_when: false
|
|
|
|
roles:
|
|
- role: geerlingguy.apache
|