Open liyanq528 opened 3 years ago
fatal: [172.22.100.12]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'masters'\n\nThe error appears to be in '/root/board-installer/ansible_k8s/roles/set_fact/tasks/main.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Set IP address variables --- master_ip_address\n ^ here\n"}
i was encountered a fatal error when i install Gitlab. 1,set Gitlab address in ./board-installer/ansible_k8s/gitlab file. 2,execute the command ansible-playbook -i gitlab gitlab.yml in ansible_k8s folder. 3,got a fatal error after the execute command. 4,i changed into the ./board-installer/ansible_k8s/gitlab file like this: [gitlab] 172.22.100.11 [masters] 172.22.100.12 [registry] 172.22.100.12 [nodes] 172.22.100.11 172.22.100.13 the fatal error was disappeared.