From 7a846e463b299f9d4af0e9584435922ec8daecaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20M=C3=A9ndez=20Hern=C3=A1ndez?= Date: Tue, 28 Nov 2023 15:45:25 +0100 Subject: [PATCH] Correct some usage examples for `package_latest` (#3914) --- src/ansiblelint/rules/package_latest.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ansiblelint/rules/package_latest.md b/src/ansiblelint/rules/package_latest.md index b95493edb3..c96554804e 100644 --- a/src/ansiblelint/rules/package_latest.md +++ b/src/ansiblelint/rules/package_latest.md @@ -32,13 +32,13 @@ If you do want to update packages to the latest version, you should also set the name: some-package state: latest # <- Installs the latest package. - - name: Install Ansible with update_only to false + - name: Install sudo with update_only to false ansible.builtin.yum: name: sudo state: latest update_only: false # <- Updates and installs packages. - - name: Install Ansible with only_upgrade to false + - name: Install sudo with only_upgrade to false ansible.builtin.apt: name: sudo state: latest @@ -69,13 +69,13 @@ If you do want to update packages to the latest version, you should also set the name: some-package state: present # <- Ensures the package is installed. - - name: Update Ansible with update_only to true + - name: Update sudo with update_only to true ansible.builtin.yum: name: sudo state: latest update_only: true # <- Updates but does not install additional packages. - - name: Install Ansible with only_upgrade to false + - name: Install sudo with only_upgrade to true ansible.builtin.apt: name: sudo state: latest