workstations.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. # Instalar ubuntu-mate-desktop y wireshark en workstation11 y workstation21
  38. - name: Instalar ubuntu-mate-desktop y wireshark en workstation11 y workstation21
  39. hosts: workstation11, workstation21
  40. become: yes
  41. gather_facts: no
  42. tasks:
  43. - name: Instalar 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: Reiniciar todas las maquinas
  53. # hosts: all
  54. # become: yes
  55. # gather_facts: no
  56. # tasks:
  57. # - name: Reiniciar todas las maquinas
  58. # ansible.builtin.reboot:
  59. # Añadir el repositorio oficial de Virtualbox Oracle https://download.virtualbox.org/virtualbox/debian jammy contrib
  60. # - name: Añadir repositorio Virtualbox Oracle
  61. # block:
  62. # - name: somerepo no apt key
  63. # ansible.builtin.get_url:
  64. # url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
  65. # dest: /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
  66. # - name: somerepo apt source
  67. # ansible.builtin.apt_repository:
  68. # repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian jammy contrib"
  69. # state: present
  70. # - name: Instalar virtualbox
  71. # apt:
  72. # name: virtualbox
  73. # state: present