mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 00:08:02 +01:00
f38ededa6d
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5.2.0...v5.3.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
32 lines
1,007 B
YAML
32 lines
1,007 B
YAML
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
jobs:
|
|
ansible:
|
|
name: dry-run ansible
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5.3.0
|
|
with:
|
|
python-version: 3
|
|
cache: pip
|
|
check-latest: true
|
|
- name: Run ansible
|
|
env:
|
|
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
|
|
DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
|
|
ANSIBLE_INVENTORY: inventories/github.yaml
|
|
ANSIBLE_VAULT_PASSWORD_FILE: vault.pass
|
|
ANSIBLE_FORCE_COLOR: "true"
|
|
ANSIBLE_ROLES_PATH: "./roles"
|
|
run: |
|
|
echo '${{ secrets.ANSIBLE_VAULT_PASSWORD }}' > $ANSIBLE_VAULT_PASSWORD_FILE
|
|
ls $ANSIBLE_VAULT_PASSWORD_FILE
|
|
export KEY_FILE=$(mktemp)
|
|
echo "${{ secrets.DEPLOY_KEY }}" > $KEY_FILE
|
|
ansible-playbook playbooks/all.yaml --check
|