Ich versuche, einen benutzerdefinierten HBA Eintrag hinzufügen die Host-Maschine zu ermöglichen, zu einer PostgreSQL-Instanz läuft auf dem Vagabunden-Box zu verbinden:Kann nicht Array von Hashes ansible.host_vars in Vagrant des ansible_local provisioner Pass verschachtelt
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.galaxy_role_file = "provisioning/requirements.yml"
ansible.host_vars = {
"default" => {
"postgresql_listen_addresses" => "*",
"postgresql_pg_hba_custom" => [{
"type" => "host",
"database" => "vagrant",
"user" => "vagrant",
"address" => "samenet",
"method" => "password"
}],
"database_name" => "vagrant",
"database_username" => "vagrant",
"database_password" => "password",
"node_environment" => "development"
}
}
end
ich erhalte die Fehlermeldung:
AnsibleUndefinedVariable: 'unicode object' has no attribute 'type'
Wie kann ich einen verschachtelten (komplexen) Konfigurationswert für ein Host-Variable rechts in meinem Vagrantfile passieren?
Diese in der Dokumentation sein sollte. – Starx