diff --git a/ansible/prater.yml b/ansible/prater.yml index d40d1b0..7abd702 100644 --- a/ansible/prater.yml +++ b/ansible/prater.yml @@ -43,6 +43,7 @@ - name: Deploy prater Windows beacon nodes become: true + become_user: 'admin' hosts: nimbus-prater-windows fact_path: 'C:/ansible/facts.d' roles: diff --git a/modules/dummy-module/main.tf b/modules/dummy-module/main.tf index 3e51132..e1d0092 100644 --- a/modules/dummy-module/main.tf +++ b/modules/dummy-module/main.tf @@ -35,8 +35,8 @@ resource "ansible_host" "host" { stage = local.stage ansible_host = each.value /* Optional extra Ansible variables necessary for Windows */ - ansible_shell_type = (var.shell_type == null ? null : var.shell_type) - ansible_become = (var.become == null ? null : var.become) + ansible_shell_type = (var.shell_type == null ? null : var.shell_type) + ansible_become_method = (var.become_method == null ? null : var.become_method) } } diff --git a/modules/dummy-module/variables.tf b/modules/dummy-module/variables.tf index 1919f77..301b122 100644 --- a/modules/dummy-module/variables.tf +++ b/modules/dummy-module/variables.tf @@ -59,7 +59,7 @@ variable "shell_type" { default = null } -variable "become" { +variable "become_method" { description = "Whether Ansible should become a user." type = string default = null diff --git a/prater.tf b/prater.tf index e2bab7a..02562e8 100644 --- a/prater.tf +++ b/prater.tf @@ -100,8 +100,8 @@ module "nimbus_nodes_prater_windows" { domain = var.domain /* Windows */ - become = false - shell_type = "powershell" + become_method = "runas" + shell_type = "powershell" ips = [ "65.21.233.67", # windows-01.he-eu-hel1.nimbus.prater