Add creation of data dir

This commit is contained in:
2025-07-20 18:24:57 +03:00
parent 225371dea0
commit 7155070c9e
2 changed files with 11 additions and 0 deletions

View File

@@ -6,11 +6,21 @@
path: "{{ rproxy_dir }}" path: "{{ rproxy_dir }}"
state: absent state: absent
- name: Create data dir
ansible.builtin.file:
path: "{{ data_dir }}"
state: directory
- name: Create rproxy dir - name: Create rproxy dir
ansible.builtin.file: ansible.builtin.file:
path: "{{ rproxy_dir }}" path: "{{ rproxy_dir }}"
state: directory state: directory
- name: Create rproxy data dir
ansible.builtin.file:
path: "{{ repo_data_dir }}"
state: directory
- name: Create sites dir - name: Create sites dir
ansible.builtin.file: ansible.builtin.file:
path: "{{ rproxy_dir }}/sites" path: "{{ rproxy_dir }}/sites"

View File

@@ -1,6 +1,7 @@
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3
rproxy_dir: /opt/rproxy rproxy_dir: /opt/rproxy
rproxy_version: latest rproxy_version: latest
data_dir: /opt/data
repo_data_dir: /opt/data/repo repo_data_dir: /opt/data/repo
dockerrepo_dir: /opt/dockerrepo dockerrepo_dir: /opt/dockerrepo
dockerrepo_data_dir: /opt/data/dockerrepo dockerrepo_data_dir: /opt/data/dockerrepo