Commit cf6c4dc0 by John Jarvis

setting perms recursively for the gnupg dir

parent 7f13645f
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
copy: > copy: >
src={{ CERTS_LOCAL_PRIVATE_KEY }} src={{ CERTS_LOCAL_PRIVATE_KEY }}
dest={{ certs_app_dir }}/{{ CERTS_LOCAL_PRIVATE_KEY|basename }} dest={{ certs_app_dir }}/{{ CERTS_LOCAL_PRIVATE_KEY|basename }}
owner={{ certs_user }} group={{ common_web_user }} mode=0640 owner={{ certs_user }} mode=0640
notify: certs | restart certs notify: certs | restart certs
register: certs_gpg_key register: certs_gpg_key
...@@ -77,6 +77,15 @@ ...@@ -77,6 +77,15 @@
when: certs_gpg_key.changed when: certs_gpg_key.changed
notify: certs | restart certs notify: certs | restart certs
- name: certs | set permission to the certs_gpg_dir so that it can be read by the web user
file: >
path={{ certs_gpg_dir }}
owner={{ certs_user }}
group={{ common_web_user }}
mode=0640 recurse=yes
sudo_user: "{{ certs_user }}"
notify: certs | restart certs
- include: deploy.yml - include: deploy.yml
- name: certs | create a symlink for venv python - name: certs | create a symlink for venv python
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment