test
This commit is contained in:
parent
dba8e70c71
commit
23cafb65e2
2 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,6 @@ image: ansible/ansible-runner
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# from https://docs.gitlab.com/ee/ci/ssh_keys/
|
# 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)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p /root/.ssh
|
- mkdir -p /root/.ssh
|
||||||
|
@ -12,6 +11,7 @@ before_script:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
script:
|
script:
|
||||||
|
# TODO: build image with dependencies installed
|
||||||
- ansible-galaxy collection install ansible.netcommon
|
- ansible-galaxy collection install ansible.netcommon
|
||||||
- pip3 install netaddr
|
- pip3 install netaddr
|
||||||
- ansible-playbook -i config/hosts config/deploy.yml
|
- ansible-playbook -i config/hosts config/deploy.yml
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
---
|
---
|
||||||
- name: reload knot
|
- name: reload knot
|
||||||
ansible.builtin.command:
|
ansible.builtin.command: knotc reload
|
||||||
cmd: knotc reload
|
|
||||||
|
|
Loading…
Reference in a new issue