test.yml 595 B

12345678910111213141516171819202122232425
  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. - sudo
  8. - which
  9. when: ansible_os_family == 'RedHat'
  10. - name: Update apt cache.
  11. apt: update_cache=yes
  12. when: ansible_os_family == 'Debian'
  13. - name: Ensure build dependencies are installed (Debian).
  14. apt: 'name="{{ item }}" state=installed'
  15. with_items:
  16. - curl
  17. - sudo
  18. when: ansible_os_family == 'Debian'
  19. roles:
  20. - geerlingguy.git
  21. - role_under_test