Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify sqlite storage creation in ansible task (PROJQUAY-7663) #168

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@
state: present
when: "quay_storage.startswith('/')"

- name: Create necessary directory for sqlite data
become_method: containers.podman.podman_unshare
become: true
- name: Create necessary directory for sqlite storage
ansible.builtin.file:
mode: u+rwx
owner: 1001
path: "{{ sqlite_storage }}"
state: directory
recurse: yes
when: "sqlite_storage.startswith('/')"

- name: Set permissions on sqlite storage directory
ansible.posix.acl:
path: "{{ sqlite_storage }}"
entity: 1001
etype: user
permissions: wx
state: present
when: "sqlite_storage.startswith('/')"

- name: Create necessary directory for Quay config bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@
register: sqlite_storage_stat
when: sqlite_storage.startswith('/')

- name: Create necessary directory for sqlite data if it doesn't exist
become_method: containers.podman.podman_unshare
become: true
- name: Create necessary directory for sqlite storage
ansible.builtin.file:
mode: u+rwx
owner: 1001
path: "{{ sqlite_storage }}"
state: directory
recurse: yes
when: sqlite_storage.startswith('/') and not sqlite_storage_stat.stat.exists

- name: Set permissions on sqlite storage directory
ansible.posix.acl:
path: "{{ sqlite_storage }}"
entity: 1001
etype: user
permissions: wx
state: present
when: sqlite_storage.startswith('/') and not sqlite_storage_stat.stat.exists

- name: Start Quay service
Expand Down
Loading