I'm new to ansible and trying to get into a love affair with it. I'm running CentOS 7.7.1908 and Ansible 2.4.2.0 was installed.
Of course, that worked and rebooted my machine! However, I did run into new issues with DEPRECATION WARNING. I think it's not liking the state=installed. If I'm reading the manual (RTFM) it wants a newer flag of state=present.
I also don't think it's loving the {{ item }} flag and wants something different. {{ packages }}?
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply
multiple items and specifying `pkg: "{{ item }}"`, please use `pkg: ['nano', 'vim', 'tar', 'xz', 'unzip', 'wget', 'curl', 'bind-utils', 'net-
tools', 'ntp', 'epel-release']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply
multiple items and specifying `pkg: "{{ item }}"`, please use `pkg: ['nano', 'vim', 'tar', 'xz', 'unzip', 'wget', 'curl', 'bind-utils', 'net-
tools', 'ntp', 'epel-release']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.