mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-02-20 17:38:08 +00:00
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:
parent
c4436f71f4
commit
01e129694b
@ -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:
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user