--- #description: Пресет для тестирования на разных ОС с 12 хостами (Debian + RHEL) # Автор: Сергей Антропов # Сайт: https://devops.org.ru docker_network: labnet generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini" # systemd-ready образы для разных ОС images: debian: "ghcr.io/ansible-community/molecule-ubuntu-systemd:jammy" rhel: "quay.io/centos/centos:stream9-systemd" # Собственные образы AnsibleTemplate alt: "inecs/ansible-lab:alt-linux-latest" astra: "inecs/ansible-lab:astra-linux-latest" rhel: "inecs/ansible-lab:rhel-latest" centos: "inecs/ansible-lab:centos-latest" alma: "inecs/ansible-lab:alma-latest" rocky: "inecs/ansible-lab:rocky-latest" redos: "inecs/ansible-lab:redos-latest" systemd_defaults: privileged: true command: "/sbin/init" volumes: - "/sys/fs/cgroup:/sys/fs/cgroup:ro" tmpfs: ["/run", "/run/lock"] capabilities: ["SYS_ADMIN"] # Описание кластера с разными ОС hosts: # Debian серверы - name: debian1 family: debian groups: [debian, servers, web] - name: debian2 family: debian groups: [debian, servers, web] - name: debian3 family: debian groups: [debian, servers, app] - name: debian4 family: debian groups: [debian, servers, app] # RHEL серверы - name: rhel1 family: rhel groups: [rhel, servers, web] - name: rhel2 family: rhel groups: [rhel, servers, web] - name: rhel3 family: rhel groups: [rhel, servers, app] - name: rhel4 family: rhel groups: [rhel, servers, app] # База данных на разных ОС - name: db-debian family: debian groups: [database, debian, db] - name: db-rhel family: rhel groups: [database, rhel, db] # Load balancer - name: lb-mixed family: debian groups: [loadbalancer, haproxy] publish: ["80:80", "443:443"] # DinD узел для тестирования Docker - name: docker-mixed type: dind groups: [docker, apps] publish: ["8080:8080"]