瀏覽代碼

[galene] Start it on install

Colin Powell 3 年之前
父節點
當前提交
b9b7eb43a2
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      ansible/roles/galene/tasks/main.yml

+ 7 - 3
ansible/roles/galene/tasks/main.yml

@@ -27,12 +27,16 @@
     dest: /usr/local/etc/rc.d/galene
     mode: a+x
 
-- name: Galene enabled
-  shell: sysrc galene_enable="YES"
-
 - name: Install galene
   ansible.builtin.copy:
     src: /usr/local/src/galene/galene
     dest: /usr/local/bin/galene
     remote_src: yes
+    mode: a+x
   notify: Galene restarted
+
+- name: Galene enabled
+  shell: sysrc galene_enable="YES"
+
+- name: Galene started
+  service: name=galene state=started