GithubHelp home page GithubHelp logo

stephenmoloney / ansible-role-asdf-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trallnag/ansible-role-asdf-plugin

0.0 2.0 0.0 485 KB

Ansible role that installs any asdf plugin and package

License: ISC License

JavaScript 100.00%

ansible-role-asdf-plugin's Introduction

primary galaxy quality downloads

Ansible Role trallnag.asdf_plugin

Ansible role that installs any asdf plugin and package.

This role does not install asdf itself. It must already be available on the target.

Available on Ansible Galaxy.

Scope

  • Installing a single asdf plugin.
  • Installing multiple versions of a package managed by a plugin.
  • Everything supported by asdf should be configurable but also optional.
  • No requirments except asdf itself.

Special Requirements

Asdf must be available on the target.

Special Dependencies

None.

Role Variables

Check out meta/argument_specs.yaml.

Examples

Here is a minimal Playbook:

- name: Playbook
  hosts: myhost
  remote_user: myuser
  vars:
    rolespec_validate: true
  roles:
    - name: trallnag.asdf_plugin
      vars:
        asdf_plugin_name: gopass
        asdf_plugin_git_url: https://github.com/trallnag/asdf-gopass.git
        asdf_plugin_git_ref: refs/tags/v1.0.1
        asdf_plugin_package_versions: ['1.12.7', '1.12.8']
        asdf_plugin_package_version_global: '1.12.8'

And here packaged within a small wrapper role:

- name: Install Terraform with asdf
  ansible.builtin.import_role:
    name: trallnag.asdf_plugin
  vars:
    asdf_plugin_name: terraform
    asdf_plugin_git_url: https://github.com/asdf-community/asdf-hashicorp.git
    asdf_plugin_package_versions: ['1.0.9']
    asdf_plugin_package_version_global: '1.0.9'

- name: Setup completion for Bash
  ansible.builtin.blockinfile:
    path: ~/.bashrc
    marker: '# {mark} :: ANSIBLE MANAGED BLOCK :: {{ role_name }}'
    block: |
      complete -C terraform terraform

ansible-role-asdf-plugin's People

Contributors

dependabot[bot] avatar semantic-release-bot avatar trallnag avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.