rocky.yml 819 B

1234567891011121314151617
  1. - name: Assert {{ ansible_distribution }} {{ ansible_distribution_version }} conditions
  2. assert:
  3. that:
  4. - "ansible_distribution_major_version in ('8', '9', '10')"
  5. - "ansible_architecture in ('x86_64', 'aarch64')"
  6. success_msg: "{{ ansible_distribution }} {{ ansible_distribution_version }} is supported. "
  7. fail_msg: "{{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }} {{ ansible_architecture }} is not supported by {{ onecloud_version }}"
  8. - name: Ensure kernel module br_netfilter is installed
  9. block:
  10. - modprobe:
  11. name: br_netfilter
  12. state: present
  13. become: true
  14. rescue:
  15. - fail:
  16. msg: "br_netfilter is not installed, please install by `yum install -y kernel-modules-extra` and reboot the system to take effect"