remove deprecation warning

use include_tasks instead of include + static
This commit is contained in:
Jan Sepke 2018-01-10 11:49:32 +01:00 committed by GitHub
parent 88b469048a
commit b2745274c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: