fubarhouse / ansible-role-golang

Installs the Go programming language and packages on Mac & Linux (Ubuntu, CentOS)
MIT License
105 stars 32 forks source link

Fix packages list for package managers #103

Closed ioncebotari closed 5 years ago

ioncebotari commented 5 years ago

While using the playbook for installing Go on Centos 7, I got this deprecation warning:

[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 name: "{{ item }}", please use name: ['curl', 'gcc', 'git', 'findutils', 'make', 'rsync', 'tar'] 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.

I've changed the tasks/CentOS.yml file to reflect the deprecation, and did the same for the other files.