Mimic the Kubernetes Example: Deploying WordPress and MySQL with Persistent Volumes using Podman, Systemd and Quadlet
- Start a target machine
- The demo was tested on a CentOS Stream 9 based EC2 instance
- On your development machine:
- Install ansible
sudo dnf install ansible-core
- Clone this repo
git clone https://github.com/ygalblum/quadlet-demo.git
- Install the required Galaxy collections
ansible-galaxy collection install -r requirements.yml
- Create the
inventory.yml
file:all: hosts: < FQDN or IP of the target machine >: ansible_connection: ssh ansible_user: < Username to connect with > ansible_ssh_private_key_file: < Location of the private key >
- Run the playbook
ansible-playbook playbook.yml
- Open the machine's URL in a browser, using port 8000 and
https://
and you should see the Wordpress setup page.
- Install ansible
This repository contains a Vagrantfile, that can be used to create a new virtual machine and deploy the quadlet-demo using Ansible.
- You need vagrant and vagrant-libvirt.
- Fetch the box, per default this is
generic/centos9s
, usingvagrant box add generic/centos9s
. - Run
vagrant up
To reach the container from the machine running vagrant
you need to find out the Vagrant VM's IP address, e.g.
by using the vagrant address plugin or roaming through
the Ansible inventory file in
.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
.