ansible-role-nebula/tasks/install_pkg.yml

46 lines
1.3 KiB
YAML
Raw Permalink Normal View History

---
- name: Set specific facts
ansible.builtin.set_fact:
nebula_bin_dir: "{{ nebula_pkg_bin_dir }}"
################################################################################
# Fedora Systems Only
- name: Perform steps for Fedora Linux Systems
when: ansible_os_family == "RedHat" and ansible_distribution == "Fedora"
block:
- name: Install Packages
ansible.builtin.package:
state: present
name:
- nebula
################################################################################
# Rocky Linux Systems Only
- name: Perform steps for Rocky Linux Systems
when: ansible_os_family == "RedHat" and ansible_distribution == "Rocky"
block:
- name: Install core release package
ansible.builtin.package:
state: present
name:
- rocky-release-core
- name: Install the nebula package
ansible.builtin.package:
state: present
name:
- nebula
################################################################################
# All other distributions that are RedHat
- name: Perform steps for everyone else
when:
- ansible_os_family == "RedHat"
- ansible_distribution != "Rocky"
- ansible_distribution != "Fedora"
block:
- name: This isn't ready
ansible.builtin.debug:
msg: "This section is not ready. Sorry."
...