---
- name: Check if Puppet service definition exists
  stat: path=/etc/init.d/puppet
  register: puppet_installed
  when: "'development' in group_names"

- name: Stop Puppet service
  service: name=puppet state=stopped
  when: puppet_installed.stat.exists and 'development' in group_names

- name: Remove Puppet service
  file: path=/etc/init.d/puppet state=absent
  when: puppet_installed.stat.exists and 'development' in group_names

---
- name: Check if Puppet service definition exists
  stat: path=/etc/init.d/puppet
  register: puppet_installed
  when: "'development' in group_names"

- name: Stop Puppet service
  service: name=puppet state=stopped
  when: puppet_installed.stat.exists and 'development' in group_names

- name: Remove Puppet service
  file: path=/etc/init.d/puppet state=absent
  when: puppet_installed.stat.exists and 'development' in group_names

- name: Check if Chef service definition exists
  stat: path=/etc/init.d/chef-client
  register: chef_installed
  when: "'development' in group_names"

- name: Stop Chef service
  service: name=chef-client state=stopped
  when: chef_installed.stat.exists and 'development' in group_names

- name: Remove Chef service
  file: path=/etc/init.d/chef-client state=absent
  when: chef_installed.stat.exists and 'development' in group_names

Remove Chef service in development
Remove Chef service in development

The Ubuntu 14.04 (Trusty) Vagrant box has the `chef-client` service
running by default. This changeset removes the `chef-client` service if
it exists in development.
