openSUSE / ansible-obs

Some playbooks to operate OBS
1 stars 10 forks source link

make sure we don't mix localhost with remote host variable scopes #23

Open vpereira opened 3 years ago

vpereira commented 3 years ago

Looking the code:

https://github.com/openSUSE/ansible-obs/blob/master/roles/run_migrations/tasks/main.yml#L10

It won't work since registered variables are per host. So the check_migration_command is running on localhost and the block section should be running on production and because localhost != obs_server, the variable migration_available isn't available in the block section