22 lines
470 B
YAML
22 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
|