summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2018-03-06 20:34:31 -0700
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2018-03-06 20:34:31 -0700
commitf80d1923572e514e0d9ecc0dc2165bb6a862fb7d (patch)
treed7cee60f2507ede2f84fd0a7fff42685a6f23d95
parent51607550665306a30142a76dc3362108131de4c4 (diff)
Support pure systemd hosts
Issue: IS-75
-rw-r--r--salt/openbook/ansible/files/openbook.yaml5
1 files changed, 4 insertions, 1 deletions
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"