From 4e95715308463139337a87d0aa5217a7f36c3749 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Mon, 23 Jan 2017 22:29:24 -0800 Subject: [PATCH] Set perms to be executable for scripts --- ch13/ansible/roles/mezzanine/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ch13/ansible/roles/mezzanine/tasks/main.yml b/ch13/ansible/roles/mezzanine/tasks/main.yml index d2383f8..2648fb4 100644 --- a/ch13/ansible/roles/mezzanine/tasks/main.yml +++ b/ch13/ansible/roles/mezzanine/tasks/main.yml @@ -21,7 +21,10 @@ src: "{{ lookup('pipe', 'dirname `pwd`') }}/mezzanine_example/" dest: /srv/project - name: copy scripts - copy: src="{{ role_path }}/files/{{ item }}" dest="/srv/bin/{{ item }}" + copy: + src: "{{ role_path }}/files/{{ item }}" + dest: "/srv/bin/{{ item }}" + mode: "u=rwx,g=rx,o=rx" with_items: - entrypoint.sh - setsite.py -- 2.44.0