Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tsotne Gozalishvili
ansible-playbook-perfsonar
Commits
94f03b23
Commit
94f03b23
authored
Oct 15, 2019
by
Edward Paul Colone
Browse files
Retreive lsregistration.yml from role, don't make extra copies.
parent
1d09b601
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
94f03b23
...
...
@@ -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:
...
...
defaults.sh
View file @
94f03b23
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment