From d226ba3f52bb0c402aff684871fa426e092ccc41 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 22 Oct 2018 12:49:22 +0200 Subject: [PATCH] Change module apt with multiple packages to remove deprecated syntax --- tasks/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 89cecbc..e88336a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,13 +9,14 @@ - name: "Install essential packages" apt: - pkg: '{{ item }}' + pkg: '{{ packages }}' state: 'present' update_cache: yes - with_items: - - 'alien' - - 'libaio1' - - 'bc' + vars: + packages: + - 'alien' + - 'libaio1' + - 'bc' - name: "Check current status" shell: 'ls /u01/app/oracle/product' -- GitLab