diff --git a/tasks/embedded/standalone.yml b/tasks/embedded/standalone.yml index 2bc869f..c3a7168 100644 --- a/tasks/embedded/standalone.yml +++ b/tasks/embedded/standalone.yml @@ -16,6 +16,28 @@ # You should have received a copy of the GNU General Public License # along with ARA. If not, see . +- name: Get the location of ara-manage + command: which ara-manage + environment: + PATH: "{{ path_with_virtualenv | default(omit) }}" + register: ara_manage + changed_when: false + +- name: Copy systemd service template + become: true + template: + src: templates/ara_service.conf.j2 + dest: /etc/systemd/system/ara.service + owner: root + group: root + mode: 0644 + notify: + - reload systemctl daemon + - restart ara + +- name: Flush handlers + meta: flush_handlers + - name: Ensure the embedded server service is started and enabled become: true systemd: diff --git a/tasks/main.yml b/tasks/main.yml index fb4faa5..dd5bb42 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -59,28 +59,6 @@ src: logrotate.conf.j2 dest: /etc/logrotate.d/ara -- name: Get the location of ara-manage - command: which ara-manage - environment: - PATH: "{{ path_with_virtualenv | default(omit) }}" - register: ara_manage - changed_when: false - -- name: Copy systemd service template - become: true - template: - src: templates/ara_service.conf.j2 - dest: /etc/systemd/system/ara.service - owner: root - group: root - mode: 0644 - notify: - - reload systemctl daemon - - restart ara - -- name: Flush handlers - meta: flush_handlers - - name: Include web server configuration include_tasks: "{{ ara.deployment.server }}/{{ ara.deployment.type }}.yml"