Giter VIP home page Giter VIP logo

drone-ansible's Introduction

drone-ansible

go-ci

Drone plugin to provision infrastructure with Ansible. For the usage information and a listing of the available options please take a look at the docs.

This is a Fork of the drone-ansible

The following changes have been made (or are in progress):

  • Updated Ansible to the latest version
  • Build and Publish x86 Images to Github Docker Registry
  • Use GoReleaser to manage builds
  • Update dependencies
  • Additional Image Builds for ARM
  • Improve SSH Key Reading

Documentation

Documentation Copied from Plugin Page

Workflow Examples

Drone

kind: pipeline
name: default

steps:
- name: check ansible syntax
  image: ghcr.io/hay-kot/drone-ansible:latest
  settings:
    playbook: ansible/playbook.yml
    galaxy: ansible/requirements.yml
    inventory: ansible/inventory
    syntax_check: true

Harness

pipeline:
  stages:
    - identifier: default
      name: default
      steps:
        - identifier: check ansible syntax
          name: check ansible syntax
          spec:
            connectorRef: account.docker
            image: ghcr.io/hay-kot/drone-ansible:latest
            type: Plugin
            settings:
              playbook: ansible/playbook.yml
              galaxy: ansible/requirements.yml
              inventory: ansible/inventory
              syntax_check: true

Configuration Properties

become (boolean): run operations with become

  • Default: False
  • Required: False
  • Secret: False

become_method (string): privilege escalation method to use

  • Default:
  • Required: False
  • Secret: False

become_user (string): run operations as this user

  • Default:
  • Required: False
  • Secret: False

check (boolean): run a check, do not apply any changes

  • Default: False
  • Required: False
  • Secret: False

connection (string): connection type to use

  • Default:
  • Required: False
  • Secret: False

diff (boolean): show the differences, may print secrets

  • Default: False
  • Required: False
  • Secret: False

extra_vars (string): set additional variables as key=value e.g. 'key1=value1,[key2=value2]'

  • Default:
  • Required: False
  • Secret: False

flush_cache (boolean): clear the fact cache for every host in inventory

  • Default: False
  • Required: False
  • Secret: False

force_handlers (boolean): run handlers even if a task fails

  • Default: False
  • Required: False
  • Secret: False

forks (number): specify number of parallel processes to use

  • Default: 5
  • Required: False
  • Secret: False

galaxy (string): path to galaxy requirements

  • Default:
  • Required: False
  • Secret: False

galaxy_force (boolean): force overwriting an existing role or collection

  • Default: True
  • Required: False
  • Secret: False

inventory (string): specify (multiple) inventory host path(s) e.g. 'path1,[path2]'

  • Default:
  • Required: False
  • Secret: False

limit (string): further limit selected hosts to an additional pattern

  • Default:
  • Required: False
  • Secret: False

list_hosts (boolean): outputs a list of matching hosts

  • Default: False
  • Required: False
  • Secret: False

list_tags (boolean): list all available tags

  • Default: False
  • Required: False
  • Secret: False

list_tasks (boolean): list all tasks that would be executed

  • Default: False
  • Required: False
  • Secret: False

module_path (string): prepend paths to module library e.g. 'path1,[path2]'

  • Default:
  • Required: False
  • Secret: False

playbook (string): list of playbooks to apply e.g. 'playbook1,[playbook2]'

  • Default:
  • Required: False
  • Secret: False

private_key (string): use this key to authenticate the ssh connection

  • Default:
  • Required: False
  • Secret: True

requirements (string): path to python requirements

  • Default:
  • Required: False
  • Secret: False

scp_extra_args (string): specify extra arguments to pass to scp only

  • Default:
  • Required: False
  • Secret: False

sftp_extra_args (string): specify extra arguments to pass to sftp only

  • Default:
  • Required: False
  • Secret: False

ssh_common_args (string): specify common arguments to pass to sftp/scp/ssh

  • Default:
  • Required: False
  • Secret: False

ssh_extra_args (string): specify extra arguments to pass to ssh only

  • Default:
  • Required: False
  • Secret: False

skip_tags (array): only run plays and tasks whose tags do not match

  • Default:
  • Required: False
  • Secret: False

start_at_task (string): start the playbook at the task matching this name

  • Default:
  • Required: False
  • Secret: False

syntax_check (boolean): perform a syntax check on the playbook

  • Default: False
  • Required: False
  • Secret: False

tags (array): only run plays and tasks tagged with these values

  • Default:
  • Required: False
  • Secret: False

timeout (number): override the connection timeout in seconds

  • Default: 0
  • Required: False
  • Secret: False

user (string): connect as this user

  • Default:
  • Required: False
  • Secret: False

vault_id (string): the vault identity to use

  • Default:
  • Required: False
  • Secret: False

vault_password (string): the vault password to use

  • Default:
  • Required: False
  • Secret: True

verbose (number): level of verbosity, 0 up to 4

  • Default: 0
  • Required: False
  • Secret: False

drone-ansible's People

Contributors

alexrjs avatar andviro avatar appleboy avatar darkmattercoder avatar hay-kot avatar hrenard avatar kevinanew avatar mwl avatar olanystrom avatar renovate-bot avatar tboerger avatar techknowlogick avatar thomasf avatar wbh1 avatar xoxys avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

matnow

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.