summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-command-instead-of-module-pass.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /examples/playbooks/rule-command-instead-of-module-pass.yml
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/playbooks/rule-command-instead-of-module-pass.yml')
-rw-r--r--examples/playbooks/rule-command-instead-of-module-pass.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/playbooks/rule-command-instead-of-module-pass.yml b/examples/playbooks/rule-command-instead-of-module-pass.yml
index c0a26e9..2fbc5c2 100644
--- a/examples/playbooks/rule-command-instead-of-module-pass.yml
+++ b/examples/playbooks/rule-command-instead-of-module-pass.yml
@@ -5,9 +5,11 @@
- name: Print current git branch
ansible.builtin.command: git branch
changed_when: false
+
- name: Print git log
ansible.builtin.command: git log
changed_when: false
+
- name: Install git lfs support
ansible.builtin.command: git lfs install
changed_when: false
@@ -20,6 +22,10 @@
ansible.builtin.command: systemctl show-environment
changed_when: false
+ - name: Get systemd runlevel
+ ansible.builtin.command: systemctl get-default
+ changed_when: false
+
- name: Set systemd runlevel
ansible.builtin.command: systemctl set-default multi-user.target
changed_when: false
@@ -35,3 +41,11 @@
- name: Clear yum cache
ansible.builtin.command: ""
changed_when: false
+
+ - name: Print yum history
+ ansible.builtin.command: yum history
+ changed_when: false
+
+ - name: Print yum info
+ ansible.builtin.command: yum info bash
+ changed_when: false