infra-nimbus/ansible/fluffy.yml

40 lines
1.1 KiB
YAML

---
- name: Verify Ansible versions
hosts: all
tags: always
become: false
run_once: true
gather_facts: false
tasks:
- local_action: command ./roles.py --check
changed_when: false
- name: Configure Nimbus Fluffy nodes
become: true
hosts:
- nimbus.fluffy
roles:
# Extra 32 IPv4 addresses for each of the nodes on the host.
- { role: update-netplan, tags: update-netplan }
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-smart-metrics, tags: smart-metrics }
tasks:
- include_role:
name: infra-role-nimbus-fluffy
apply:
tags: always
tags: [ nimbus-fluffy ]
with_sequence: start=1 end=32
loop_control:
loop_var: index
- name: Configure Nimbus Portal Bridge
become: true
vars_files: portal-bridge.yml
hosts:
- metal-01.ih-eu-mda1.nimbus.fluffy
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-nimbus-fluffy, tags: nimbus-fluffy }
- { role: infra-role-portal-bridge, tags: portal-bridge }