mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-05 21:33:30 +01:00
f2a3f75f08
as an option, however this is experimental in both K3s and this role.
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
---
|
|
|
|
dependency:
|
|
name: galaxy
|
|
driver:
|
|
name: docker
|
|
lint:
|
|
name: yamllint
|
|
platforms:
|
|
- name: node1
|
|
image: "${MOLECULE_DISTRO:-geerlingguy/docker-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: "${MOLECULE_DISTRO:-geerlingguy/docker-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: "${MOLECULE_DISTRO:-geerlingguy/docker-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
|
|
lint:
|
|
name: ansible-lint
|
|
playbooks:
|
|
prepare: ${MOLECULE_PREPARE_PLAYBOOK:-prepare.yml}
|
|
converge: ${MOLECULE_PLAYBOOK:-playbook.yml}
|
|
verifier:
|
|
name: testinfra
|
|
lint:
|
|
name: flake8
|