| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- # - name: Actualizacion del sistema
- # hosts: all
- # become: yes
- # gather_facts: no
- # tasks:
- # - name: Update & Upgrade
- # apt:
- # update_cache: yes
- # upgrade: dist
- - name: Madrid
- hosts: workstation11, workstation21
- become: yes
- gather_facts: no
- tasks:
- - name: touch
- file:
- path: /home/vagrant/madrid
- state: touch
- - name: Paris
- hosts: workstation12, workstation22
- become: yes
- gather_facts: no
- tasks:
- - name: touch
- file:
- path: /home/vagrant/paris
- state: touch
- - name: New York
- hosts: workstation13, workstation23
- become: yes
- gather_facts: no
- tasks:
- - name: touch
- file:
- path: /home/vagrant/newyork
- state: touch
- # Instalar ubuntu-mate-desktop y wireshark en workstation11 y workstation21
- - name: Instalar ubuntu-mate-desktop y wireshark en workstation11 y workstation21
- hosts: workstation11, workstation21
- become: yes
- gather_facts: no
- tasks:
- - name: Instalar escritorio mate
- apt:
- name: ubuntu-mate-desktop
- state: present
- update_cache: yes
- - name: Instalar wireshark
- apt:
- name: wireshark
- state: present
- # - name: Reiniciar todas las maquinas
- # hosts: all
- # become: yes
- # gather_facts: no
- # tasks:
- # - name: Reiniciar todas las maquinas
- # ansible.builtin.reboot:
-
- # Añadir el repositorio oficial de Virtualbox Oracle https://download.virtualbox.org/virtualbox/debian jammy contrib
- # - name: Añadir repositorio Virtualbox Oracle
- # block:
- # - name: somerepo no apt key
- # ansible.builtin.get_url:
- # url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
- # dest: /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
- # - name: somerepo apt source
- # ansible.builtin.apt_repository:
- # repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian jammy contrib"
- # state: present
- # - name: Instalar virtualbox
- # apt:
- # name: virtualbox
- # state: present
|