That’s strange. Can you provide some more info, like output from ansible-playbook --version and the yaml generating this message? Also, you say “trying to include” but the msg says “builtin.import_playbook”. Include vs. import. ?
I’m doing this from molecule converge
I’ve simplified it a lot to try and eliminate possible red herrings
- name: Converge windows
hosts: windows
tasks:
- name: Print ansible_winrm_operation_timeout_sec parameters
ansible.builtin.debug:
var: ansible_winrm_operation_timeout_sec
- name: Print ansible_winrm_read_timeout_sec parameters
ansible.builtin.debug:
var: ansible_winrm_read_timeout_sec
- name: Include the test playbook that does nothing.
ansible.builtin.import_playbook:
name: ../../djl_test.yml
It also does not take a parameter called name, just a string with the playbook filename.
- name: Converge windows
hosts: windows
tasks:
- name: Print ansible_winrm_operation_timeout_sec parameters
ansible.builtin.debug:
var: ansible_winrm_operation_timeout_sec
- name: Print ansible_winrm_read_timeout_sec parameters
ansible.builtin.debug:
var: ansible_winrm_read_timeout_sec
- name: Include the test playbook that does nothing.
ansible.builtin.import_playbook: ../../djl_test.yml
Thanks for the information @flowerysong
:: Edited :: I can see how you changed the code there to move the import to the top level of the yaml. Thanks for the guidance!