Diferencias
Muestra las diferencias entre dos versiones de la página.
docs:virtualizacion:vagrant:inicio [2018/03/22 20:04] – editor externo 127.0.0.1 | docs:virtualizacion:vagrant:inicio [2018/10/01 21:33] (actual) – [Vagrant] rodolfo | ||
---|---|---|---|
Línea 2: | Línea 2: | ||
* [[Vagrant Cheat Sheet]] | * [[Vagrant Cheat Sheet]] | ||
+ | |||
+ | ===== Ansible provisioning ===== | ||
+ | |||
+ | Vagrantfile | ||
+ | |||
+ | < | ||
+ | config.vm.provision " | ||
+ | ansible.playbook = " | ||
+ | ansible.compatibility_mode = " | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | playbook.yml | ||
+ | |||
+ | < | ||
+ | - hosts: all | ||
+ | become: true | ||
+ | |||
+ | tasks: | ||
+ | - name: ensure repository key is installed | ||
+ | apt_key: | ||
+ | id: " | ||
+ | keyserver: " | ||
+ | state: present | ||
+ | | ||
+ | - name: ensure docker registry is available | ||
+ | # For Ubuntu 16.04 LTS | ||
+ | apt_repository: | ||
+ | | ||
+ | - name: ensure docker and dependencies are installed | ||
+ | apt: name={{ item }} update_cache=yes | ||
+ | with_items: | ||
+ | - docker-engine | ||
+ | - docker-compose | ||
+ | | ||
+ | - name: add vagrant to docker group | ||
+ | user: name=vagrant groups=docker append=yes | ||
+ | | ||
+ | - service: name=docker state=restarted | ||
+ | </ | ||
===== Herramientas ===== | ===== Herramientas ===== |