Michal Zegan | 1ec19b0 | 2019-04-30 14:52:13 +0200 | [diff] [blame] | 1 | --- |
| 2 | - name: "Set cluster_ip" |
| 3 | hosts: all |
| 4 | tasks: |
| 5 | - name: "Set cluster_ip fact" |
| 6 | set_fact: |
| 7 | cluster_ip: "{{ ansible_default_ipv4.address }}" |
| 8 | |
| 9 | - name: Configure kubernetes cluster (RKE) |
| 10 | hosts: infrastructure |
| 11 | roles: |
| 12 | - role: rke |
| 13 | vars: |
| 14 | mode: config |
| 15 | |
Michal Zegan | 89e6314 | 2019-05-28 17:16:47 +0200 | [diff] [blame] | 16 | - name: Prepare kubernetes hosts (RKE) |
| 17 | hosts: kubernetes |
Michal Zegan | 1ec19b0 | 2019-04-30 14:52:13 +0200 | [diff] [blame] | 18 | roles: |
| 19 | - role: rke |
| 20 | vars: |
| 21 | mode: node |
| 22 | |
| 23 | - name: Deploy kubernetes cluster (RKE) |
| 24 | hosts: infrastructure |
| 25 | roles: |
| 26 | - role: rke |
| 27 | vars: |
| 28 | mode: deploy |