rabbitmq-service
Example:
# Install RabbitMQ service - rabbitmq-service
Description
Install RabbitMQ message broker service.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | 3.7.19 | The version of rabbitmq. |
Examples
Example 1
Install RabbitMQ service
Code
- rabbitmq-service
Code
doc: short_help: Install RabbitMQ message broker service. examples: - title: Install RabbitMQ service args: version: doc: short_help: The version of rabbitmq. type: string required: true default: 3.7.19 frecklets: - frecklet: name: geerlingguy.rabbitmq type: ansible-role task: become: true include-type: import vars: rabbitmq_version: '{{:: version ::}}'
frecklecute --community rabbitmq-service --help Usage: frecklecute rabbitmq-service [OPTIONS] Install RabbitMQ message broker service. Options: --version VERSION The version of rabbitmq. --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.rabbitmq_service.RabbitmqService # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class RabbitmqService(AutoPycklet): """Install RabbitMQ message broker service. Args: version: The version of rabbitmq. """ FRECKLET_ID = "rabbitmq-service" version: str = None def __post_init__(self): super(RabbitmqService, self).__init__(var_names=["version"]) frecklet_class = RabbitmqService
# -*- coding: utf-8 -*- # # module path: pycklets.rabbitmq_service.RabbitmqService # from pyckles import AutoPycklet class RabbitmqService(AutoPycklet): """Install RabbitMQ message broker service. Args: version: The version of rabbitmq. """ FRECKLET_ID = "rabbitmq-service" def __init__(self, version="3.7.19"): super(RabbitmqService, self).__init__(var_names=["version"]) self._version = version @property def version(self): return self._version @version.setter def version(self, version): self._version = version frecklet_class = RabbitmqService