aboutsummaryrefslogtreecommitdiff
path: root/update.yml
blob: 9d23f7a122045ce63223a48710de5a9e3da34897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- hosts: all
  become: true
  gather_facts: false

  tasks:
    - name: Create /root/BootcBlade.containerfile
      ansible.builtin.template:
        src: "bootcblade.containerfile.j2"
        dest: "/root/bootcblade.containerfile"

    - name: Build BootcBlade container image
      ansible.builtin.shell: "podman build -t localhost/bootcblade -f /root/bootcblade.containerfile"

    - name: Run bootc-update to apply newly built image
      ansible.builtin.shell: "bootc update"