main.yaml 611 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Install required packages
  3. package: name={{ item }} state=latest
  4. with_items:
  5. - vim
  6. - nano
  7. - htop
  8. - python3
  9. - python3-pip
  10. - acl
  11. - bash-completion
  12. - name: install debian specific packages
  13. package: name={{ item }} state=latest
  14. when: ansible_distribution == 'Debian'
  15. with_items:
  16. - lsb-release
  17. - build-essential
  18. - name: install centos specific packages
  19. package: name={{ item }} state=latest
  20. when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'Rocky'
  21. with_items:
  22. - epel-release