Will there be an rpm-ostree packaging module for ansible?

Does anyone know if there are plans to create a new packaging module for rpm-ostree in ansible?

1 Like

no plans that I know of but would love to see one that also integrated with the generic package module and also maybe had an option for kicking off the reboot using the new reboot action plugin.

in the interim I hacked this up this weekend:

- name: Install Virt Packages        
  tags: foo                          
  shell: |                           
   rpm-ostree install --idempotent \
      libvirt-client \
      libvirt-nss \
      libvirt-daemon-kvm \
      libvirt-daemon-config-network \
      genisoimage \
      qemu-system-aarch64 \
      virt-manager \
      virt-install \
      virt-viewer \
      nbd \
      vagrant \
      vagrant-libvirt \
      vagrant-sshfs \
      slirp4netns
1 Like

Good hack ! thanks. I’ll give it a try later

That’s the code I use for installing git on a atomic host server:

1 Like

And a module was proposed in the past, but the PR was closed (Fixes #21185 rpm-ostree compose module by trishnaguha · Pull Request #23209 · ansible/ansible · GitHub ). If someone want to restart the work, I can review the code and merge it.

So I started work on a module. Mostly copied code from existing modules and hacked together something to work. I haven’t had a chance to clean it up and get it right for merge. Here is a link if anyone is interested in just seeing it: ansible module for rpm-ostree package layering · GitHub

1 Like