From 093d72b9ada627cdc99ff8a6228b6ddb84de121b Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 6 Mar 2018 20:34:31 -0700 Subject: Support pure systemd hosts Issue: IS-75 --- salt/openbook/ansible/files/openbook.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/openbook/ansible/files/openbook.yaml b/salt/openbook/ansible/files/openbook.yaml index a9ad449..df51b22 100644 --- a/salt/openbook/ansible/files/openbook.yaml +++ b/salt/openbook/ansible/files/openbook.yaml @@ -158,7 +158,10 @@ when: ansible_distribution == "Gentoo" and ansible_service_mgr == "systemd" - name: "Add service script to systemd" - shell: systemctl enable openbook + shell: "systemctl enable {% raw %}{{ item }}{% endraw %}.service" + with_items: + - openbook + - openbook-debug 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" -- cgit v1.3