2015-12-30 16:11:33 +00:00
|
|
|
---
|
2018-06-21 06:17:03 +00:00
|
|
|
# Disable swap
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0010-swapoff.yml
|
2018-06-21 06:17:03 +00:00
|
|
|
when: disable_swap
|
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0020-verify-settings.yml
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- asserts
|
2017-01-02 11:14:03 +00:00
|
|
|
|
2018-04-02 08:19:23 +00:00
|
|
|
# This is run before bin_dir is pinned because these tasks are run on localhost
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0030-pre_upgrade.yml
|
2018-04-19 16:38:13 +00:00
|
|
|
run_once: true
|
2018-04-02 08:19:23 +00:00
|
|
|
tags:
|
|
|
|
- upgrade
|
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0040-set_facts.yml
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
2018-08-23 14:51:52 +00:00
|
|
|
- resolvconf
|
2017-10-05 07:43:04 +00:00
|
|
|
- facts
|
2016-08-26 17:24:47 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0050-create_directories.yml
|
2018-04-12 19:55:13 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0060-resolvconf.yml
|
2017-10-18 10:42:00 +00:00
|
|
|
when:
|
|
|
|
- dns_mode != 'none'
|
|
|
|
- resolvconf_mode == 'host_resolvconf'
|
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
|
|
|
- resolvconf
|
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0070-system-packages.yml
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
2017-02-09 09:16:52 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0080-system-configurations.yml
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0090-etchosts.yml
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
|
|
|
- etchosts
|
2016-12-07 15:57:05 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0100-dhclient-hooks.yml
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
|
|
|
- dns_mode != 'none'
|
|
|
|
- resolvconf_mode == 'host_resolvconf'
|
|
|
|
- not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
|
|
|
- resolvconf
|
2017-01-11 14:08:24 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0110-dhclient-hooks-undo.yml
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
|
|
|
- dns_mode != 'none'
|
|
|
|
- resolvconf_mode != 'host_resolvconf'
|
|
|
|
- not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
|
|
|
- resolvconf
|
2017-01-11 14:08:24 +00:00
|
|
|
|
2016-12-12 13:14:22 +00:00
|
|
|
- name: Check if we are running inside a Azure VM
|
2017-02-17 21:22:34 +00:00
|
|
|
stat:
|
|
|
|
path: /var/lib/waagent/
|
2016-12-12 13:14:22 +00:00
|
|
|
register: azure_check
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
2016-12-12 13:14:22 +00:00
|
|
|
|
2018-08-23 14:51:52 +00:00
|
|
|
- import_tasks: 0120-growpart-azure-centos-7.yml
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
|
|
|
- azure_check.stat.exists
|
|
|
|
- ansible_distribution in ["CentOS","RedHat"]
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- bootstrap-os
|
2018-02-14 16:15:25 +00:00
|
|
|
|
|
|
|
- name: Write cacert file
|
|
|
|
copy:
|
|
|
|
content: "{{ openstack_cacert }}"
|
|
|
|
dest: "{{ kube_config_dir }}/openstack-cacert.pem"
|
|
|
|
group: "{{ kube_cert_group }}"
|
|
|
|
mode: 0640
|
|
|
|
when:
|
|
|
|
- inventory_hostname in groups['k8s-cluster']
|
|
|
|
- cloud_provider is defined
|
|
|
|
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
|
|
|
|
- openstack_cacert is defined
|
|
|
|
tags:
|
|
|
|
- cloud-provider
|