writefreely/tasks/main.yaml
changeset 18 ea20908c3904
parent 17 41034ea52480
child 26 b0e4ad2f4291
--- a/writefreely/tasks/main.yaml	Sun May 03 12:57:47 2020 -0500
+++ b/writefreely/tasks/main.yaml	Sun May 03 15:55:21 2020 -0500
@@ -16,8 +16,13 @@
 
 - name: install writefreely binary
   become: yes
-  command: "install -m 0755 -o {{writefreely_user}} -g {{writefreely_user}} -t /usr/local/bin /tmp/writefreely/writefreely"
-  changed_when: false
+  copy:
+    src: "/tmp/writefreely/writefreely"
+    dest: "/usr/local/bin/"
+    remote_src: yes
+    owner: "{{writefreely_user}}"
+    group: "{{writefreely_user}}"
+    mode: "0755"
 
 - name: create root dir
   become: yes