aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapply_roles17
-rwxr-xr-xdeploy3
-rw-r--r--inventory.yml10
3 files changed, 10 insertions, 20 deletions
diff --git a/apply_roles b/apply_roles
deleted file mode 100755
index 8b0aa51..0000000
--- a/apply_roles
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-#
-# Apply specific ansible tags/roles to selected machine
-
-# @usage
-# Help fonction
-function usage() {
- echo "Usage: ${0} \"role1 role2 .. roleN\" [ANSIBLE_ARGUMENTS]"
-}
-
-for role in ${1}; do
- ansible_args=$(echo "${@:2}")
- ansible-playbook ${ansible_args} --tags "${role}"
-done
-
-
-
diff --git a/deploy b/deploy
new file mode 100755
index 0000000..5886a49
--- /dev/null
+++ b/deploy
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ansible-playbook playbooks/p.yml -e "${@}"
diff --git a/inventory.yml b/inventory.yml
index cbac238..a3ab73e 100644
--- a/inventory.yml
+++ b/inventory.yml
@@ -55,11 +55,11 @@ all:
tcp:
ssh: "22"
nextcloud: "80"
- vmm:
+ vm:
enabled: true
hosts:
- vm-stack0-minecraft:
- vm-stack0-nextcloud:
+ - "vm-stack0-minecraft"
+ - "vm-stack0-nextcloud"
# SERVER for personnal file sync
emb0:
@@ -76,11 +76,15 @@ all:
ansible_host: "vm-stack0-minecraft"
enabled: true
iso: "alpine"
+ memory: "2G"
+ size: "4G"
vm-stack0-nextcloud:
ansible_host: "vm-stack0-nextcloud"
enabled: true
iso: "alpine"
+ memory: "2G"
+ size: "4G"
# ---
remember that computers suck.