From cb605b458939c9dd5ab7f623842d03ea6a069885 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 20 Aug 2019 09:31:35 +0000 Subject: [PATCH] new ansible style --- tasks/main.yml | 2 +- tasks/setup_Debian.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d543fdb..fbf0a3b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- -- include: setup_Debian.yml +- import_tasks: setup_Debian.yml - name: enable modules apache2_module: diff --git a/tasks/setup_Debian.yml b/tasks/setup_Debian.yml index df393b9..1449afb 100644 --- a/tasks/setup_Debian.yml +++ b/tasks/setup_Debian.yml @@ -1,11 +1,9 @@ --- -- name: install apt packages +- name: debian packages apt: - pkg: "{{item}}" - state: present - with_items: - - apache2 + pkg: + - apache2 - name: remove default page file: