Outils pour utilisateurs

Outils du site


tech:notes_ansible_podman

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:notes_ansible_podman [2026/03/23 14:08] – créée Jean-Baptistetech:notes_ansible_podman [2026/03/23 14:10] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon ansible podman}}
  
 +# Notes ansible podman
 +
 +~~~bash
 +ansible-doc -t connection -l | grep podman
 +ansible-doc -t inventory -l | grep podman
 +~~~
 +
 +
 +play.yml
 +~~~yaml
 +#! /usr/bin/ansible-playbook
 +---
 +
 +- name: test
 +  hosts: all
 +  connection: containers.podman.podman
 +
 +  tasks:
 +    - name: Test
 +      command: ls -l
 +~~~
 +
 +`inventory.yml`
 +
 +~~~yaml
 +plugin: containers.podman.podman_containers
 +include_stopped: false
 +#label_selectors:
 +#  role: api
 +connection_plugin: containers.podman.podman
 +~~~
 +
 +
 +~~~bash
 +./plop.yml -i inventory.yml
 +~~~
 +
 +Le conteneur doit avoir python3
 +
 +
 +FIXME

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki