Skip to content

Commit

Permalink
Fixes path to systemd 3proxy service
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Aug 5, 2018
1 parent 34568fb commit 0d7f86f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
- "{{ ansible_distribution }}.yml"
tags: vars

- name: get info about 3proxy service
systemd:
name: 3proxy.service
enabled: true
when: ansible_service_mgr == 'systemd'
register: proxy_info

- name: Set log directory writable for 3proxy if needed
ini_file:
path: /lib/systemd/system/3proxy.service
path: "{{ proxy_info.status.FragmentPath }}"
section: Service
option: ReadWritePaths
value: /var/log/3proxy
Expand Down

0 comments on commit 0d7f86f

Please sign in to comment.