Ricardo Carrillo Cruz 5cf27e411f Refactor common and bootstrap_puppet_infra_node roles
Moving the setup of Puppetlabs apt repo and installation
of puppet packages to common role.
The bootstrap_puppet_infra_node now only configures puppet.conf
and enables the puppet agent.
2015-08-27 10:31:56 +02:00

19 lines
546 B
YAML

---
- name: Get deb package for Puppetlabs repository
get_url: >
url=https://apt.puppetlabs.com/puppetlabs-release-{{ansible_distribution_release}}.deb
dest=/tmp/puppetlabs-release-{{ansible_distribution_release}}.deb
- name: Install Puppetlabs repository deb package
apt: deb=/tmp/puppetlabs-release-{{ansible_distribution_release}}.deb
- name: Update packages
apt: update_cache=yes
- name: Install Puppet and other required packages
apt: name={{ item }} state=installed
with_items:
- git
- python-pip
- puppet