From a8e2e7dece85065510376ce23218f20f6e9aa530 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 19 Oct 2022 18:09:08 +0200 Subject: [PATCH] lbu commit doesn't need a full role --- deploy.yml | 7 +++++-- roles/lbu_commit/tasks/main.yml | 5 ----- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 roles/lbu_commit/tasks/main.yml diff --git a/deploy.yml b/deploy.yml index f485a63..e8ec7aa 100644 --- a/deploy.yml +++ b/deploy.yml @@ -120,8 +120,11 @@ - snitch - suricata become: true - roles: - - lbu_commit + post_tasks: + - name: lbu commit + lbu: + commit: true + when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"] - name: mount ro hosts: diff --git a/roles/lbu_commit/tasks/main.yml b/roles/lbu_commit/tasks/main.yml deleted file mode 100644 index 01397e5..0000000 --- a/roles/lbu_commit/tasks/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: lbu commit - lbu: - commit: true - when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]