From 6eb316499fadc851b41ff8f4253f714b3bef6b7c Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 21 Nov 2017 07:27:04 +0000 Subject: [PATCH] Remove unused variable and handlers The variable repo_auto_rebuild appears to have been introduced in kilo, but never used. The 'Init reload' handler is no longer required as all services are now managed via systemd and the service module. The 'reload ssh' handler is also unused. Change-Id: I1078ff7d2bd1acd0d1cea90fb90bc632386f0daf --- defaults/main.yml | 2 -- handlers/main.yml | 8 -------- 2 files changed, 10 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index c79d368..b091fa8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -31,8 +31,6 @@ repo_service_home_folder: /var/www repo_service_user_name: nginx repo_service_group_name: www-data -repo_auto_rebuild: false - # If you want to regenerate the repo users SSH keys, on each run, set this var to True # Otherwise keys will be generated on the first run and not regenerated each run. repo_recreate_keys: False diff --git a/handlers/main.yml b/handlers/main.yml index 256aa5e..efac334 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Init reload - command: "initctl reload-configuration" - - name: reload nginx service: name: "nginx" @@ -34,11 +31,6 @@ state: restarted enabled: yes -- name: reload ssh - service: - name: "ssh" - state: restarted - - name: reload lsyncd service: name: "lsyncd"