diff --git a/roles/gitlab_runner/tasks/main.yml b/roles/gitlab_runner/tasks/main.yml index f0e56e8..a468ebf 100644 --- a/roles/gitlab_runner/tasks/main.yml +++ b/roles/gitlab_runner/tasks/main.yml @@ -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 }}"