Removed use of install command.
authorLuke Hoersten <luke@hoersten.org>
Sun, 03 May 2020 15:55:21 -0500
changeset 18 ea20908c3904
parent 17 41034ea52480
child 19 31de177274a1
Removed use of install command.
writefreely/tasks/main.yaml
--- 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