Initial commit

Basic roles for installing podman, creating containers, networks and
services
This commit is contained in:
uumas
2024-07-28 16:13:03 +03:00
commit 5c46597261
24 changed files with 515 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
argument_specs:
main:
short_description: Sets up podman network with systemd unit (quadlet)
options:
network_name:
description: Name of the network. Must be unique within a host.
type: str
required: true

View File

@@ -0,0 +1,3 @@
---
dependencies:
- role: podman

View File

@@ -0,0 +1,7 @@
---
- name: "Create container network service {{ network_name }}"
ansible.builtin.template:
src: network.j2
dest: "/etc/containers/systemd/{{ network_name }}.network"
mode: "0644"
notify: Reload systemd daemon

View File

@@ -0,0 +1,7 @@
# {{ ansible_managed }}
[Unit]
Description=Container network {{ network_name }}
[Network]
NetworkName={{ network_name }}