2023-03-30 14:01:59 +02:00
|
|
|
---
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: ansible
|
|
|
|
|
|
|
|
|
|
steps:
|
2023-03-30 14:13:35 +02:00
|
|
|
- name: yaml lint
|
|
|
|
|
image: cytopia/yamllint:alpine
|
|
|
|
|
commands:
|
2023-03-30 14:28:10 +02:00
|
|
|
- yamllint -c .yamllint.yml .
|
2023-03-30 14:13:35 +02:00
|
|
|
|
|
|
|
|
- name: ansible lint
|
|
|
|
|
image: cytopia/ansible-lint:alpine
|
|
|
|
|
commands:
|
2023-03-30 14:32:08 +02:00
|
|
|
- ansible-lint .
|
2023-03-30 14:13:35 +02:00
|
|
|
|
|
|
|
|
- name: ansible apply
|
2023-03-30 15:47:41 +02:00
|
|
|
image: cytopia/ansible:alpine
|
|
|
|
|
volumes:
|
|
|
|
|
- name: ssh-keys
|
|
|
|
|
path: /root/.ssh/
|
|
|
|
|
commands:
|
|
|
|
|
- ansible-playbook -i inventory/hosts site.yml --private-key /root/.ssh/id_ed25519
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: ssh-keys
|
|
|
|
|
host:
|
|
|
|
|
path: /home/ansible/.ssh/
|