java-lang-installed

Example:

# Install OpenJDK.
- java-lang-installed

Description

Install OpenJDK on Linux machines.

Currently it's not possible to select a version, this will be fixed later.

Resources

Examples

Example 1

Install OpenJDK.

Code
- java-lang-installed

Code

doc:
  short_help: Install OpenJDK if not already available.
  help: |
    Install OpenJDK on Linux machines.

    Currently it's not possible to select a version, this will be fixed later.
  references:
    geerlingguy.java Ansible role: https://github.com/geerlingguy/ansible-role-java
  examples:
  - title: Install OpenJDK.

#args:
#  java_version:
#    required: false
#    doc:
#      short_help: "The java version."
#    default: "8"
#    cli:
#      param_decls:
#        - --version

meta:
  tags:
  - featured-frecklecutable
  - java
  - language
  - openjdk
  - install

frecklets:
#  - task:
#      msg: "[calculating package name]"
#      command: set_platform_fact
#      type: ansible-module
#      when: ansible_os_family == "Debian"
#    vars:
#      jdk_package_name:
#        Debian: "openjdk-{{:: java_version ::}}-jdk"
#        RedHat: "java-1.{{:: java_version ::}}.0-openjdk"

- task:
    include-type: import
    become: true
  frecklet:
    name: geerlingguy.java
    type: ansible-role
    resources:
      ansible-role:
      - geerlingguy.java
    desc:
      short: installing Java
      references:
        "'geerlingguy.java' Ansible role": https://github.com/geerlingguy/ansible-role-java
    properties:
      idempotent: true
      internet: true
      elevated: true
#    vars:
#      java_packages:
#        - "{{ jdk_package_name }}"
frecklecute java-lang-installed --help

Usage: frecklecute java-lang-installed [OPTIONS]

  Install OpenJDK on Linux machines.

  Currently it's not possible to select a version, this will be fixed later.

Options:
  --help  Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.java_lang_installed.JavaLangInstalled
#


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

@dataclass
class JavaLangInstalled(AutoPycklet):
    """Install OpenJDK on Linux machines.

     Currently it's not possible to select a version, this will be fixed later.

       Args:

    """

    FRECKLET_ID = "java-lang-installed"



    def __post_init__(self):
        super(JavaLangInstalled, self).__init__(var_names=[])


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


#
# module path: pycklets.java_lang_installed.JavaLangInstalled
#


from pyckles import AutoPycklet

class JavaLangInstalled(AutoPycklet):
    """Install OpenJDK on Linux machines.

     Currently it's not possible to select a version, this will be fixed later.

       Args:

    """

    FRECKLET_ID = "java-lang-installed"

    def __init__(self, ):

        super(JavaLangInstalled, self).__init__(var_names=[])



frecklet_class = JavaLangInstalled