aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/apt_repo/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 00:26:13 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-01 00:26:13 +0200
commita89e16c44ee6d038e4f4cf435902e66558cc5cf4 (patch)
tree745201ec1b6b2e6f5239cf4feaf790fb4a138654 /roles/apt_repo/tasks/main.yml
parentapt: don't remove after autoremoving dependencies (diff)
downloadinfra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.tar.gz
infra-ansible-a89e16c44ee6d038e4f4cf435902e66558cc5cf4.zip
sort module args, add missing state args, etc.
Diffstat (limited to 'roles/apt_repo/tasks/main.yml')
-rw-r--r--roles/apt_repo/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/apt_repo/tasks/main.yml b/roles/apt_repo/tasks/main.yml
index 3e87d38..ef34bf5 100644
--- a/roles/apt_repo/tasks/main.yml
+++ b/roles/apt_repo/tasks/main.yml
@@ -10,13 +10,17 @@
- name: Create keys directory
ansible.builtin.file:
path: '{{ apt_repo_keys_dir }}'
- mode: '755'
state: directory
+ owner: root
+ group: root
+ mode: '755'
- name: 'Add key: {{ apt_repo_name }}'
ansible.builtin.get_url:
url: '{{ apt_repo_key_url }}'
dest: '{{ key_path }}'
+ owner: root
+ group: root
mode: '644'
notify: apt_repo_update