Fix download location for install_puppet.sh

get_url does not create folders on its own, thus downloading
the install_puppet.sh file to /tmp
This commit is contained in:
Ricardo Carrillo Cruz 2015-04-14 09:36:15 +02:00
parent 6ec7d2c6d4
commit c8576380c2

View File

@ -5,15 +5,18 @@
# Download install_puppet.sh from system-config
- get_url:
url=https://git.openstack.org/cgit/openstack-infra/system-config/plain/install_puppet.sh
dest=/tmp/infra-ansible/install_puppet.sh
dest=/tmp/install_puppet.sh
# Install puppet
- command: bash /tmp/infra-ansible/install_puppet.sh
- command: bash -x /tmp/install_puppet.sh
tags: install_puppet
# Deploy puppet.conf template
- template: src=puppet.conf.j2 dest=/etc/puppet/puppet.conf
# Set puppet service running
- service: name=puppet enabled=yes state=started
# Run puppet agent to request certificate
- command: puppet agent --test
ignore_errors: True