blob: 2fbc5c2ad302108d35cc9f16522052b61d797a36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
---
- name: Test fixture for command-instead-of-module
hosts: localhost
tasks:
- 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
- name: Show systemctl service status
ansible.builtin.command: systemctl status systemd-timesyncd
changed_when: false
- name: Show systemd environment
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
- name: Kill service using SIGUSR1
ansible.builtin.command: systemctl kill --signal=SIGUSR1 sshd
changed_when: false
- name: Clear yum cache
ansible.builtin.command: yum clean all
changed_when: false
- 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
|