This commit is contained in:
Hannaeko 2021-06-07 18:55:20 +02:00
parent dba8e70c71
commit 23cafb65e2
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@ image: ansible/ansible-runner
before_script:
# from https://docs.gitlab.com/ee/ci/ssh_keys/
#- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p /root/.ssh
@ -12,6 +11,7 @@ before_script:
deploy:
script:
# TODO: build image with dependencies installed
- ansible-galaxy collection install ansible.netcommon
- pip3 install netaddr
- ansible-playbook -i config/hosts config/deploy.yml

View file

@ -1,4 +1,3 @@
---
- name: reload knot
ansible.builtin.command:
cmd: knotc reload
ansible.builtin.command: knotc reload