Skip to content

Commit

Permalink
Allow setting ansible ssh pass
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 committed Jul 25, 2023
1 parent afbea2f commit b50476c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@ resource "ansible_host" "default" {
variables = {
ansible_host = coalesce(var.ansible_host, var.network_interfaces[0].ip, var.domain != "" ? "${var.hostname}.${var.domain}" : var.hostname)
ansible_user = var.ansible_user
ansible_ssh_pass = var.ansible_ssh_pass
}
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ variable "ansible_user" {
default = "root"
}

variable "ansible_ssh_pass" {
type = string
default = ""
}

variable "ansible_groups" {
type = list(string)
default = [
Expand Down

0 comments on commit b50476c

Please sign in to comment.