Remove hacky and frankly embarassing role usage pattern

This commit is contained in:
2021-11-15 20:54:28 -05:00
parent b4feffc118
commit cf22d27c57
4 changed files with 9 additions and 14 deletions

View File

@@ -16,13 +16,17 @@
- include_tasks: tasks/meta/bootstrap-remote-env.yaml
- name: Configure hosts by role
hosts: linux
# "server", here, is a word used to mean "not a workstation"
- name: Configure servers
hosts: linux:!workstation
gather_facts: false
roles:
- role: server
when: "'server' in skylab_roles | default([])"
- name: Configure cluster
hosts: linux:&cluster
gather_facts: false
roles:
- role: datastore
when: "'datastore' in skylab_roles | default([])"
- role: swarm
when: "'swarm' in skylab_roles | default([])"

View File

@@ -7,7 +7,6 @@
private: true
roles:
- role: datastore
when: "'datastore' in skylab_roles | default([])"
tasks:
- name: Fetch node swarm ID
ansible.builtin.command: