mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-25 09:00:39 +00:00
2.1 KiB
2.1 KiB
title |
---|
wp-ansible |
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