blob: 9521b19112797199513d5a570ddec37ddd0225cf [file] [log] [blame]
Zack Williamsa7104e32018-01-03 10:55:26 -07001---
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# ansible/prep-kubespray.yml
17# prepare to run kubespray on the system
18
19- name: Prep systems for kubespray
20 hosts: head, compute
21 tasks:
22 - name: Disable swap
23 become: yes
24 command: "swapoff -a"
25 tags:
26 - skip_ansible_lint # there isn't a module for this, command is idempotent
27
28- name: Download and configure kubespray
29 hosts: localhost
30 connection: local
31 gather_facts: False
32
33 roles:
34 - prep-kubespray
35