jritter / ansible-podman-systemd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependencies

RHEL

ref: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/building_running_and_managing_containers/index#getting-container-tools_building-running-and-managing-containers

Install packages

sudo yum module install -y container-tools

Install podman-docker (optional):

sudo yum install -y podman-docker
sudo touch /etc/containers/nodocker

Configure subuid subgid

echo "$(id -u -n):165537:65536" | sudo tee -a /etc/subuid
echo "$(id -u -n):165537:65536" | sudo tee -a /etc/subgid

Allow users to expose services below 1024 (optional)

sudo sh -c 'echo 80 > /proc/sys/net/ipv4/ip_unprivileged_port_start'

Ansible

Install the following roles as dependency

ansible-galaxy collection install -r requirements.yml

Using the role

ansible-playbook -i hosts.ini dbservice_container.yaml

About

License:Apache License 2.0