haxible-0.1.0.0: Ansible interpreter powered by Haxl
Safe HaskellSafe-Inferred
LanguageGHC2021

Haxible.Connection

Description

This module contains the logic to interact with the python wrapper

Synopsis

Documentation

newtype Connections Source #

A connection run converts a TaskCall into a (result code, result value)

Constructors

Connections 

Fields

data TaskCall Source #

Constructors

TaskCall 

Fields

  • playAttrs :: Vars

    The playbook attributes, such as hosts or become.

  • module_ :: Text

    The module name for debug purpose, it is more convenient to access than reading it from the moduleObject.

  • moduleObject :: Value

    The task object, e.g `{"file": {"path": "etczuul"}}`.

  • taskAttrs :: Vars

    Extra task attributes, such as "when"

  • taskVars :: Vars

    Extra task vars, e.g. role defaults

Instances

Instances details
Generic TaskCall Source # 
Instance details

Defined in Haxible.Connection

Associated Types

type Rep TaskCall :: Type -> Type #

Methods

from :: TaskCall -> Rep TaskCall x #

to :: Rep TaskCall x -> TaskCall #

Show TaskCall Source # 
Instance details

Defined in Haxible.Connection

Eq TaskCall Source # 
Instance details

Defined in Haxible.Connection

Hashable TaskCall Source # 
Instance details

Defined in Haxible.Connection

Methods

hashWithSalt :: Int -> TaskCall -> Int #

hash :: TaskCall -> Int #

type Rep TaskCall Source # 
Instance details

Defined in Haxible.Connection

withConnections :: Int -> FilePath -> (Connections -> IO ()) -> IO () Source #

Creates the Python interpreters.