1

I'm getting an error when running this command ansible-playbook kubespray-2.12.3/cluster.yml

Error:

k8s-master                 : ok=12   changed=2    unreachable=0    failed=1
k8s-worker-1               : ok=12   changed=2    unreachable=0    failed=1
k8s-worker-2               : ok=12   changed=2    unreachable=0    failed=1
localhost                  : ok=1    changed=0    unreachable=0    failed=0

Ansible version :

root@MSI:/home/andrew# ansible --version
ansible 2.7.12
  config file = /home/andrew/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]

Inventory.ini file

[all]
k8s-master   ansible_host=<ext-IP> access_ip=<ext-IP> ip=<int-ip>
k8s-worker-1 ansible_host=<ext-IP>access_ip=<ext-IP> ip=<int-ip>
k8s-worker-2 ansible_host=<ext-IP> access_ip=<ext-IP> ip=<int-ip>

[kube-master]
k8s-master

[etcd]
k8s-master

[kube-node]
k8s-worker-1
k8s-worker-2

[k8s-cluster:children]
kube-master
kube-node

[all:vars]
kube_webhook_token_auth=true
kube_webhook_token_auth_url=https://10.0.0.3
ansible_python_interpreter=/usr/bin/python3
kube_network_plugin=flannel
kubeconfig_localhost=true

ansible.cfg file

[ssh_connection]
pipelining=True
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null
#control_path = ~/.ssh/ansible-%%r@%%h:%%p
[defaults]
strategy_plugins = plugins/mitogen/ansible_mitogen/plugins/strategy
# https://github.com/ansible/ansible/issues/56930 (to ignore group names with - and .)
force_valid_group_names = ignore

host_key_checking=False
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp
stdout_callback = skippy
library = ./library
callback_whitelist = profile_tasks
roles_path = roles:$VIRTUAL_ENV/usr/local/share/kubespray/roles:$VIRTUAL_ENV/usr/local/share/ansible/roles:/usr/share/kubespray/roles
deprecation_warnings=False
inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds, .gpg
[inventory]
ignore_patterns = artifacts, credentials

I know that similar errors have been recorded in stack overflow but they don't seem relevant to my case..any help or tips gratefully received.....in fact just give me a clue f you don't want to tell me the actual answer.... many thanks

Mick8695
  • 357
  • 2
  • 5
  • 19

0 Answers0