From d0f80fd8bc2954a7fb3fbef405d81ecf1574df5e Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Thu, 8 Apr 2021 16:41:16 +0200 Subject: [MOLECULE 3.3.0] Update converge playbook file names In 3.x.x version family of Molecule the 'playbook.yml' file for 'converge' action has changed to 'converge.yml'. Ref.: https://github.com/ansible-community/molecule/issues/2560 Change-Id: I8710ebd5710237be138f2aff8943d6c949058dbd Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski --- ansible/roles/rke/molecule/default/converge.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ansible/roles/rke/molecule/default/converge.yml (limited to 'ansible/roles/rke/molecule/default/converge.yml') diff --git a/ansible/roles/rke/molecule/default/converge.yml b/ansible/roles/rke/molecule/default/converge.yml new file mode 100644 index 00000000..8db7aef5 --- /dev/null +++ b/ansible/roles/rke/molecule/default/converge.yml @@ -0,0 +1,39 @@ +--- +- name: "Set cluster_ip" + hosts: all + tasks: + - name: "Set cluster_ip fact" + set_fact: + cluster_ip: "{{ ansible_default_ipv4.address }}" + +- name: Configure etcd (RKE) + hosts: kubernetes-etcd + roles: + - role: rke + vars: + mode: etcd + +- name: Configure kubernetes cluster (RKE) + hosts: infrastructure + roles: + - role: rke + vars: + rke_dns: + provider: coredns + upstreamnameservers: + - 8.8.8.8 + mode: config + +- name: Prepare kubernetes hosts (RKE) + hosts: kubernetes + roles: + - role: rke + vars: + mode: node + +- name: Deploy kubernetes cluster (RKE) + hosts: infrastructure + roles: + - role: rke + vars: + mode: deploy -- cgit 1.2.3-korg