#[non_exhaustive]pub struct Access<'a> {
pub linux: Vars,
pub windows: Vars,
pub host: Box<dyn Fn(&Host<'_>) -> Vars + 'a>,
}Expand description
How a target reaches its hosts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.linux: Vars[linux:vars], before the ansible_become=true every Linux host gets.
windows: Vars[windows:vars], written when a Windows host exists.
host: Box<dyn Fn(&Host<'_>) -> Vars + 'a>Each host’s own connection variables, after its ansible_host.
Implementations§
Source§impl Access<'static>
impl Access<'static>
Source§impl<'a> Access<'a>
impl<'a> Access<'a>
Sourcepub fn proxmox(windows_password: &str) -> Access<'a>
pub fn proxmox(windows_password: &str) -> Access<'a>
Proxmox: the isoloom user cloud-init creates on each Linux VM, with the controller’s
key; on a Windows VM, the isoloom administrator its set-up makes, whose password is
windows_password (a Terraform expression, as the module writes it), over WinRM.
Sourcepub fn cloud(
linux_user: impl Fn(&str) -> String + 'a,
windows_password: &str,
auth: WinrmAuth,
) -> Access<'a>
pub fn cloud( linux_user: impl Fn(&str) -> String + 'a, windows_password: &str, auth: WinrmAuth, ) -> Access<'a>
A cloud: each Linux VM as its image’s user (linux_user of its OS) with the
controller’s key; Windows over plain-HTTP WinRM as isoloom, whose password is
windows_password (a Terraform expression, as the module writes it), authenticated as
the cloud’s images allow (auth, as Terraform’s own connection does).