mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
remove deprecation warning
use include_tasks instead of include + static
This commit is contained in:
parent
88b469048a
commit
b2745274c0
1 changed files with 2 additions and 4 deletions
|
@ -13,8 +13,7 @@
|
|||
when: apache_packages is not defined
|
||||
|
||||
# Setup/install tasks.
|
||||
- include: "setup-{{ ansible_os_family }}.yml"
|
||||
static: no
|
||||
- include_tasks: "setup-{{ ansible_os_family }}.yml"
|
||||
|
||||
# Figure out what version of Apache is installed.
|
||||
- name: Get installed version of Apache.
|
||||
|
@ -34,8 +33,7 @@
|
|||
when: "apache_version.split('.')[1] == '4'"
|
||||
|
||||
# Configure Apache.
|
||||
- include: "configure-{{ ansible_os_family }}.yml"
|
||||
static: no
|
||||
- include_tasks: "configure-{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Ensure Apache has selected state and enabled on boot.
|
||||
service:
|
||||
|
|
Loading…
Reference in a new issue