summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/package-check-failure.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/playbooks/package-check-failure.yml')
-rw-r--r--examples/playbooks/package-check-failure.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/playbooks/package-check-failure.yml b/examples/playbooks/package-check-failure.yml
new file mode 100644
index 0000000..393b52b
--- /dev/null
+++ b/examples/playbooks/package-check-failure.yml
@@ -0,0 +1,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