Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbh-tech/ansible-deployment-action
A GitHub Action that facilitates Ansible-based deployments to AWS EKS clusters.
https://github.com/gbh-tech/ansible-deployment-action
action ansible aws deployment eks env github kubernetes utlities
Last synced: about 2 months ago
JSON representation
A GitHub Action that facilitates Ansible-based deployments to AWS EKS clusters.
- Host: GitHub
- URL: https://github.com/gbh-tech/ansible-deployment-action
- Owner: gbh-tech
- License: mit
- Created: 2024-02-16T18:35:46.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-26T20:53:48.000Z (9 months ago)
- Last Synced: 2024-03-26T21:42:36.678Z (9 months ago)
- Topics: action, ansible, aws, deployment, eks, env, github, kubernetes, utlities
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Ansible Deployment Action
## Content
- [Overview](#overview)
- [Usage](#usage)
- [Example usage](#example-usage)## Overview
This GitHub Action facilitates Ansible deployments, allowing you to run Ansible playbooks with ease. It provides options to configure playbook paths, AWS regions, run modes, and secrets for secure deployment.
## Usage
See [action.yml](action.yml).
``` yaml
- uses: actions/[email protected]
with:
# Optional. Specifies the path to the playbook
playbook_path: 'playbooks'# The name of the playbook
playbook_name: ''# Optional. Set to true to run Ansible playbooks in --check mode
dry_run: false# Optional. Set no_log to 'false' to let tasks log all output
# WARNING! If you set no_log to 'false', sensitive credentials may be log
# into the console. Default is 'true'
no_log: true# Specifies the AWS region name for configuration
aws_region: ''# A comma-separated string of tags to filter which tasks to run in the playbook
# The order of the tags is important
# Example: 'system,deployment,nginx,certbot'
ansible_tags: ''# The ansible working directory
workdir: 'ansible'# Optional. AWS service account access key
aws_access_key_id: ''# Ensure the following values are treated as secrets!
# Optional. Ansible vault password to decrypt secrets
ansible_vault_password: ''# Optional. AWS service account secret access key
aws_secret_access_key: ''
```### Example usage
```yaml
- uses: gbh-tech/[email protected]
with:
playbook_path: 'playbooks'
playbook_name: 'stage.yaml'
workdir: 'ansible'
dry_run: true
no_log: true
aws_region: 'us-east-1'
ansible_vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
aws_access_key_id: ${{ vars.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ansible_tags: >-
auth,
env-vars,
info
```