0c4a981f73
The current code runs k8s-on-openstack's ansible in an ansible task. This makes debugging failures especially difficult. Instead, move the prep task to update-system-config, which will ensure the repo is cloned, and move the post task to its own playbook. The cinder storage class k8s action can be removed from this completely as it's handled in the rook playbook. Then just run the k8s-on-openstack playbook as usual, but without the cd first so that our normal ansible.cfg works. Change-Id: I6015e58daa940914d46602a2cb64ecac5d59fa2e
12 lines
482 B
YAML
12 lines
482 B
YAML
# k8s-on-openstack uses the baked in ubuntu user and ssh keypairs
|
|
# to interact with the host. Our other roles assume that we'll be
|
|
# logging in directly as root. Run base-repos logging in as ubuntu
|
|
# with become: true set so that we can overwrite the root ssh key
|
|
# with the one allowing direct login from bridge.
|
|
- hosts: "kubernetes:!disabled"
|
|
name: "Base: set up users and base package repositories on all hosts"
|
|
remote_user: ubuntu
|
|
become: true
|
|
roles:
|
|
- base-repos
|