kolla-ansible/ansible/roles/bifrost/tasks/deploy-servers.yml
Christian Berendt ea5b4d7e26 [bifrost] add bifrost_deploy_verbosity parameter
With the parameter bifrost_deploy_verbosity it is possible
to set the verbosity of the bootstrap of Bifrost.

This makes it possible to reduce verbosity when running
/bifrost/playbooks/install.yaml if needed.

Change-Id: I5815220f2193a492ae7e1f63443075790ae7aaef
2022-04-24 18:07:30 +02:00

21 lines
799 B
YAML

---
- name: Enrolling physical servers with ironic
become: true
command: >
docker exec bifrost_deploy
bash -c 'export OS_CLOUD=bifrost &&
export BIFROST_INVENTORY_SOURCE=/etc/bifrost/servers.yml &&
ansible-playbook {{ bifrost_deploy_verbosity }}}
-i /bifrost/playbooks/inventory/bifrost_inventory.py
/bifrost/playbooks/enroll-dynamic.yaml -e @/etc/bifrost/bifrost.yml'
- name: Deploy physical servers with ironic
become: true
command: >
docker exec bifrost_deploy
bash -c 'export OS_CLOUD=bifrost &&
export BIFROST_INVENTORY_SOURCE=/etc/bifrost/servers.yml &&
ansible-playbook {{ bifrost_deploy_verbosity }}
-i /bifrost/playbooks/inventory/bifrost_inventory.py
/bifrost/playbooks/deploy-dynamic.yaml -e @/etc/bifrost/bifrost.yml'