Does anyone have any suggestions regarding what is happening here, I have this DEPRECATION WARNING:
TASK [php : Check php_ variables using the combined argument spec] ************************************************************************************************************************************************
[WARNING]: Deprecation warnings can be disabled by setting `deprecation_warnings=False` in ansible.cfg.
[DEPRECATION WARNING]: The 'skipped_reason' value is deprecated. This feature will be removed from ansible-core version 2.24.
Origin: /home/example/php/tasks/verify.yml:79:29
77 ansible.builtin.validate_argument_spec:
78 argument_spec: "{{ php_combined_argument_spec['argument_specs']['main']['options'] }}"
79 provided_arguments: "{{ phphostvars }}"
^ column 29
Use 'skip_reason' instead.
[DEPRECATION WARNING]: While processing '<<container>>': The 'skipped_reason' value is deprecated. This feature will be removed from ansible-core version 2.24.
Origin: <unknown>
<<container>>
Use 'skip_reason' instead.
ok: [example.org.uk]
The task in question is:
- name: Check php_ variables using the combined argument spec
ansible.builtin.validate_argument_spec:
argument_spec: "{{ php_combined_argument_spec['argument_specs']['main']['options'] }}"
provided_arguments: "{{ phphostvars }}"
And phphostvars is defined thus:
phpvarnames: "{{ q('varnames', '^php_') | sort }}"
phphostvars: "{{ dict(phpvarnames | list | zip(q('vars', *phpvarnames))) }}"
This didn’t generate a warning in the past, I’m currently using this version of Ansible:
ansible --version | head -n1
ansible [core 2.21.0]