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

    - name: Install ansible-lint
      ansible.builtin.pip: name=ansible-lint
      args:
        state: present
        version: 3.1.2

    - name: Install some-package
      ansible.builtin.package:
        name: Some-package
        state: present

    - name: Update ansible
      ansible.builtin.yum:
        name: sudo
        state: latest
        update_only: true