system-config/playbooks/roles/disable-puppet-agent/tasks/main.yaml
Monty Taylor 8193a01742 Stop running mcollective
The puppet-agent package has added mcollective as a service that
just gets run, so we have a ton of servers, basically anything
that has been rebooted since the package update, that are running
an mcollective daemon that is trying and failing to connect to
the mcollective system that does not exist.

Add a disabling of the mcollective unit to the disable-puppet-agent
role. Also - add disable-puppet-agent everywhere. We'll re-remove
it later, but let's make sure we've got this turned off on all
of our non-puppet hosts now too.

Change-Id: I5c6235e88e5aac3fee85f58d762023c793635f42
2020-05-05 15:00:04 -05:00

21 lines
436 B
YAML

- name: Include OS-specific tasks
include_tasks: "{{ item }}"
vars:
params:
files: "{{ distro_lookup_path }}"
loop: "{{ query('first_found', params, errors='ignore') }}"
- name: Disable the puppet service
service:
name: puppet
enabled: no
state: stopped
failed_when: false
- name: Disable the mcollective service
service:
name: mcollective
enabled: no
state: stopped
failed_when: false