From f91c67ad58edff78805ea43e50f3f11a69181928 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Mon, 1 Oct 2018 18:16:51 +0000 Subject: [PATCH] fix dual when --- roles/network/tasks/captive_portal.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/network/tasks/captive_portal.yml b/roles/network/tasks/captive_portal.yml index 7fc549af7..a5b1c5f89 100644 --- a/roles/network/tasks/captive_portal.yml +++ b/roles/network/tasks/captive_portal.yml @@ -1,9 +1,12 @@ - name: Get python dateutil package: - name: python-dateutil + name: '(( item }}' state: present when: py_captive_portal_install - + with_item: + - python-dateutil + - sqlite3 + - name: Create directory for Captive Portal script file: path: /opt/iiab/captive-portal @@ -46,7 +49,6 @@ shell: /usr/bin/iiab-uncatch when: py_captive_portal_install - when: py_captive_portal_install - name: Copy Captive Portal service file template: src: roles/network/templates/captive-portal/captive-portal.service.j2