playbook.yml 793 B

12345678910111213141516171819202122232425262728293031323334353637
  1. - hosts: localhost
  2. become: yes
  3. become_user: root
  4. become_method: sudo
  5. gather_facts: yes
  6. vars_files:
  7. - vars/main.yml
  8. pre_tasks:
  9. - name: Update Apt Cache
  10. apt: update_cache=yes cache_valid_time=86400
  11. when: ansible_os_family == "Debian"
  12. - name: Ubuntu Packages
  13. apt: >
  14. pkg={{item}}
  15. state=installed
  16. with_items:
  17. - htop
  18. - iotop
  19. - git
  20. - sysstat
  21. - vim
  22. - tmux
  23. - tree
  24. - tcpdump
  25. - unzip
  26. when: ansible_os_family == "Debian"
  27. roles:
  28. - { role: rvm_io.ruby,
  29. tags: ruby,
  30. become: yes,
  31. rvm1_rubies: ['ruby-2.3.3'],
  32. rvm1_install_flags: '--user-install',
  33. rvm1_install_path: /home/vagrant/.rvm,
  34. rvm1_user: vagrant
  35. }