refactor(standardize): fix sudoers lecture syntax, extract ssh config, remove redundant os filters
This commit is contained in:
@@ -231,9 +231,9 @@
|
||||
ansible.builtin.set_fact:
|
||||
environment_thirdparty_tasks_path: >-
|
||||
{{
|
||||
thirdparty_preparation_tasks_path
|
||||
if thirdparty_preparation_tasks_path | regex_search('^/')
|
||||
else playbook_dir + '/' + thirdparty_preparation_tasks_path
|
||||
thirdparty_tasks
|
||||
if thirdparty_tasks | regex_search('^/')
|
||||
else playbook_dir + '/' + thirdparty_tasks
|
||||
}}
|
||||
changed_when: false
|
||||
|
||||
@@ -245,6 +245,6 @@
|
||||
|
||||
- name: Run third-party preparation tasks
|
||||
when:
|
||||
- thirdparty_preparation_tasks_path | length > 0
|
||||
- thirdparty_tasks | length > 0
|
||||
- environment_thirdparty_tasks_stat.stat.exists
|
||||
ansible.builtin.include_tasks: "{{ environment_thirdparty_tasks_path }}"
|
||||
|
||||
Reference in New Issue
Block a user