Closed TimL20 closed 3 years ago
The full traceback is: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/ansible/executor/task_executor.py", line 585, in _execute self._task.post_validate(templar=templar) File "/usr/lib/python3.9/site-packages/ansible/playbook/task.py", line 307, in post_validate super(Task, self).post_validate(templar) File "/usr/lib/python3.9/site-packages/ansible/playbook/base.py", line 431, in post_validate value = templar.template(getattr(self, name)) File "/usr/lib/python3.9/site-packages/ansible/template/init.py", line 835, in template d[k] = self.template( File "/usr/lib/python3.9/site-packages/ansible/template/init.py", line 789, in template result = self.do_template( File "/usr/lib/python3.9/site-packages/ansible/template/init.py", line 1057, in do_template res = j2_concat(rf) File "", line 15, in root File "/usr/lib/python3.9/site-packages/ansible/template/init.py", line 255, in wrapper ret = func(*args, **kwargs) File "/usr/lib/python3.9/site-packages/ansible/plugins/filter/core.py", line 159, in regex_search match = int(re.match(r'\(\d+)', arg).group(1)) AttributeError: 'NoneType' object has no attribute 'group' fatal: [archiso]: FAILED! => { "changed": false }
fatal: [archiso]: FAILED! => { "msg": "Unexpected templating type error occurred on (ip route get {{ lookup('env','SSH_CONNECTION') | regex_search('^([^ ]+)', '\\1') | first }}): 'NoneType' object is not iterable" }
fatal: [archiso]: FAILED! => { "changed": true, "cmd": "ip route get ", "delta": "0:00:00.011736", "end": "2021-04-15 21:55:26.227265", "invocation": { "module_args": { "_raw_params": "ip route get ", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "msg": "non-zero return code", "rc": 1, "start": "2021-04-15 21:55:26.215529", "stderr": "need at least a destination address", "stderr_lines": [ "need at least a destination address" ], "stdout": "", "stdout_lines": [] }
fatal: [archiso]: FAILED! => { "msg": "The conditional check 'root_copy_allowed_keys' failed. The error was: error while evaluating conditional (root_copy_allowed_keys): 'root_copy_allowed_keys' is undefined\n\nThe error appears to be in '/home/ftornack/Projekte/Ansible-Arch/Arch-Ansible-Install/roles/arch2disk/tasks/user_setup.yml': line 21, 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: Create root .ssh dir if needed\n ^ here\n" }
works in VM