diff options
author | Anoop C S <anoopcs@redhat.com> | 2019-08-24 17:13:36 +0530 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2020-02-28 14:00:24 +0100 |
commit | aab78c08faba30c4a174b1193e9b52d911ff57f8 (patch) | |
tree | f853c88878c6dde0d9dd15412536b0c185afb0cd | |
parent | bcdfd558f751303a5342a05ec08d45bc46a97316 (diff) | |
download | samba-integration-aab78c08faba30c4a174b1193e9b52d911ff57f8.tar.gz samba-integration-aab78c08faba30c4a174b1193e9b52d911ff57f8.tar.xz samba-integration-aab78c08faba30c4a174b1193e9b52d911ff57f8.zip |
Add ansible playbook for provisioning nodes
Signed-off-by: Anoop C S <anoopcs@redhat.com>
-rw-r--r-- | vagrant/Vagrantfile | 7 | ||||
-rw-r--r-- | vagrant/roles/install/tasks/main.yml | 9 | ||||
-rw-r--r-- | vagrant/site.yml | 5 |
3 files changed, 21 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index c8852cd..0f3170e 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -33,6 +33,13 @@ Vagrant.configure("2") do |config| lv.cpus = 2 end end + + if i == (NODES-1) + storage.vm.provision :ansible do |ansible| + ansible.limit = "all" + ansible.playbook = "site.yml" + end + end end end end diff --git a/vagrant/roles/install/tasks/main.yml b/vagrant/roles/install/tasks/main.yml new file mode 100644 index 0000000..03e099e --- /dev/null +++ b/vagrant/roles/install/tasks/main.yml @@ -0,0 +1,9 @@ +- name: Perform a complete update + yum: + name: '*' + state: latest + +- name: Enable EPEL repository + yum: + name: epel-release + state: latest diff --git a/vagrant/site.yml b/vagrant/site.yml new file mode 100644 index 0000000..e417a03 --- /dev/null +++ b/vagrant/site.yml @@ -0,0 +1,5 @@ +- hosts: all + become: yes + become_method: sudo + roles: + - install |