Move systemd service setup to the embedded webserver installation

This is specific to the embedded webserver installation.
We don't need to set up the systemd service otherwise.

Change-Id: I9c92152b4f6173d03bf56c66603290201fe59b8a
This commit is contained in:
David Moreau Simard 2018-06-19 10:50:14 -04:00
parent 90df161d75
commit fa6ad4d279
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
2 changed files with 22 additions and 22 deletions

View File

@ -16,6 +16,28 @@
# You should have received a copy of the GNU General Public License
# along with ARA. If not, see <http://www.gnu.org/licenses/>.
- 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:

View File

@ -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"