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
| Copyright 2017 Chris Dent | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, |
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
| --- | |
| tasks: | |
| - name: Check current timezone | |
| shell: timedatectl | grep zone | awk '{ print $3}' | |
| register: current_zone | |
| changed_when: False | |
| notify: | |
| - restart Cron service | |
| - name: Set timezone to {{ timezone }} |
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
| Function GenerateScriptDocumentationInMarkdown { | |
| <# | |
| .Synopsis | |
| Generates documentation for a folder-full of scripts using the integrated Get-Help CMDlets. | |
| .Description | |
| Generates a .markdown documentat for each PS1 script in a folder which has the necessary headers required by Get-Help. Also generates an index document which lists (and links to) all generated documentats. Each file name is preceeded with "script_ps1_" so that they are listed together when viewing the Wiki documents. | |
| .Parameter SourceScriptFolder | |
| Source folder where the scripts are located |
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
| # | |
| # File: Get-HelpByMarkdown.ps1 | |
| # | |
| # Author: Akira Sugiura (urasandesu@gmail.com) | |
| # | |
| # | |
| # Copyright (c) 2014 Akira Sugiura | |
| # | |
| # This software is MIT License. | |
| # |