We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19678c6 commit 45a5e0dCopy full SHA for 45a5e0d
1 file changed
playbooks/tasks/deploy_ironic_containers.yaml
@@ -1,6 +1,30 @@
1
---
2
# Ironic ephemeral container deployment (non-persistent path)
3
4
+- name: Stop persistent Ironic systemd services if running
5
+ become: true
6
+ ansible.builtin.systemd:
7
+ name: "{{ item }}"
8
+ state: stopped
9
+ enabled: false
10
+ loop:
11
+ - metal3-httpd.service
12
+ - metal3-ironic-api.service
13
+ - metal3-ironic-pod.service
14
+ failed_when: false
15
+
16
+- name: Remove persistent metal3-ironic pod
17
18
+ containers.podman.podman_pod:
19
+ name: metal3-ironic
20
+ state: absent
21
22
23
+- name: Remove stale ephemeral metal3-ironic pod
24
25
26
27
28
- name: Create metal3-ironic pod
29
containers.podman.podman_pod:
30
name: metal3-ironic
0 commit comments