Skip to content

Commit

Permalink
Added pre_task to verify minimum Ansible version
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Garza committed Feb 23, 2024
1 parent 029eba6 commit 7cd94c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
- hosts: all

Check failure on line 2 in site.yml

View workflow job for this annotation

GitHub Actions / lint / Pre-Commit

name[play]

All plays should be named.
pre_tasks:
- name: Verify Ansible is version 2.11 or above.
assert:
that: "ansible_version.full is version_compare('2.11', '>=')"
msg: >
"Your version of Ansible is out of date. Please follow this link to install the latest version: https://docs.technotim.live/posts/ansible-automation/#installing-the-latest-version-of-ansible"

Check failure on line 8 in site.yml

View workflow job for this annotation

GitHub Actions / lint / Pre-Commit

yaml[line-length]

Line too long (201 > 120 characters)
- name: Prepare Proxmox cluster
hosts: proxmox
gather_facts: true
Expand Down

0 comments on commit 7cd94c3

Please sign in to comment.