From b504748e0dc13dbee53e8318a64d2499fa6e56e8 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 15 Apr 2019 15:19:23 -0700 Subject: [PATCH] fixed pwsh deploy updated hosts template to support sudo password field --- hosts.template | 2 ++ playbook/linux/InstallPowerShellCore.yml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts.template b/hosts.template index 4db46c5..567e261 100644 --- a/hosts.template +++ b/hosts.template @@ -5,6 +5,8 @@ ansible_user=ansible ansible_connection=ssh ansible_password= +ansible_become_method=sudo +ansible_become_pass= [windows] 192.168.0.2 diff --git a/playbook/linux/InstallPowerShellCore.yml b/playbook/linux/InstallPowerShellCore.yml index 7b1699e..a2f2bf9 100644 --- a/playbook/linux/InstallPowerShellCore.yml +++ b/playbook/linux/InstallPowerShellCore.yml @@ -5,11 +5,9 @@ tasks: - name: Check if PowerShell is installed - #register: command_result failed_when: "'Failed' PowerShell is already installed." apt: name: powershell - state: absent - name: Install Microsoft GPG Key get_url: