apache-service
Example:
# Install Apache webserver. - apache-service
Description
Installs the Apache web server.
This uses the geerlingguy.apache Ansible role to do the heavy lifting.
It's recommended to use the 'webserver-service' frecklet instead of this.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The group apache will run under. |
|
string | -- | The user apache will run under. |
Examples
Example 1
Install Apache webserver.
Code
- apache-service
Code
doc: short_help: Ensures the Apache web server is installed. help: | Installs the Apache web server. This uses the [geerlingguy.apache](https://github.com/geerlingguy/ansible-role-apache) Ansible role to do the heavy lifting. It's recommended to use the 'webserver-service' frecklet instead of this. furter_reading: geerlingguy.apache Ansible role: https://github.com/geerlingguy/ansible-role-apache examples: - title: Install Apache webserver. args: user: type: string required: false doc: short_help: The user apache will run under. group: type: string required: false doc: short_help: The group apache will run under. meta: tags: - webserver - apache - featured-frecklecutable - install frecklets: - task: include-type: import become: true frecklet: type: ansible-role resources: ansible-role: - geerlingguy.apache name: geerlingguy.apache properties: idempotent: true elevated: true internet: true desc: short: install Apache webserver references: "'geerlingguy.apache' Ansible role": https://github.com/geerlingguy/ansible-role-apache vars: apache_user: '{{:: user ::}}' apache_group: '{{:: group ::}}'
frecklecute apache-service --help Usage: frecklecute apache-service [OPTIONS] Installs the Apache web server. This uses the [geerlingguy.apache](https://github.com/geerlingguy/ansible- role-apache) Ansible role to do the heavy lifting. It's recommended to use the 'webserver-service' frecklet instead of this. Options: --group GROUP The group apache will run under. --user USER The user apache will run under. --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.apache_service.ApacheService # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class ApacheService(AutoPycklet): """Installs the Apache web server. This uses the [geerlingguy.apache](https://github.com/geerlingguy/ansible-role-apache) Ansible role to do the heavy lifting. It's recommended to use the 'webserver-service' frecklet instead of this. Args: group: The group apache will run under. user: The user apache will run under. """ FRECKLET_ID = "apache-service" group: str = None user: str = None def __post_init__(self): super(ApacheService, self).__init__(var_names=["group", "user"]) frecklet_class = ApacheService
# -*- coding: utf-8 -*- # # module path: pycklets.apache_service.ApacheService # from pyckles import AutoPycklet class ApacheService(AutoPycklet): """Installs the Apache web server. This uses the [geerlingguy.apache](https://github.com/geerlingguy/ansible-role-apache) Ansible role to do the heavy lifting. It's recommended to use the 'webserver-service' frecklet instead of this. Args: group: The group apache will run under. user: The user apache will run under. """ FRECKLET_ID = "apache-service" def __init__(self, group=None, user=None): super(ApacheService, self).__init__(var_names=["group", "user"]) self._group = group self._user = user @property def group(self): return self._group @group.setter def group(self, group): self._group = group @property def user(self): return self._user @user.setter def user(self, user): self._user = user frecklet_class = ApacheService