Skip to content

Commit

Permalink
Merge pull request #13 from acme-software/bugfix/systemd
Browse files Browse the repository at this point in the history
fixed systemd service deployment
  • Loading branch information
frne authored Aug 16, 2018
2 parents c2331b0 + 1792941 commit 155f730
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
(deploy_service_type == "default" and ansible_distribution == "CentOS" and ansible_distribution_major_version == '7')

- name: "Service - Ensure {{ deploy_service_name }} starts on boot"
become: yes
service:
name: "{{ deploy_service_name }}"
enabled: yes
Expand Down
2 changes: 1 addition & 1 deletion tasks/service/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

- name: "Service - Check if registered in systemctl"
become: true
command: "systemctl | grep {{ deploy_service_name }}"
command: "systemctl list-unit-files | grep {{ deploy_service_name }}"
register: deploy_initctl_service_loaded

- name: "Service - Ensure registered in initctl"
Expand Down
File renamed without changes.

0 comments on commit 155f730

Please sign in to comment.