From 3483441ee74fc219cbd5d306eac909a41bc73c98 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 27 Aug 2015 10:37:06 +0200 Subject: [PATCH] Remove the installation and execution of puppet agent The installation of the puppet agent is now done in the common role, plus the execution of the puppet agent is now done via the run_on_ top-level playbooks. --- roles/bootstrap_puppetmaster/tasks/main.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/roles/bootstrap_puppetmaster/tasks/main.yml b/roles/bootstrap_puppetmaster/tasks/main.yml index 4847d98..762f73d 100644 --- a/roles/bootstrap_puppetmaster/tasks/main.yml +++ b/roles/bootstrap_puppetmaster/tasks/main.yml @@ -2,9 +2,7 @@ - name: Install required packages apt: name={{ item }} state=installed with_items: - - puppet - puppetmaster-passenger - - puppetmaster - python-paramiko - name: Download install_modules.sh script @@ -98,11 +96,8 @@ - name: Start puppet agent service service: name=puppet enabled=yes state=started -- name: Start puppet agent - service: name=puppetmaster enabled=yes state=started +- name: Start apache2 for Puppetmaster passenger + service: name=apache2 enabled=yes state=started - name: Enable puppet agent, as it is disabled upon installation command: puppet agent --enable - -- name: Run puppet agent to apply configuration - puppet: