diff --git a/tasks/install.yaml b/tasks/install.yaml index 97302ac..c8a5a5c 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -12,4 +12,4 @@ # License for the specific language governing permissions and limitations # under the License. --- -- include: "install/{{ logrotate_install_method }}.yaml" +- include_tasks: "install/{{ logrotate_install_method }}.yaml" diff --git a/tasks/main.yaml b/tasks/main.yaml index d9365e8..24e60b6 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- include: "{{ logrotate_task }}.yaml" +- include_tasks: "{{ logrotate_task }}.yaml" with_items: "{{ logrotate_task_manager }}" loop_control: loop_var: logrotate_task