summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-command-instead-of-module-pass.yml
diff options
context:
space:
mode:
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