Refactored install_puppet.sh into common playbook

This commit is contained in:
Ricardo Carrillo Cruz 2015-04-13 15:50:39 +02:00
parent a30a5cb4f4
commit 178a5476ae
2 changed files with 12 additions and 4 deletions

View File

@ -1,8 +1,4 @@
---
# Install puppet
- command: bash /opt/system-config/production/install_puppet.sh
tags: install_puppet
# Install puppet modules
- command: bash /opt/system-config/production/install_modules.sh
tags: install_puppet_modules

View File

@ -4,3 +4,15 @@
# Install git
- apt: name=git
# Clone system-config
- git: repo="{{ system_config_repo_https_url }}"
dest=/opt/system-config/production
accept_hostkey=True
version="{{ system_config_branch }}"
force=True
tags: clone_system_config
# Install puppet
- command: bash /opt/system-config/production/install_puppet.sh
tags: install_puppet