ansible-role-nebula/tasks/install_pkg.yml
Louis Abel 1be345119f
Startup nebula ansible role
* Provide most options for nebula config
* Provide ability for future modifications to use other distros
* Provide information on usable variables in README
2024-04-18 18:30:15 -07:00

46 lines
1.3 KiB
YAML

---
- 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."
...