Skip to content

Commit

Permalink
use more strict permissions on files
Browse files Browse the repository at this point in the history
  • Loading branch information
macno committed Dec 3, 2023
1 parent 715091b commit 3127453
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks/theo-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,25 @@
path: "{{ theo_agent_cache_dir }}"
state: directory
owner: "{{ theo_agent_user }}"
mode: 0755
mode: 0700

- name: Create config directory
file:
path: "{{ theo_agent_config_dir }}"
state: directory
mode: 0755
mode: 0700

- name: Create config file
template:
src: config.yml.j2
dest: "{{ theo_agent_config_path }}"
mode: 0644
owner: "{{ theo_agent_user }}"
mode: 0600

- name: Create public key file
copy:
dest: "{{ theo_agent_public_key_path }}"
mode: 0644
owner: "{{ theo_agent_user }}"
mode: 0600
content: "{{ theo_agent_public_key }}"
when: theo_agent_verify_signature|bool

0 comments on commit 3127453

Please sign in to comment.