Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117755753
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/deployments/ansible/roles/kolab-node/tasks/local_registry.yaml b/deployments/ansible/roles/kolab-node/tasks/local_registry.yaml
index 2dc6f90..905c663 100644
--- a/deployments/ansible/roles/kolab-node/tasks/local_registry.yaml
+++ b/deployments/ansible/roles/kolab-node/tasks/local_registry.yaml
@@ -1,32 +1,33 @@
---
- name: Prepare storage
ansible.builtin.shell: |
mkdir -p /data/registry; \
chmod 777 -R /data/;
- name: Install podman
ansible.builtin.command: dnf -y install podman
when: is_infrastructure and is_primary
- name: Start local registry
ansible.builtin.command: podman container run --replace -v /data/registry:/var/lib/registry -dt -p 5001:5000 --name registry docker.io/library/registry:2
# Will fail if already running
ignore_errors: true
when: is_infrastructure and is_primary
- name: registries.conf
ansible.builtin.template:
src: files/registries.conf.j2
dest: /etc/rancher/k3s/registries.yaml
owner: root
group: root
mode: '0644'
register: registries_status
+ when: is_infrastructure and is_primary
- name: Restart k3s
ansible.builtin.command: systemctl restart k3s
when: registries_status.changed and is_infrastructure
- name: Restart k3s agent
ansible.builtin.command: systemctl restart k3s-agent
when: registries_status.changed and not is_infrastructure
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Apr 4, 8:15 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18818154
Default Alt Text
(1 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline