Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: refresh_inventory doesn't seem to work #26

Open
tonyreveal opened this issue Sep 25, 2021 · 0 comments
Open

meta: refresh_inventory doesn't seem to work #26

tonyreveal opened this issue Sep 25, 2021 · 0 comments

Comments

@tonyreveal
Copy link
Collaborator

tonyreveal commented Sep 25, 2021

Testing with Tower 3.8.4-1 and Ansible 2.9.25.

The tower_inventory role has a step to refresh the inventory:

  - name: refresh_inventory
    meta: refresh_inventory

When running any of the *_standup or *_failover playbooks, the tower.ini is getting updated with the appropriate inventory file:

TASK [tower_inventory : debug] *****************************************************************************************************************
ok: [localhost -> localhost] =>
  msg: setting inventory to inventory_ha_dr/inventory_pm

TASK [tower_inventory : populate inventory ini with inventory_ha_dr/inventory_pm] **************************************************************
ok: [localhost -> localhost]

But the inventory is not refreshed. As a result the following plays will skip with no matching hosts.

To workaround the issue you can run ansible-playbook with -i inventory_ha_dr/inventory_pm (or whichever inventory file you need to use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant