Skip to content

Commit 0033b37

Browse files
committed
added provisioner for ansible
1 parent d08101d commit 0033b37

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Vagrantfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Vagrant.configure("2") do |config|
4343

4444
config.vm.provision "aws", type: "shell", run: "never", path: "provisioner/aws.sh"
4545

46+
config.vm.provision "ansible", type: "shell", run: "never", path: "provisioner/ansible.sh"
47+
4648
config.vm.provision "final", type: "shell", args: [USER_NAME], run: "never", path: "provisioner/final.sh"
4749
end
4850

provisioner/ansible.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
dnf install -y ansible
5+
6+
echo -e "finished..."

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
vagrant up --provider libvirt --provision-with main,toolbox,angular,terraform,kubectl,postman,code,helm,slack,aws,final
3+
vagrant up --provider libvirt --provision-with main,toolbox,angular,terraform,kubectl,postman,code,helm,slack,aws,ansible,final

0 commit comments

Comments
 (0)