deb-file-installed

Description

Install a Debian package file.

Variables

Name Type Default Description

deb_file

n/a --

(Absolute) path or url to the deb file. Required

Code

doc:
  short_help: Install a Debian package file.

args:
  deb_file:
    doc:
      short_help: (Absolute) path or url to the deb file.

frecklets:
- frecklet:
    name: apt
    type: ansible-module
    properties:
      idempotent: true
      privileged: true
      internet: "{{:: deb_file | contains('://') ::}}"
    desc:
      short: "{%:: if '://' in deb_file ::%}Download and i{%:: else ::%}I{%:: endif\
        \ ::%}nstall Debian package: {{:: deb_file ::}}"
  task:
    become: true
  vars:
    deb: '{{:: deb_file ::}}'
frecklecute deb-file-installed --help

Usage: frecklecute deb-file-installed [OPTIONS]

  Install a Debian package file.

Options:
  --deb-file DEB_FILE  (Absolute) path or url to the deb file.  [required]
  --help               Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.deb_file_installed.DebFileInstalled
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class DebFileInstalled(AutoPycklet):
    """Install a Debian package file.

       Args:
         deb_file: (Absolute) path or url to the deb file.

    """

    FRECKLET_ID = "deb-file-installed"

    deb_file: str = None


    def __post_init__(self):
        super(DebFileInstalled, self).__init__(var_names=["deb_file"])


frecklet_class = DebFileInstalled
# -*- coding: utf-8 -*-


#
# module path: pycklets.deb_file_installed.DebFileInstalled
#


from pyckles import AutoPycklet

class DebFileInstalled(AutoPycklet):
    """Install a Debian package file.

       Args:
         deb_file: (Absolute) path or url to the deb file.

    """

    FRECKLET_ID = "deb-file-installed"

    def __init__(self, deb_file=None):

        super(DebFileInstalled, self).__init__(var_names=["deb_file"])
        self._deb_file = deb_file

    @property
    def deb_file(self):
        return self._deb_file

    @deb_file.setter
    def deb_file(self, deb_file):
        self._deb_file = deb_file



frecklet_class = DebFileInstalled