diff options
| author | spmfox <spmfox@foxwd.com> | 2024-05-29 23:24:52 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2024-05-29 23:24:52 -0400 |
| commit | e361767e854fd9b710ef0a8ba84b1a72b0ff0905 (patch) | |
| tree | 48d06681b2779b2cd96071062ed67705cec9fe94 /deploy.yml | |
| parent | 898d4673219d16a5dc19e523f94eba952365f0c1 (diff) | |
adding a second build and bootc switch process, during configuration
Diffstat (limited to 'deploy.yml')
| -rw-r--r-- | deploy.yml | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -43,6 +43,13 @@ - name: Wait for connectivity after deployment ansible.builtin.wait_for_connection: + - name: Create /root/bootcblade.containerfile + ansible.builtin.template: + src: "bootcblade.containerfile.j2" + dest: "/root/bootcblade.containerfile" + loop: + - bootcblade.containerfile + - name: Create user ansible.builtin.user: name: "{{ create_user }}" @@ -67,6 +74,12 @@ state: present when: (create_user is defined) and (create_user_ssh_pub is defined) + - name: Build BootcBlade container image + ansible.builtin.shell: "podman build -t localhost/bootcblade -f /root/bootcblade.containerfile" + + - name: Invoke bootc-switch to switch from registry to local container storage + ansible.builtin.shell: "bootc switch --transport containers-storage localhost/bootcblade:latest" + - name: Add bootcblade-rebuild.service and .timer files for automatic update ansible.builtin.template: src: "{{ item }}.j2" @@ -95,6 +108,9 @@ loop: - "bootc-fetch-apply-updates.timer" - "bootc-fetch-apply-updates.service" + + - name: Reboot into final BootcBlade environment + ansible.builtin.reboot: vars: ansible_user: "root" tags: configure |
