Skip to content

Commit

Permalink
Add variable to allow disabling cloud connector
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Feb 11, 2021
1 parent d69a82c commit e8ef53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ skip_satellite_org_id_list:
- 0
source_display_name: "{{ satellite_url|urlsplit('hostname') }}"
http_proxy: ""
cloud_connector_enabled: true
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
- name: Enable Receptor systemd units
systemd:
unit: "receptor@{{ item }}.service"
enabled: yes
state: started
enabled: "{{ cloud_connector_enabled }}"
state: "{{ cloud_connector_enabled | ternary('started', 'stopped') }}"
loop: "{{ account_dirs }}"
tags: install_into_systemd
become: yes

0 comments on commit e8ef53c

Please sign in to comment.