diff --git a/launch/launch-node.py b/launch/launch-node.py index fd84aa89b2..3aaf6ee0be 100644 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -256,10 +256,12 @@ def main(): options.network, options.boot_from_volume, options.config_drive) dns.print_dns(cloud, server) - # Remove the ansible inventory cache so that next run finds the new - # server - if os.path.exists('/var/cache/ansible-inventory/ansible-inventory.cache'): - os.unlink('/var/cache/ansible-inventory/ansible-inventory.cache') + + # Zero the ansible inventory cache so that next run finds the new server + inventory_cache = '/var/cache/ansible-inventory/ansible-inventory.cache' + if os.path.exists(inventory_cache): + with open(inventory_cache, 'w'): + pass os.system('/usr/local/bin/expand-groups.sh') if __name__ == '__main__': diff --git a/modules/openstack_project/manifests/puppetmaster.pp b/modules/openstack_project/manifests/puppetmaster.pp index 0ce6c31ded..5cb3285bb1 100644 --- a/modules/openstack_project/manifests/puppetmaster.pp +++ b/modules/openstack_project/manifests/puppetmaster.pp @@ -227,7 +227,7 @@ class openstack_project::puppetmaster ( vcsrepo { '/opt/ansible': ensure => latest, provider => git, - revision => 'stable-2.0', + revision => 'devel', source => 'https://github.com/ansible/ansible', }