Remove hacky and frankly embarassing role usage pattern
This commit is contained in:
		@@ -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([])"
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,6 @@
 | 
			
		||||
      private: true
 | 
			
		||||
  roles:
 | 
			
		||||
    - role: datastore
 | 
			
		||||
      when: "'datastore' in skylab_roles | default([])"
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: Fetch node swarm ID
 | 
			
		||||
      ansible.builtin.command:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user