summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi REY <rrey94@gmail.com>2021-10-27 19:51:03 +0200
committerGitHub <noreply@github.com>2021-10-27 12:51:03 -0500
commit26eae8d18a2a25e41836a63d013c96224a9a5ec4 (patch)
treec873ddb563c10278c81092a6921e9ade51e8e9d9
parent17ef15a534baf2b48c2a8c41466f9548ef1702fc (diff)
downloadansible-26eae8d18a2a25e41836a63d013c96224a9a5ec4.tar.gz
[bp-2.11]: hostname: update example with 'use' (#75990)
* hostname: Change "strategy" to "use" (#74815) Fixed typo: 'strategy' to 'use' (cherry picked from commit 63701b1b6b18a0d396c8b96debebf4de1cd20098) * Add changelog fragment for backport of #74815 Co-authored-by: bdouxx <bdouxx-git@yahoo.fr>
-rw-r--r--changelogs/fragments/fix_hostname_example.yml2
-rw-r--r--lib/ansible/modules/hostname.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/fix_hostname_example.yml b/changelogs/fragments/fix_hostname_example.yml
new file mode 100644
index 0000000000..80427ebc0a
--- /dev/null
+++ b/changelogs/fragments/fix_hostname_example.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - hostname, fix module example using `strategy` instead of `use`.
diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py
index 26556fc809..75e7edb183 100644
--- a/lib/ansible/modules/hostname.py
+++ b/lib/ansible/modules/hostname.py
@@ -52,7 +52,7 @@ EXAMPLES = '''
- name: Set a hostname specifying strategy
ansible.builtin.hostname:
name: web01
- strategy: systemd
+ use: systemd
'''
import os