dummy-module: don't set become_user for inventory

Causes `become_user` specified in tasks to be ignored.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-02-28 16:49:37 +01:00
parent c4436f71f4
commit 01e129694b
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
4 changed files with 6 additions and 5 deletions

View File

@ -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:

View File

@ -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)
}
}

View File

@ -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

View File

@ -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