Files
rproxy/roles/rproxy/tasks/dirs.yml

61 lines
1.4 KiB
YAML

---
- name: Remove rproxy dir
ansible.builtin.file:
path: "{{ rproxy_dir }}"
state: absent
- name: Create rproxy dir
ansible.builtin.file:
path: "{{ rproxy_dir }}"
state: directory
- name: Create rproxy data dir
ansible.builtin.file:
path: "{{ repo_data_dir }}"
state: directory
- name: "Create {{ repo_data_dir }}/archive"
ansible.builtin.file:
path: "{{ repo_data_dir }}/archive"
state: directory
- name: "Create {{ repo_data_dir }}/pip"
ansible.builtin.file:
path: "{{ repo_data_dir }}/pip"
state: directory
- name: "Create {{ repo_data_dir }}/pip/py3"
ansible.builtin.file:
path: "{{ repo_data_dir }}/pip/py3"
state: directory
- name: "Create {{ repo_data_dir }}/repo"
ansible.builtin.file:
path: "{{ repo_data_dir }}/repo"
state: directory
- name: "Create {{ repo_data_dir }}/repo/almalinux"
ansible.builtin.file:
path: "{{ repo_data_dir }}/repo/almalinux"
state: directory
- name: "Create {{ repo_data_dir }}/repo/almalinux/10"
ansible.builtin.file:
path: "{{ repo_data_dir }}/repo/almalinux/10"
state: directory
- name: Create sites dir
ansible.builtin.file:
path: "{{ rproxy_dir }}/sites"
state: directory
- name: Create certs dir
ansible.builtin.file:
path: "{{ rproxy_dir }}/certs"
state: directory
- name: Create repo dir
ansible.builtin.file:
path: "{{ repo_data_dir }}"
state: directory
mode: 0777