From df76f229460d8ae8c58b4ee99ac4a77d97bdc8d0 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 6 Mar 2018 21:17:50 -0700 Subject: Support pure systemd hosts Issue: IS-75 --- salt/openbook/ansible/files/openbook.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/openbook/ansible/files/openbook.yaml b/salt/openbook/ansible/files/openbook.yaml index bb9c6ed..a390a01 100644 --- a/salt/openbook/ansible/files/openbook.yaml +++ b/salt/openbook/ansible/files/openbook.yaml @@ -159,6 +159,8 @@ - name: "Add service script to systemd" shell: systemctl enable openbook.service + with_items: + - openbook when: ansible_distribution == "Ubuntu" or ansible_distribution == "RedHat" or ansible_distribution == "CentOS" or (ansible_distribution == "Gentoo" and ansible_service_mgr == "systemd") - name: "Enable openbook service" @@ -223,4 +225,4 @@ - name: "Start Openbook" include: stop_start_openbook.yaml action=start - when: openbook_start_app == True + when: openbook_start_app == True|string() == "True" -- cgit v1.3