diff options
Diffstat (limited to 'ansible/roles/rke/molecule/default')
-rw-r--r-- | ansible/roles/rke/molecule/default/molecule.yml | 3 | ||||
-rw-r--r-- | ansible/roles/rke/molecule/default/playbook.yml | 6 | ||||
-rw-r--r-- | ansible/roles/rke/molecule/default/tests/test_nodes.py (renamed from ansible/roles/rke/molecule/default/tests/test_kubernetes.py) | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/ansible/roles/rke/molecule/default/molecule.yml b/ansible/roles/rke/molecule/default/molecule.yml index e8e5ad76..444a7519 100644 --- a/ansible/roles/rke/molecule/default/molecule.yml +++ b/ansible/roles/rke/molecule/default/molecule.yml @@ -20,6 +20,7 @@ platforms: groups: - infrastructure - kubernetes-control-plane + - kubernetes networks: - name: rke purge_networks: true @@ -37,6 +38,7 @@ platforms: - /var/lib/docker groups: - kubernetes + - kubernetes-node networks: - name: rke purge_networks: true @@ -54,6 +56,7 @@ platforms: - /var/lib/docker groups: - kubernetes + - kubernetes-node networks: - name: rke purge_networks: true diff --git a/ansible/roles/rke/molecule/default/playbook.yml b/ansible/roles/rke/molecule/default/playbook.yml index 09dbfb8e..fab7a0d0 100644 --- a/ansible/roles/rke/molecule/default/playbook.yml +++ b/ansible/roles/rke/molecule/default/playbook.yml @@ -13,10 +13,8 @@ vars: mode: config -- name: Prepare kubernetes nodes (RKE) - hosts: - - kubernetes - - kubernetes-control-plane +- name: Prepare kubernetes hosts (RKE) + hosts: kubernetes roles: - role: rke vars: diff --git a/ansible/roles/rke/molecule/default/tests/test_kubernetes.py b/ansible/roles/rke/molecule/default/tests/test_nodes.py index 887494fa..fcc5e7e6 100644 --- a/ansible/roles/rke/molecule/default/tests/test_kubernetes.py +++ b/ansible/roles/rke/molecule/default/tests/test_nodes.py @@ -4,7 +4,7 @@ import pytest import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( - os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes') + os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes-node') @pytest.mark.parametrize('container_name', [ |