9 - name: infrastructure-server
10 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
13 override_command: false
14 restart_policy: unless-stopped
22 - name: kubernetes-node-1
23 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
26 override_command: false
27 restart_policy: unless-stopped
41 ANSIBLE_ROLES_PATH: ../../../../test/roles
42 ANSIBLE_LIBRARY: ../../../../library
45 group_vars: ../../../../group_vars
46 # 1) When running with molecule-dev container, use this definition and comment out localhost under host_vars (2)
51 ansible_connection: ssh
52 ansible_host: ${LOCALHOST_ANSIBLE_HOST:-""}
53 ansible_user: ${LOCALHOST_ANSIBLE_USER:-""}
54 ansible_password: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
55 ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
57 # 2) When running with native molecule installation, use this definition and comment out hosts section under inventory (1)
60 # ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
61 # ansible_ssh_pass: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
77 # --> Action: 'idempotence'
78 # ERROR: Idempotence test failed because of the following tasks:
79 # * [infrastructure-server] => rancher : Create rancher kubernetes environment
80 # * [kubernetes-node-1] => rancher : Add Rancher Agent