diff --git a/inventories/inventory_home.ini b/inventories/inventory_home.ini new file mode 100644 index 0000000..06133a8 --- /dev/null +++ b/inventories/inventory_home.ini @@ -0,0 +1,9 @@ +[pi] +raspberrypi1.seboto.net +raspberrypi2.seboto.net +raspberrypi3.seboto.net +raspberrypi4.seboto.net +raspberrypi5.seboto.net + +[pi:vars] +ansible_user=pi diff --git a/inventories/inventory_jens.ini b/inventories/inventory_jens.ini new file mode 100644 index 0000000..1527964 --- /dev/null +++ b/inventories/inventory_jens.ini @@ -0,0 +1,35 @@ +#server1.seboto.net ansible_user=jens +#server1.seboto.net ansible_user=root +server1.seboto.net + +[alma] +alma1.seboto.net + +[seboto] +srv1.seboto.de +srv2.seboto.de +srv3.seboto.de + +[pi] +raspberrypi1.seboto.net +raspberrypi2.seboto.net +raspberrypi3.seboto.net +raspberrypi4.seboto.net +raspberrypi5.seboto.net + +[one] +srv1.seboto.de +raspberrypi1.seboto.net + +[vip] +srv2.seboto.de +raspberrypi3.seboto.net + +[pi:vars] +ansible_user=pi + +[alma:vars] +ansible_user=jens + +[all:vars] +ansible_python_interpreter=/usr/bin/python3 diff --git a/inventories/inventory_jens.yml b/inventories/inventory_jens.yml new file mode 100644 index 0000000..90908d7 --- /dev/null +++ b/inventories/inventory_jens.yml @@ -0,0 +1,31 @@ +--- +all: + hosts: + server1.seboto.net: + ansible_user: jens + children: + seboto: + hosts: + srv1.seboto.de: + srv2.seboto.de: + srv3.seboto.de: + pi: + hosts: + raspberrypi1.seboto.net: + ansible_user: pi + raspberrypi2.seboto.net: + ansible_user: pi + raspberrypi3.seboto.net: + ansible_user: pi + raspberrypi4.seboto.net: + ansible_user: pi + raspberrypi5.seboto.net: + ansible_user: pi + vip: + hosts: + srv2.seboto.de: + raspberrypi3.seboto.net: + ansible_user: pi + vars: + ansible_python_interpreter: /usr/bin/python3 +... diff --git a/inventories/inventory_jh b/inventories/inventory_jh new file mode 100644 index 0000000..7601bd5 --- /dev/null +++ b/inventories/inventory_jh @@ -0,0 +1,25 @@ +[seboto] +srv1.seboto.de +srv2.seboto.de +srv3.seboto.de + +[pi] +raspberrypi1.seboto.net +raspberrypi2.seboto.net +raspberrypi3.seboto.net +raspberrypi4.seboto.net +raspberrypi5.seboto.net + +[one] +srv1.seboto.de +raspberrypi1.seboto.net + +[vip] +srv2.seboto.de +raspberrypi3.seboto.net + +[pi:vars] +ansible_user=pi + +[all:vars] +ansible_python_interpreter=/usr/bin/python3 diff --git a/inventories/inventory_jh.ini b/inventories/inventory_jh.ini new file mode 100644 index 0000000..7601bd5 --- /dev/null +++ b/inventories/inventory_jh.ini @@ -0,0 +1,25 @@ +[seboto] +srv1.seboto.de +srv2.seboto.de +srv3.seboto.de + +[pi] +raspberrypi1.seboto.net +raspberrypi2.seboto.net +raspberrypi3.seboto.net +raspberrypi4.seboto.net +raspberrypi5.seboto.net + +[one] +srv1.seboto.de +raspberrypi1.seboto.net + +[vip] +srv2.seboto.de +raspberrypi3.seboto.net + +[pi:vars] +ansible_user=pi + +[all:vars] +ansible_python_interpreter=/usr/bin/python3 diff --git a/inventories/inventory_pi.ini b/inventories/inventory_pi.ini new file mode 100644 index 0000000..d7c7ae0 --- /dev/null +++ b/inventories/inventory_pi.ini @@ -0,0 +1,6 @@ +[pi] +raspberrypi1.seboto.net +raspberrypi2.seboto.net +raspberrypi3.seboto.net +raspberrypi4.seboto.net +raspberrypi5.seboto.net diff --git a/inventories/inventory_pi.yml b/inventories/inventory_pi.yml new file mode 100644 index 0000000..7626d13 --- /dev/null +++ b/inventories/inventory_pi.yml @@ -0,0 +1,9 @@ +--- +all: + hosts: + raspberrypi1.seboto.net: + raspberrypi2.seboto.net: + raspberrypi3.seboto.net: + raspberrypi4.seboto.net: + raspberrypi5.seboto.net: +... diff --git a/inventories/inventory_seboto.ini b/inventories/inventory_seboto.ini new file mode 100644 index 0000000..ab63eee --- /dev/null +++ b/inventories/inventory_seboto.ini @@ -0,0 +1,4 @@ +[vps] +srv1.seboto.de +srv2.seboto.de +srv3.seboto.de diff --git a/inventories/inventory_seboto.yml b/inventories/inventory_seboto.yml new file mode 100644 index 0000000..545871f --- /dev/null +++ b/inventories/inventory_seboto.yml @@ -0,0 +1,7 @@ +--- +all: + hosts: + srv1.seboto.de: + srv2.seboto.de: + srv3.seboto.de: +... diff --git a/playbooks/play1.yml b/playbooks/play1.yml new file mode 100644 index 0000000..21ec165 --- /dev/null +++ b/playbooks/play1.yml @@ -0,0 +1,11 @@ +--- +- name: playbook for test + hosts: server1.seboto.net + remote_user: test1 + + tasks: + - name: Test Message + debug: + msg: "This is a test" +... +