渡辺です。今年の冬は暖かすぎて札幌は春の気配ですね。 AutoScaling時にAnsibleで環境構築を行うでは、Auto ScalingのLifecycle Hookを利用したAnsibleによる環境構築を紹介しました。 今回は対象がWindows Serverであった場合にAnsibleでスクリプトを実行する手順について紹介します。 これらを組み合わせればWindows ServerのAuto Scalingでもフル自動化の扉が開くでしょう! AnsibleとWindowsリモート管理 基本的にAnsibleは、対象となるサーバにSSHでアクセスして処理(環境構築)を実行します。 Windows Serverでは、デフォルトでSSH接続ができないため、代替手段が必要になります。 代替手段として使われるのは、Windowsリモート管理(WinRM)です。 Windows Serverで
![AnsibleでWindows ServerにPowershellスクリプトを実行する | DevelopersIO](https://cdn-ak-scissors.b.st-hatena.com/image/square/fdeea77d7391e5f365375c2d96653dc98a232359/height=288;version=1;width=512/https%3A%2F%2Fdevio2023-media.developers.io%2Fwp-content%2Fuploads%2F2014%2F09%2Fansible.png)