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: