summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-command-instead-of-module-fail.yml
blob: 38d7a298818052008f798948d8154993f1234a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Test fixture for command-instead-of-module
  hosts: localhost
  tasks:
    - name: Run apt-get update # <-- 1
      ansible.builtin.command: apt-get update
      changed_when: false

    - name: Restart sshd # <-- 2
      ansible.builtin.command: systemctl restart sshd
      changed_when: false

    - name: Run yum update # <-- 3
      ansible.builtin.command: yum update
      changed_when: false