mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Commit initial Ansible files
Add `ansible.cfg` and `provision.yml` as initial versions of Ansible configuration/provisioning tools to turn up the OVN environment (will be called by Vagrant) Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
parent
217e3f5af6
commit
fb99b1682f
2 changed files with 27 additions and 0 deletions
5
ovn/ansible.cfg
Normal file
5
ovn/ansible.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[defaults]
|
||||
inventory = ./.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
|
||||
private_key_file = ~/.vagrant.d/insecure_private_key
|
||||
remote_user = vagrant
|
||||
host_key_checking = False
|
||||
22
ovn/provision.yml
Normal file
22
ovn/provision.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- hosts: "all"
|
||||
become: "yes"
|
||||
remote_user: "vagrant"
|
||||
|
||||
tasks:
|
||||
- name: "Add Ubuntu Cloud Archive repository"
|
||||
apt_repository:
|
||||
repo: "{{ item }}"
|
||||
state: "present"
|
||||
with_items:
|
||||
- "deb http://cloud.archive.ubuntu.com/ubuntu newton main"
|
||||
|
||||
- name: "Install OVS/OVN 2.6.0"
|
||||
apt:
|
||||
state: "present"
|
||||
update_cache: "yes"
|
||||
name: "{{ item }}"
|
||||
with_items:
|
||||
- "openvswitch-switch"
|
||||
- "openvswitch-common"
|
||||
- "ovn-controller"
|
||||
Loading…
Reference in a new issue