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
18 - /var/run/docker.sock:/var/run/docker.sock
19 - /var/lib/rancher:/var/lib/rancher:ro
25 - name: kubernetes-node-1
26 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
29 override_command: false
30 restart_policy: unless-stopped
34 - /var/run/docker.sock:/var/run/docker.sock
35 - /var/lib/rancher:/var/lib/rancher:ro
44 ANSIBLE_ROLES_PATH: ../../../../test/roles
45 ANSIBLE_LIBRARY: ../../../../library
48 group_vars: ../../../../group_vars
49 # 1) When running with molecule-dev container, use this definition and comment out localhost under host_vars (2)
54 ansible_connection: ssh
55 ansible_host: ${LOCALHOST_ANSIBLE_HOST:-""}
56 ansible_user: ${LOCALHOST_ANSIBLE_USER:-""}
57 ansible_password: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
58 ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
60 # 2) When running with native molecule installation, use this definition and comment out hosts section under inventory (1)
63 # ansible_sudo_pass: ${LOCALHOST_ANSIBLE_SUDO_PASS:-""}
64 # ansible_ssh_pass: ${LOCALHOST_ANSIBLE_PASSWORD:-""}
80 # --> Action: 'idempotence'
81 # ERROR: Idempotence test failed because of the following tasks:
82 # * [infrastructure-server] => rancher : Create rancher kubernetes environment
83 # * [kubernetes-node-1] => rancher : Add Rancher Agent