0
0
mirror of https://github.com/thegeeklab/wp-ansible.git synced 2024-11-24 02:30:40 +00:00
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
      syntax_check: true

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=playbook.yml \
  -e PLUGIN_INVENTORY=inventory.yml \
  -e PLUGIN_SYNTAX_CHECK=true \
  -v $(pwd)/testdata:/build:z \
  -w /build \
  thegeeklab/wp-ansible