ansible with drone ci #1

Merged
chris merged 18 commits from development into main 2023-11-17 00:48:11 -05:00
Showing only changes of commit c3a94b3046 - Show all commits

View File

@ -10,8 +10,13 @@ steps:
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
ANSIBLE_INVENTORY:
from_secret: ansible_inventory
commands: commands:
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml - ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
- ansible-lint --offline $DRONE_WORKSPACE - ansible-lint --offline $DRONE_WORKSPACE
- ansible-playbook -v -i 127.0.0.1, $DRONE_WORKSPACE/hello.yml - ansible-playbook -v -i $ANSIBLE_INVENTORY $DRONE_WORKSPACE/hello.yml
- echo "GITEA_TOKEN=$GITEA_TOKEN" - echo "GITEA_TOKEN=$GITEA_TOKEN"
when:
branch:
- development