summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSandra McCann <samccann@redhat.com>2022-06-21 12:01:11 -0400
committerGitHub <noreply@github.com>2022-06-21 09:01:11 -0700
commitf09e6b776943f597dfd0782a8e9aad3d3273076e (patch)
treedea817bbcc4e30f38ce0bf60fa8df7f4cb9bee4a /examples
parent739fb490c7f18e94a7c9c7fb938c65feeb407062 (diff)
downloadansible-f09e6b776943f597dfd0782a8e9aad3d3273076e.tar.gz
Backportapalooza 06 16 (#78072)
* Docsite: Updated style guide resources (#78048) (cherry picked from commit 561cf1956dc88c590ae20e79f9c7d2685bcbd145) * Create reusable role layout snippet for documentation (#78057) * reuse role structure * reuse role snippet in role docs (cherry picked from commit f4ad1c771e31d857df7b86f2c78bcd4ababb6f8c) * Docsite: update links to community docs (#78043) (cherry picked from commit 46d86a882d8728e115e9af02106f63ed20f8750a) * Windows - incorrect python-devel package in WinRM docs (#78037) Co-authored-by: Emanuele Barbato <manu@Giuseppes-MacBook-Air.local> (cherry picked from commit 681dc6eab9156229f75cf42f19b05c900c557863) * issue #72449 winrm script rm (#77931) (cherry picked from commit 3cd2c494bdf17a1e43fa3dd01cf3c69776c2ee45) * reword the regex note (#75393) Co-authored-by: Matt Martz <matt@sivel.net> Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com> (cherry picked from commit 66c088231493033f5efe77df62193992de558d5d) * Document debconf interaction with dpkg-reconfigure (#74196) Signed-off-by: David Greaves <david@dgreaves.com> (cherry picked from commit 5b90601ca45a5699d1bb4da58fdb397a5cd6e7dc) Co-authored-by: Lewis Brogan <ilewisbrogan@gmail.com> Co-authored-by: Andrew Klychkov <aklychko@redhat.com> Co-authored-by: Emanuele Barbato <30394740+emanuelebarbato@users.noreply.github.com> Co-authored-by: Don Naro <dnaro@redhat.com> Co-authored-by: David Greaves <david@dgreaves.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/scripts/ConfigureRemotingForAnsible.ps115
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/scripts/ConfigureRemotingForAnsible.ps1 b/examples/scripts/ConfigureRemotingForAnsible.ps1
index 1fcbaabc37..7cc86abd7c 100644
--- a/examples/scripts/ConfigureRemotingForAnsible.ps1
+++ b/examples/scripts/ConfigureRemotingForAnsible.ps1
@@ -7,6 +7,21 @@
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
+# IMPORTANT: This script uses self-signed certificates and authentication mechanisms
+# that are intended for development environments and evaluation purposes only.
+# Production environments and deployments that are exposed on the network should
+# use CA-signed certificates and secure authentication mechanisms such as Kerberos.
+#
+# To run this script in Powershell:
+#
+# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+# $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
+# $file = "$env:temp\ConfigureRemotingForAnsible.ps1"
+#
+# (New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
+#
+# powershell.exe -ExecutionPolicy ByPass -File $file
+#
# All events are logged to the Windows EventLog, useful for unattended runs.
#
# Use option -Verbose in order to see the verbose output messages.