test.yml 464 B

12345678910111213141516171819
  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. - which
  8. when: ansible_os_family == 'RedHat'
  9. - name: Ensure build dependencies are installed (Debian).
  10. apt: 'name="{{ item }}" state=installed'
  11. with_items:
  12. - curl
  13. when: ansible_os_family == 'Debian'
  14. roles:
  15. - geerlingguy.git
  16. - role_under_test