Skip to content

Commit

Permalink
Merge pull request #4 from antifob/master
Browse files Browse the repository at this point in the history
Change Cloudflared user and install path
  • Loading branch information
bendews authored Jun 18, 2019
2 parents ba07de0 + a8a51fb commit 59c519a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion files/cloudflared.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=syslog.target network-online.target

[Service]
Type=simple
User=cloudflared
User=nobody
EnvironmentFile=/etc/default/cloudflared
ExecStart=/usr/local/bin/cloudflared $CLOUDFLARED_OPTS
Restart=on-failure
Expand Down
7 changes: 1 addition & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
register: update_command
changed_when: update_command.rc == '64'

- name: create application user
user:
name: cloudflared
system: yes

- name: template config file
template:
src: cloudflared.j2
Expand All @@ -46,7 +41,7 @@
- name: copy systemd service
copy:
src: cloudflared.service
dest: /lib/systemd/system/
dest: /etc/systemd/system/
owner: root
group: root
mode: 0644
Expand Down

0 comments on commit 59c519a

Please sign in to comment.