summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-command-instead-of-module-pass.yml
blob: c0a26e9e53a51069990932c0ca2d75cc5fc24145 (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
---
- 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: 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