ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 2280c051a4dc1b43c0163484ba62f4a9279dce53
parent 8458f907a4a4a4a645b1f301cbf03c7a12875e6d
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue,  1 Sep 2020 01:22:32 +0300

openbsd: Use a variable for installurl location

Diffstat:
ansible/inventory/host_vars/cronner/openbsd.yml | 3+++
ansible/roles/openbsd/files/installurl | 1-
ansible/roles/openbsd/tasks/main.yml | 4++--
ansible/roles/openbsd/templates/installurl | 1+
4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ansible/inventory/host_vars/cronner/openbsd.yml b/ansible/inventory/host_vars/cronner/openbsd.yml @@ -0,0 +1,3 @@ +--- + +openbsd__installurl_location: "https://openbsd.amsterdam/pub/OpenBSD" diff --git a/ansible/roles/openbsd/files/installurl b/ansible/roles/openbsd/files/installurl @@ -1 +0,0 @@ -https://ftp.fr.openbsd.org/pub/OpenBSD diff --git a/ansible/roles/openbsd/tasks/main.yml b/ansible/roles/openbsd/tasks/main.yml @@ -1,7 +1,7 @@ --- -- name: Copy installurl - copy: +- name: Template installurl + template: src: installurl dest: /etc/installurl diff --git a/ansible/roles/openbsd/templates/installurl b/ansible/roles/openbsd/templates/installurl @@ -0,0 +1 @@ +{{ openbsd__installurl_location | default('https://ftp.fr.openbsd.org/pub/OpenBSD') }}