updated tasks so they are only run once
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
||||
- name: Add ansible_lint
|
||||
when:
|
||||
- ansible_lint_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
||||
|
||||
- name: Set ansible_lint_configured
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_configured: true
|
||||
|
||||
Reference in New Issue
Block a user