diff options
author | binary <me@rgoncalves.se> | 2020-11-20 19:19:35 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-20 19:19:35 +0100 |
commit | d6059053012fbcd4edef9414a56f14b7f15aa51c (patch) | |
tree | c5a710bb89eaa7f5833470b4e2f762cd16d56f3d | |
parent | 80e38128420f785fb3561f814f33881ff8ebff6d (diff) | |
download | infrastructure-d6059053012fbcd4edef9414a56f14b7f15aa51c.tar.gz |
Add clients/guest in inventory.
-rw-r--r-- | inventory.ini | 7 | ||||
-rw-r--r-- | roles/repositories/files/installurl | 2 | ||||
-rw-r--r-- | roles/repositories/tasks/main.yml | 16 |
3 files changed, 25 insertions, 0 deletions
diff --git a/inventory.ini b/inventory.ini index 296edc7..adac07e 100644 --- a/inventory.ini +++ b/inventory.ini @@ -27,6 +27,13 @@ debian freebsd openbsd +[client] +bentonite +graphite +guest0 +guest1 +guest2 + # all hosts [servers:children] bsd diff --git a/roles/repositories/files/installurl b/roles/repositories/files/installurl new file mode 100644 index 0000000..71117ea --- /dev/null +++ b/roles/repositories/files/installurl @@ -0,0 +1,2 @@ +https://mirror.ungleich.ch/pub/OpenBSD + diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml new file mode 100644 index 0000000..76395f3 --- /dev/null +++ b/roles/repositories/tasks/main.yml @@ -0,0 +1,16 @@ + +# repositories ~~ roles/repositories/tasks/main.yml +# ensure correct repositories are used + +--- + +- name: ensure mirrors for openbsd systems + shell: echo "https://mirror.ungleich.ch/mirror/openbsd" > /etc/installurl + when: os_distribution == "openbsd" + +- name: ensure mirrors for alpine systems + shell: | + echo "https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/main" > /etc/apk/repositories + echo "https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/community" >> /etc/apk/repositories + when: os_distribution == "alpine" + |