2021-05-02 22:16:37 +07:00
|
|
|
variable "directory" {
|
2021-05-02 21:58:33 +07:00
|
|
|
description = "Path to Ansible directory"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2021-05-02 22:16:37 +07:00
|
|
|
variable "playbook" {
|
2021-05-02 21:58:33 +07:00
|
|
|
description = "Path to Ansible playbook, relative to Ansible directory"
|
|
|
|
type = string
|
|
|
|
default = "main.yml"
|
|
|
|
}
|
|
|
|
|
2021-05-02 22:16:37 +07:00
|
|
|
variable "user" {
|
2021-05-02 21:58:33 +07:00
|
|
|
description = "User to connect as"
|
|
|
|
type = string
|
|
|
|
default = "ubuntu"
|
|
|
|
}
|
|
|
|
|
2021-05-02 22:16:37 +07:00
|
|
|
variable "inventory" {
|
2021-05-02 21:58:33 +07:00
|
|
|
description = "List of hosts for Ansible to run against"
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2021-05-02 22:16:37 +07:00
|
|
|
variable "private_key" {
|
2021-05-02 21:58:33 +07:00
|
|
|
description = "Private key file to authenticate the connection"
|
2021-05-02 22:16:37 +07:00
|
|
|
type = string
|
2021-05-02 21:58:33 +07:00
|
|
|
}
|