diff options
author | RĂ©mi REY <rrey94@gmail.com> | 2021-10-27 19:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 12:51:03 -0500 |
commit | 26eae8d18a2a25e41836a63d013c96224a9a5ec4 (patch) | |
tree | c873ddb563c10278c81092a6921e9ade51e8e9d9 | |
parent | 17ef15a534baf2b48c2a8c41466f9548ef1702fc (diff) | |
download | ansible-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.yml | 2 | ||||
-rw-r--r-- | lib/ansible/modules/hostname.py | 2 |
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 |