gitlab_runner: Adjust directory permissions
This patch reduces the permissions on the install directory to just the root user and also fixes the ansible-lint issue by specifying the `mode`.
This commit is contained in:
parent
69d1b5f8f7
commit
228dc7516e
1 changed files with 7 additions and 1 deletions
|
@ -31,14 +31,20 @@
|
|||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0700'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
with_items:
|
||||
- "{{ gitlabrunner_install_location }}"
|
||||
become: true
|
||||
|
||||
- name: Create data directory
|
||||
- name: Create config directory
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: '0700'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
setype: "container_file_t"
|
||||
with_items:
|
||||
- "{{ gitlabrunner_config_location }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue