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
16 - /var/run/docker.sock:/var/run/docker.sock
17 - /var/lib/rancher:/var/lib/rancher:ro
23 - name: kubernetes-node-1
24 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
27 override_command: false
28 restart_policy: unless-stopped
30 - /var/run/docker.sock:/var/run/docker.sock
31 - /var/lib/rancher:/var/lib/rancher:ro
40 ANSIBLE_ROLES_PATH: ../../../../test/roles
41 ANSIBLE_LIBRARY: ../../../../library
44 group_vars: ../../../../group_vars
45 # 1) When running with molecule-dev container, use this definition and comment out localhost under host_vars (2)
50 ansible_connection: ssh
51 ansible_host: ${LOCALHOST_ANSIBLE_HOST:-""}
52 ansible_user: ${LOCALHOST_ANSIBLE_USER:-""}
53 ansible_password: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
54 ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
56 # 2) When running with native molecule installation, use this definition and comment out hosts section under inventory (1)
59 # ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
60 # ansible_ssh_pass: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
76 # --> Action: 'idempotence'
77 # ERROR: Idempotence test failed because of the following tasks:
78 # * [infrastructure-server] => rancher : Create rancher kubernetes environment
79 # * [kubernetes-node-1] => rancher : Add Rancher Agent