workstations.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # - name: Actualizacion del sistema
  2. # hosts: all
  3. # become: yes
  4. # gather_facts: no
  5. # tasks:
  6. # - name: Update & Upgrade
  7. # apt:
  8. # update_cache: yes
  9. # upgrade: dist
  10. - name: Madrid
  11. hosts: workstation11, workstation21
  12. become: yes
  13. gather_facts: no
  14. tasks:
  15. - name: touch
  16. file:
  17. path: /home/vagrant/madrid
  18. state: touch
  19. - name: Paris
  20. hosts: workstation12, workstation22
  21. become: yes
  22. gather_facts: no
  23. tasks:
  24. - name: touch
  25. file:
  26. path: /home/vagrant/paris
  27. state: touch
  28. - name: New York
  29. hosts: workstation13, workstation23
  30. become: yes
  31. gather_facts: no
  32. tasks:
  33. - name: touch
  34. file:
  35. path: /home/vagrant/newyork
  36. state: touch
  37. # Añadir el repositorio oficial de Virtualbox Oracle https://download.virtualbox.org/virtualbox/debian jammy contrib
  38. - name: Añadir WireShark
  39. hosts: workstation11, workstation21
  40. become: yes
  41. gather_facts: no
  42. tasks:
  43. - name: Intalar escritorio mate
  44. apt:
  45. name: ubuntu-mate-desktop
  46. state: present
  47. update_cache: yes
  48. - name: Instalar wireshark
  49. apt:
  50. name: wireshark
  51. state: present
  52. # - name: Añadir repositorio Virtualbox Oracle
  53. # block:
  54. # - name: somerepo no apt key
  55. # ansible.builtin.get_url:
  56. # url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
  57. # dest: /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
  58. # - name: somerepo apt source
  59. # ansible.builtin.apt_repository:
  60. # repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian jammy contrib"
  61. # state: present
  62. # - name: Instalar virtualbox
  63. # apt:
  64. # name: virtualbox
  65. # state: present