Skip to content

Instantly share code, notes, and snippets.

@okelet
Last active July 25, 2017 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okelet/788b07c7ca19ac43105eaea66b46221a to your computer and use it in GitHub Desktop.
Save okelet/788b07c7ca19ac43105eaea66b46221a to your computer and use it in GitHub Desktop.
[defaults]
host_key_checking = False
inventory = ~/ansible_hosts.ini
library = ~/.ansible/library
display_skipped_hosts = True
nocows = 1
roles_path = ~/.ansible/roles:/etc/ansible/roles
localhost ansible_connection=local
---
- hosts: localhost
connection: local
environment:
http_proxy: http://miproxy.com:8080
https_proxy: http://miproxy.com:8080
tasks:
- name: Install virtualbox key
become: yes
apt_key:
url: https://www.virtualbox.org/download/oracle_vbox.asc
state: absent
- name: configure virtualbox repo
become: yes
apt_repository:
repo: deb http://download.virtualbox.org/virtualbox/debian vivid contrib
filename: virtualbox
mode: 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment