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

68 lines
2.1 KiB
Markdown
Raw Normal View History

2023-12-22 09:10:39 +00:00
---
title: wp-ansible
---
[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/wp-ansible/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/wp-ansible)
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/wp-ansible)
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/wp-ansible)
[![Go Report Card](https://goreportcard.com/badge/github.com/thegeeklab/wp-ansible)](https://goreportcard.com/report/github.com/thegeeklab/wp-ansible)
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/wp-ansible)](https://github.com/thegeeklab/wp-ansible/graphs/contributors)
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/wp-ansible)
2024-01-06 13:46:00 +00:00
[![License: Apache-2.0](https://img.shields.io/github/license/thegeeklab/wp-ansible)](https://github.com/thegeeklab/wp-ansible/blob/main/LICENSE)
2023-12-22 09:10:39 +00:00
Woodpecker CI plugin to manage infrastructure with [Ansible](https://github.com/ansible/ansible).
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
{{< toc >}}
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
## Usage
```YAML
steps:
- name: ansible
2024-01-16 13:33:56 +00:00
image: quay.io/thegeeklab/wp-ansible
2023-12-22 09:10:39 +00:00
settings:
playbook: deployment/playbook.yml
private_key:
from_secret: ansible_private_key
inventory: deployment/hosts.yml
syntax_check: true
2023-12-22 09:10:39 +00:00
```
### Parameters
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
{{< propertylist name=wp-ansible.data sort=name >}}
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
## Build
Build the binary with the following command:
```Shell
make build
```
Build the Container image with the following command:
```Shell
docker build --file Containerfile.multiarch --tag thegeeklab/wp-ansible .
```
## Test
```Shell
2024-03-12 19:43:38 +00:00
docker run --rm \
-e PLUGIN_PLAYBOOK=playbook.yml \
-e PLUGIN_INVENTORY=inventory.yml \
2024-03-12 19:43:38 +00:00
-e PLUGIN_SYNTAX_CHECK=true \
-v $(pwd)/testdata:/build:z \
2024-03-12 19:43:38 +00:00
-w /build \
thegeeklab/wp-ansible
2023-12-22 09:10:39 +00:00
```