ci-update #14

Merged
noah.knegt merged 2 commits from ci-update into master 2023-03-31 10:42:44 +02:00

View File

@@ -15,7 +15,7 @@ steps:
- ansible-lint . - ansible-lint .
- name: setup ssh key - name: setup ssh key
image: cytopia/ansible:latest-tools image: cytopia/ansible:latest-infra
commands: commands:
- mkdir -p /root/.ssh - mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_ed25519 - echo "$SSH_KEY" > /root/.ssh/id_ed25519
@@ -34,9 +34,10 @@ steps:
- master - master
- name: ansible apply - name: ansible apply
image: cytopia/ansible:latest-tools image: cytopia/ansible:latest-infra
commands: commands:
- ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519 - ssh-add /root/.ssh/id_ed25519
- ansible-playbook -i inventory/hosts.yml site.yml
volumes: volumes:
- name: ssh_key - name: ssh_key
path: /root/.ssh path: /root/.ssh