test.yml 508 B

12345678910111213141516171819202122
  1. - hosts: all
  2. pre_tasks:
  3. - name: Ensure build dependencies are installed (RedHat).
  4. yum: 'name="{{ item }}" state=present'
  5. with_items:
  6. - curl
  7. - tar
  8. - unzip
  9. when: ansible_os_family == 'RedHat'
  10. - name: Ensure build dependencies are installed (Debian).
  11. apt: 'name="{{ item }}" state=installed'
  12. with_items:
  13. - curl
  14. - tar
  15. - unzip
  16. when: ansible_os_family == 'Debian'
  17. roles:
  18. - geerlingguy.git
  19. - role_under_test