This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION=5.9.29 | |
wget https://dl.ubnt.com/unifi/$VERSION/UniFi.unix.zip -O /tmp/UniFi-$VERSION.unix.zip | |
service unifi stop | |
ls -lah /opt/unifi/ | |
rm -rf /opt/unifi/ | |
unzip /tmp/UniFi-$VERSION.unix.zip -d /opt/ | |
mv /opt/UniFi /opt/unifi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<powershell> | |
#Requires -Version 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
from ansible.plugins.connection.ssh import Connection as SSHConnection | |
DOCUMENTATION = ''' | |
connection: packer | |
short_description: ssh based connections for powershell via packer | |
description: | |
- This connection plugin allows ansible to communicate to the target packer machines via ssh based connections for powershell. |