Giter Site home page Giter Site logo

ansible-podman's Introduction

Ansible Module for Podman

This module allows Ansible to use Podman to manage container images.

Requirements

  • Python 3.6+
  • Ansible 2.8

Installation

  1. Install Podman
  2. Install Python-podman library on the host you will be running ansible playbooks.
git clone [email protected]:containers/python-podman.git
cd ~/python-podman
python3 setup.py clean -a && python3 setup.py sdist bdist
python3 setup.py install --user
  1. Copy podman_images_v2.py to your directory library
../podman_test/
├── library
│   └── podman_image_v2.py
└── pull_image.yml

Usage Examples

This module will pull the fedora latest image from docker hub.

hosts: localhost
  tasks:
   - name: Pull an image
     podman_image_v2:
       name: fedora
     register: result

   - debug: var=result

Parameters

parameter required default choices comments
name yes
    Set image name
    tag no latest
      Set the tag of the image
      pull no true
        Set the pull option
        force no false
          Set to pull an image forcefully
          state no present
          • present
          • build
          • absent
          Set the state of the image

          ansible-podman's People

          Contributors

          nehajain1809 avatar phadated avatar renuhadke avatar rhatdan avatar

          Watchers

           avatar

          Recommend Projects

          • React photo React

            A declarative, efficient, and flexible JavaScript library for building user interfaces.

          • Vue.js photo Vue.js

            🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

          • Typescript photo Typescript

            TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

          • TensorFlow photo TensorFlow

            An Open Source Machine Learning Framework for Everyone

          • Django photo Django

            The Web framework for perfectionists with deadlines.

          • D3 photo D3

            Bring data to life with SVG, Canvas and HTML. 📊📈🎉

          Recommend Topics

          • javascript

            JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

          • web

            Some thing interesting about web. New door for the world.

          • server

            A server is a program made to process requests and deliver data to clients.

          • Machine learning

            Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

          • Game

            Some thing interesting about game, make everyone happy.

          Recommend Org

          • Facebook photo Facebook

            We are working to build community through open source technology. NB: members must have two-factor auth.

          • Microsoft photo Microsoft

            Open source projects and samples from Microsoft.

          • Google photo Google

            Google ❤️ Open Source for everyone.

          • D3 photo D3

            Data-Driven Documents codes.