Skip to content

Commit

Permalink
Merge pull request #18 from ansible-lockdown/devel
Browse files Browse the repository at this point in the history
devel -> Main
  • Loading branch information
uk-bolly authored Sep 22, 2023
2 parents cdab4d9 + c01e94f commit 00f75f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ skip_list:
- 'schema'
- 'no-changed-when'
- 'var-spacing'
- 'fqcn-builtins'
- 'experimental'
- 'name[play]'
- 'name[casing]'
- 'name[template]'
- 'fqcn[action]'
- 'key-order[task]'
- '204'
- '305'
Expand Down
2 changes: 1 addition & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ rules:
trailing-spaces: enable
truthy:
allowed-values: ['true', 'false']
check-keys: false
check-keys: true
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- always

- name: Check OS version and family
assert:
ansible.builtin.assert:
that: ansible_distribution== 'Ubuntu' and ansible_distribution_major_version is version_compare('18', '==')
fail_msg: "This role can only be run against Ubuntu 18. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
when:
Expand All @@ -18,7 +18,7 @@
- always

- name: Check ansible version
assert:
ansible.builtin.assert:
that: ansible_version.full is version_compare(ubtu18stig_min_ansible_version, '>=')
msg: You must use Ansible {{ ubtu18stig_min_ansible_version }} or greater
tags:
Expand Down

0 comments on commit 00f75f0

Please sign in to comment.