Ignore --limit for localhost plays
If using the kayobe --limit <hosts> argument, only those hosts matching the limit will have an inventory generated for Kolla Ansible. This can cause problems for Kolla Ansible, even when using a similar limit via --kolla-limit <hosts>, since it gathers facts for all hosts, and expects all host variables to be defined. This change adds a new 'ignore_limit' argument to the playbook running methods, which allows us to override and ignore the --limit argument provided by the user, ensuring that we always run these plays. Change-Id: I104d6af48ddd916460ee454e17a50a2475de6bff Story: 2004805 Task: 28960
Showing
- kayobe/ansible.py 6 additions, 4 deletionskayobe/ansible.py
- kayobe/cli/commands.py 56 additions, 56 deletionskayobe/cli/commands.py
- kayobe/tests/unit/cli/test_commands.py 55 additions, 15 deletionskayobe/tests/unit/cli/test_commands.py
- kayobe/tests/unit/test_ansible.py 29 additions, 0 deletionskayobe/tests/unit/test_ansible.py
Loading
Please register or sign in to comment