summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/package-check-failure.yml
blob: 393b52b8809a03d4513e717314e70d92b5d2068b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- hosts: localhost
  tasks:
    - name: Install ansible
      ansible.builtin.yum: name=ansible state=latest

    - name: Install ansible-lint
      ansible.builtin.pip: name=ansible-lint
      args:
        state: latest

    - name: Install some-package
      ansible.builtin.package:
        name: some-package
        state: latest

    - name: Install ansible with update_only to false
      ansible.builtin.yum:
        name: sudo
        state: latest
        update_only: false