mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-14 17:30:18 +01:00
7e4a16e167
- Restructured when and asserts - Standardise molecule call, add systemd config
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
|
|
dependency:
|
|
name: galaxy
|
|
driver:
|
|
name: docker
|
|
lint: |
|
|
set -e
|
|
yamllint -s .
|
|
ansible-lint --exclude molecule/
|
|
platforms:
|
|
- name: node1
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
privileged: true
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
networks:
|
|
- name: k3snet
|
|
- name: node2
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
privileged: true
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
networks:
|
|
- name: k3snet
|
|
- name: node3
|
|
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
privileged: true
|
|
pre_build_image: ${MOLECULE_PREBUILT:-true}
|
|
networks:
|
|
- name: k3snet
|
|
provisioner:
|
|
name: ansible
|
|
options:
|
|
verbose: true
|
|
verifier:
|
|
name: ansible
|