Change become method to sudo for Linux, runas for Windows
This commit is contained in:
parent
f5456a7f57
commit
9a2e67b2e1
2 changed files with 2 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
set_fact:
|
||||
ansible_shell_type: powershell
|
||||
ansible_connection: ssh
|
||||
ansible_become_method: runas
|
||||
ansible_become_flags: ""
|
||||
ansible_become_user: "{{ windows_user }}"
|
||||
logon_type: interactive
|
||||
|
@ -28,7 +29,7 @@
|
|||
|
||||
- name: Set connection parameters and paths for Ubuntu
|
||||
set_fact:
|
||||
ansible_become_user: root
|
||||
ansible_become_method: sudo
|
||||
ansible_become_flags: ""
|
||||
ansible_ssh_extra_args: '-o ForwardX11=yes'
|
||||
installers: /mnt/ucilnice_d/install
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
- name: Install software
|
||||
hosts: '*'
|
||||
become: true
|
||||
become_method: runas
|
||||
vars_files:
|
||||
- vars/software_keys.yml
|
||||
roles:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue