diff --git a/README.md b/README.md index e371961..5dfd6c2 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,7 @@ Use `inventory_example.yml`, `inventory_libvirt_example.yml`, `vars_example.yml` - `vm_dns` and `vm_dns_search` accept comma-separated strings or YAML lists. - `hypervisor` determines which backend-specific roles run. - Guest tools are installed based on `hypervisor`: `qemu-guest-agent` for `libvirt`/`proxmox`, `open-vm-tools` for `vmware`, otherwise none. +- Molecule is scaffolded with a delegated driver and a no-op converge for lint-only validation. - With LUKS enabled on Debian/Ubuntu and RHEL-based systems, provisioning uses an ESP (50 MiB), a separate `/boot` (1 GiB, same as `filesystem` unless `btrfs` uses ext4 on Debian/Ubuntu or xfs on RHEL-based), and the encrypted root; adjust sizes via diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml new file mode 100644 index 0000000..1782a42 --- /dev/null +++ b/molecule/default/converge.yml @@ -0,0 +1,8 @@ +--- +- name: Molecule converge placeholder + hosts: all + gather_facts: false + tasks: + - name: Skip destructive provisioning in Molecule + ansible.builtin.debug: + msg: "Molecule scenario is lint-only; run main.yml against disposable hosts." diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml new file mode 100644 index 0000000..4617c0b --- /dev/null +++ b/molecule/default/molecule.yml @@ -0,0 +1,19 @@ +--- +dependency: + name: galaxy +driver: + name: delegated +platforms: + - name: localhost +provisioner: + name: ansible + playbooks: + converge: converge.yml + inventory: + host_vars: + localhost: + ansible_connection: local + lint: + name: ansible-lint +verifier: + name: ansible diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml new file mode 100644 index 0000000..8001567 --- /dev/null +++ b/molecule/default/verify.yml @@ -0,0 +1,9 @@ +--- +- name: Molecule verify placeholder + hosts: all + gather_facts: false + tasks: + - name: Verify placeholder + ansible.builtin.assert: + that: + - true