Skip to content

Commit

Permalink
Modify sqlite storage creation in ansible task (#168)
Browse files Browse the repository at this point in the history
anisble plugin 'containers.podman.podman_unshare' is not being
recognized, hence replacing it with ansible.builtin.file to create dir
  • Loading branch information
harishsurf authored Aug 16, 2024
1 parent 0f6e8ef commit f2d1510
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
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

0 comments on commit f2d1510

Please sign in to comment.