fixed pwsh deploy
updated hosts template to support sudo password field
This commit is contained in:
parent
7efd075257
commit
b504748e0d
@ -5,6 +5,8 @@
|
|||||||
ansible_user=ansible
|
ansible_user=ansible
|
||||||
ansible_connection=ssh
|
ansible_connection=ssh
|
||||||
ansible_password=
|
ansible_password=
|
||||||
|
ansible_become_method=sudo
|
||||||
|
ansible_become_pass=
|
||||||
|
|
||||||
[windows]
|
[windows]
|
||||||
192.168.0.2
|
192.168.0.2
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check if PowerShell is installed
|
- name: Check if PowerShell is installed
|
||||||
#register: command_result
|
|
||||||
failed_when: "'Failed' PowerShell is already installed."
|
failed_when: "'Failed' PowerShell is already installed."
|
||||||
apt:
|
apt:
|
||||||
name: powershell
|
name: powershell
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Install Microsoft GPG Key
|
- name: Install Microsoft GPG Key
|
||||||
get_url:
|
get_url:
|
||||||
|
Loading…
Reference in New Issue
Block a user