wp-ansible/docs/content/_index.md

2.1 KiB

title
wp-ansible

Build Status Docker Hub Quay.io Go Report Card GitHub contributors Source: GitHub License: Apache-2.0

Woodpecker CI plugin to manage infrastructure with Ansible.

{{< toc >}}

Usage

steps:
  - name: ansible
    image: quay.io/thegeeklab/wp-ansible
    settings:
      playbook: deployment/playbook.yml
      private_key:
        from_secret: ansible_private_key
      inventory: deployment/hosts.yml

Parameters

{{< propertylist name=wp-ansible.data sort=name >}}

Build

Build the binary with the following command:

make build

Build the Container image with the following command:

docker build --file Containerfile.multiarch --tag thegeeklab/wp-ansible .

Test

docker run --rm \
  -e PLUGIN_PLAYBOOK=deployment/playbook.yml \
  -e PLUGIN_SYNTAX_CHECK=true \
  -v $(pwd):/build:z \
  -w /build \
  thegeeklab/wp-ansible