Sfoglia il codice sorgente

[galene] Start it on install

Colin Powell 3 anni fa
parent
commit
b9b7eb43a2
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  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