--- #description: Пресет для тестирования на разных ОС с 12 хостами (Debian + RHEL) # Автор: Сергей Антропов # Сайт: https://devops.org.ru docker_network: labnet generated_inventory: "{{ molecule_ephemeral_directory }}/inventory/hosts.ini" # systemd-ready образы для разных ОС images: alt: "inecs/ansible-lab:alt-linux-latest" astra: "inecs/ansible-lab:astra-linux-latest" rhel: "inecs/ansible-lab:rhel-latest" centos7: "inecs/ansible-lab:centos7-latest" centos8: "inecs/ansible-lab:centos8-latest" centos9: "inecs/ansible-lab:centos9-latest" alma: "inecs/ansible-lab:alma-latest" rocky: "inecs/ansible-lab:rocky-latest" redos: "inecs/ansible-lab:redos-latest" ubuntu20: "inecs/ansible-lab:ubuntu20-latest" ubuntu22: "inecs/ansible-lab:ubuntu22-latest" ubuntu24: "inecs/ansible-lab:ubuntu24-latest" debian9: "inecs/ansible-lab:debian9-latest" debian10: "inecs/ansible-lab:debian10-latest" debian11: "inecs/ansible-lab:debian11-latest" debian12: "inecs/ansible-lab:debian12-latest" systemd_defaults: privileged: true command: "/sbin/init" volumes: - "/sys/fs/cgroup:/sys/fs/cgroup:rw" tmpfs: ["/run", "/run/lock"] capabilities: ["SYS_ADMIN"] # Описание кластера с разными ОС hosts: # Debian серверы - name: debian1 family: debian12 groups: [debian, servers, web] - name: debian2 family: debian12 groups: [debian, servers, web] - name: debian3 family: debian12 groups: [debian, servers, app] - name: debian4 family: debian12 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: debian12 groups: [database, debian, db] - name: db-rhel family: rhel groups: [database, rhel, db] # Load balancer - name: lb-mixed family: debian12 groups: [loadbalancer, haproxy] publish: ["80:80", "443:443"] # DinD узел для тестирования Docker - name: docker-mixed type: dind groups: [docker, apps] publish: ["8080:8080"]