Commit 94f03b23 authored by Edward Paul Colone's avatar Edward Paul Colone
Browse files

Retreive lsregistration.yml from role, don't make extra copies.

parent 1d09b601
......@@ -31,8 +31,10 @@ vi inventory/group_vars/all/*
Set up individual host variables with the lsregistration.yml template
```
cp inventory/lsregistration.yml inventory/host_vars/myhostname.yml
vi inventory/host_vars/myhostname.yml
mkdir inventory/host_vars/myhostname
cp roles/ansible-role-perfsonar-testpoint/defaults/lsregistration.yml \
inventory/host_vars/myhostname
vi inventory/host_vars/myhostname/lsregistration.yml
```
Run the playbook:
......
......@@ -14,11 +14,6 @@ mkdir -p $directory/host_vars/
wget -q -P $directory -nc \
https://raw.githubusercontent.com/perfsonar/ansible-playbook-perfsonar/master/inventory/hosts
if ! [ -f $directory/lsregistration.yml ]; then
cp roles/ansible-role-perfsonar-testpoint/defaults/lsregistration.yml \
$directory/
fi
if ! [ -f $directory/group_vars/all/perfsonar/ps_archive.yml ]; then
cp roles/ansible-role-perfsonar-archive/defaults/main.yml \
$directory/group_vars/all/perfsonar/ps_archive.yml
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment