Files
a13labs.infra/ansible/roles/virtualization/molecule/default/molecule.yml
T

56 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-24 15:19:51 +02:00
---
dependency:
name: galaxy
enabled: true
driver:
name: vagrant
provider:
name: libvirt
provisioner:
name: ansible
config_options:
defaults:
callbacks_enabled: profile_tasks
log: true
inventory:
group_vars:
all:
2024-09-28 23:12:19 +02:00
geoip_ssh_allowed_zones:
2024-09-24 15:19:51 +02:00
- "ALL"
2024-09-28 23:12:19 +02:00
geoip_ssh_allowed_networks:
2024-09-24 15:19:51 +02:00
- "0.0.0.0/0"
2024-09-28 23:12:19 +02:00
host_vars: {}
2024-09-24 15:19:51 +02:00
platforms:
- name: jammy
box: "jaredeh/ubuntu2204-server"
box_version: "0.1.1"
interfaces:
- auto_config: true
network_name: private_network
type: dhcp
instance_raw_config_args:
# use single quotes to avoid YAML parsing as dict due to ':'
- 'vm.synced_folder ".", "/vagrant", type: "rsync"'
# Run 'uname' a provisionning step **needs 'provision: true' to work**
- 'vm.provision :shell, inline: "uname"'
# Dictionary of `config` options. Note that string values need to be
# explicitly enclosed in quotes.
config_options:
vm.boot_timeout: 600
ssh.keep_alive: yes
2024-09-28 23:12:19 +02:00
ssh.remote_user: "ansible"
2024-09-24 15:19:51 +02:00
synced_folder: true
provider_options:
2024-09-28 23:12:19 +02:00
video_type: "vga"
host: "localhost"
uri: "qemu:///system"
2024-09-24 15:19:51 +02:00
nested: true
memory: 4096
verifier:
name: ansible
lint: |
set -e
ansible-lint
scenario:
2024-09-28 23:12:19 +02:00
name: default