|
|
@ -1,17 +1,5 @@ |
|
|
|
--- |
|
|
|
# tasks file for roles/galera_swarm |
|
|
|
- name: Load in local SSH key path |
|
|
|
set_fact: |
|
|
|
my_ssh_key: "/root/.ssh/id_rsa.pub" |
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
tags: lxc |
|
|
|
|
|
|
|
- name: Local user has an SSH key |
|
|
|
command: stat {{ my_ssh_key }} |
|
|
|
changed_when: false |
|
|
|
run_once: true |
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
|
- include: prepare_host.yml |
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
@ -19,7 +7,6 @@ |
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
|
- include: lxc_nodes.yml |
|
|
|
when: inventory_hostname in groups['manager'] |
|
|
|
|
|
|
|
- include: prepare_host.yml |
|
|
|
when: inventory_hostname in groups['workers'] |
|
|
|