From e211b73fa328fb7a82fd1bcb2116d9f9aa923094 Mon Sep 17 00:00:00 2001 From: spmfox Date: Sat, 2 Sep 2023 22:53:45 -0400 Subject: initial --- README.md | 8 ++++++++ collections/requirements.yml | 3 +++ docs/sample-environment/inventory.yml | 14 -------------- docs/sample-environment/wordpress.yml | 14 ++++++++++++++ 4 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 collections/requirements.yml delete mode 100644 docs/sample-environment/inventory.yml create mode 100644 docs/sample-environment/wordpress.yml diff --git a/README.md b/README.md index 023aa02..ab329b0 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ Ansible playbook for deploying and managing Podman containers. ![PodPlaybook](docs/images/logo.png) + +This playbook is for deploying and managing Podman containers in a reproducible way. +By default it will create systemd service files and is compatible with or without the use of pods. + +## Usage +- ```ansible-playbook host.yml``` +- ```ansible-galaxy install -r collections/requirements.yml``` +- ```ansible-playbook containers.yml -e @docs/sample-environment/wordpress.yml``` diff --git a/collections/requirements.yml b/collections/requirements.yml new file mode 100644 index 0000000..ff06a2d --- /dev/null +++ b/collections/requirements.yml @@ -0,0 +1,3 @@ +# ansible-galaxy install -r collections/requirements.yml +collections: + - name: containers.podman diff --git a/docs/sample-environment/inventory.yml b/docs/sample-environment/inventory.yml deleted file mode 100644 index fd933a3..0000000 --- a/docs/sample-environment/inventory.yml +++ /dev/null @@ -1,14 +0,0 @@ -pod: - name: wordpress - ports: - - "8080:80" - -containers: - - name: wordpress-db - path: "docs/sample-environment/wordpress" - file: "wordpress-db.containerfile" - runlabel: "start" - - name: wordpress-app - path: "docs/sample-environment/wordpress" - file: "wordpress-app.containerfile" - runlabel: "start" diff --git a/docs/sample-environment/wordpress.yml b/docs/sample-environment/wordpress.yml new file mode 100644 index 0000000..fd933a3 --- /dev/null +++ b/docs/sample-environment/wordpress.yml @@ -0,0 +1,14 @@ +pod: + name: wordpress + ports: + - "8080:80" + +containers: + - name: wordpress-db + path: "docs/sample-environment/wordpress" + file: "wordpress-db.containerfile" + runlabel: "start" + - name: wordpress-app + path: "docs/sample-environment/wordpress" + file: "wordpress-app.containerfile" + runlabel: "start" -- cgit