From f80d1923572e514e0d9ecc0dc2165bb6a862fb7d 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(-) (limited to 'salt') diff --git a/salt/openbook/ansible/files/openbook.yaml b/salt/openbook/ansible/files/openbook.yaml index a9ad449..ad5e986 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 {{ item }}.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