Skip to content

Commit

Permalink
simplifying importing os tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
0lzi committed Jul 1, 2024
1 parent 179658a commit 4bef627
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions cephadm-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@
name: ceph_defaults

- name: Import specific OS-related tasks
include_tasks: "{{ lookup('first_found', __OS_distribution) }}"
vars:
__OS_distribution:
files:
- "tasks/{{ ansible_facts['distribution'] }}.yml"
paths:
- "{{ playbook_dir }}"
skip: true

import_tasks: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}.yml"

- name: set insecure container registry in /etc/containers/registries.conf
ansible.builtin.import_playbook: cephadm-set-container-insecure-registries.yml
Expand Down

0 comments on commit 4bef627

Please sign in to comment.