Compare commits
3 commits
master
...
woodpecker
Author | SHA1 | Date | |
---|---|---|---|
1da28ab912 | |||
93cd9ba5c5 | |||
5910f6720d |
1 changed files with 3 additions and 3 deletions
|
@ -1,18 +1,18 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
branch: woodpecker_test
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: local/builder
|
||||
|
||||
commands:
|
||||
- ansible-playbook --help
|
||||
- mkdir /root/.ssh && chmod 0700 /root/.ssh
|
||||
- echo $SSH_KEY | base64 --decode >> /root/.ssh/id_rsa
|
||||
- chmod 0600 /root/.ssh/id_rsa
|
||||
- cd /ansible
|
||||
- cd ansible
|
||||
- touch ./.vault_password
|
||||
- echo $VAULT_PASSWORD >> ./.vault_password
|
||||
- ansible-playbook -i homelab.ini --extra-vars "ansible_sudo_pass=$ansible_password" setup.yml
|
||||
secrets: [ SSH_KEY, ansible_password, VAULT_PASSWORD ]
|
||||
|
||||
|
|
Loading…
Reference in a new issue