From 02f11ec11271a3bb906309f060becc7adee4559d Mon Sep 17 00:00:00 2001 From: Jean-Marie Gervais Date: Fri, 8 Dec 2023 09:49:20 +0100 Subject: [PATCH] fix: run backup task only when specified --- roles/hadoop/client/tasks/config.yml | 3 +-- roles/hbase/client/tasks/config.yml | 3 +-- roles/hbase/master/tasks/config.yml | 3 +-- roles/hbase/phoenix/queryserver/client/tasks/config.yml | 3 +-- roles/hbase/phoenix/queryserver/daemon/tasks/config.yml | 3 +-- roles/hbase/regionserver/tasks/config.yml | 3 +-- roles/hbase/rest/tasks/config.yml | 3 +-- roles/hdfs/datanode/tasks/config.yml | 3 +-- roles/hdfs/httpfs/tasks/config.yml | 3 +-- roles/hdfs/journalnode/tasks/config.yml | 3 +-- roles/hdfs/namenode/tasks/config.yml | 3 +-- roles/hive/client/tasks/config.yml | 3 +-- roles/hive/hiveserver2/tasks/config.yml | 3 +-- roles/hive/metastore/tasks/config.yml | 3 +-- roles/knox/gateway/tasks/config.yml | 3 +-- roles/spark/client/tasks/config.yml | 3 +-- roles/spark/historyserver/tasks/config.yml | 3 +-- roles/yarn/apptimelineserver/tasks/config.yml | 3 +-- roles/yarn/jobhistoryserver/tasks/config.yml | 3 +-- roles/yarn/nodemanager/tasks/config.yml | 3 +-- roles/yarn/resourcemanager/tasks/config.yml | 3 +-- roles/zookeeper/client/tasks/config.yml | 3 +-- roles/zookeeper/server/tasks/config.yml | 3 +-- 23 files changed, 23 insertions(+), 46 deletions(-) diff --git a/roles/hadoop/client/tasks/config.yml b/roles/hadoop/client/tasks/config.yml index baed6700..50e44753 100644 --- a/roles/hadoop/client/tasks/config.yml +++ b/roles/hadoop/client/tasks/config.yml @@ -10,8 +10,7 @@ owner: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/hbase/client/tasks/config.yml b/roles/hbase/client/tasks/config.yml index 772f7e8b..78ee2b62 100644 --- a/roles/hbase/client/tasks/config.yml +++ b/roles/hbase/client/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hbase/master/tasks/config.yml b/roles/hbase/master/tasks/config.yml index 3a71e1ac..bd863b2f 100644 --- a/roles/hbase/master/tasks/config.yml +++ b/roles/hbase/master/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hbase/phoenix/queryserver/client/tasks/config.yml b/roles/hbase/phoenix/queryserver/client/tasks/config.yml index 3c25fdcb..4dfa352e 100644 --- a/roles/hbase/phoenix/queryserver/client/tasks/config.yml +++ b/roles/hbase/phoenix/queryserver/client/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hbase/phoenix/queryserver/daemon/tasks/config.yml b/roles/hbase/phoenix/queryserver/daemon/tasks/config.yml index 4c12bc43..812eda1d 100644 --- a/roles/hbase/phoenix/queryserver/daemon/tasks/config.yml +++ b/roles/hbase/phoenix/queryserver/daemon/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hbase/regionserver/tasks/config.yml b/roles/hbase/regionserver/tasks/config.yml index 5ce591f4..11827fdc 100644 --- a/roles/hbase/regionserver/tasks/config.yml +++ b/roles/hbase/regionserver/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hbase/rest/tasks/config.yml b/roles/hbase/rest/tasks/config.yml index 93545e3a..e7771654 100644 --- a/roles/hbase/rest/tasks/config.yml +++ b/roles/hbase/rest/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hbase-env.sh ansible.builtin.template: diff --git a/roles/hdfs/datanode/tasks/config.yml b/roles/hdfs/datanode/tasks/config.yml index 3c0d1b2b..7017085b 100644 --- a/roles/hdfs/datanode/tasks/config.yml +++ b/roles/hdfs/datanode/tasks/config.yml @@ -10,8 +10,7 @@ owner: "{{ hdfs_user }}" mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/hdfs/httpfs/tasks/config.yml b/roles/hdfs/httpfs/tasks/config.yml index 41e601d9..e2a28f6a 100644 --- a/roles/hdfs/httpfs/tasks/config.yml +++ b/roles/hdfs/httpfs/tasks/config.yml @@ -10,8 +10,7 @@ owner: "{{ hdfs_user }}" mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/hdfs/journalnode/tasks/config.yml b/roles/hdfs/journalnode/tasks/config.yml index eb0df02b..25e451f3 100644 --- a/roles/hdfs/journalnode/tasks/config.yml +++ b/roles/hdfs/journalnode/tasks/config.yml @@ -10,8 +10,7 @@ owner: "{{ hdfs_user }}" mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/hdfs/namenode/tasks/config.yml b/roles/hdfs/namenode/tasks/config.yml index 05f262b4..3cbd40a0 100644 --- a/roles/hdfs/namenode/tasks/config.yml +++ b/roles/hdfs/namenode/tasks/config.yml @@ -10,8 +10,7 @@ owner: "{{ hdfs_user }}" mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/hive/client/tasks/config.yml b/roles/hive/client/tasks/config.yml index f0c1e194..c768bd68 100644 --- a/roles/hive/client/tasks/config.yml +++ b/roles/hive/client/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Create hive credentials store ansible.builtin.command: >- diff --git a/roles/hive/hiveserver2/tasks/config.yml b/roles/hive/hiveserver2/tasks/config.yml index 7d19e3e7..f065fa53 100644 --- a/roles/hive/hiveserver2/tasks/config.yml +++ b/roles/hive/hiveserver2/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hive-env.sh ansible.builtin.template: diff --git a/roles/hive/metastore/tasks/config.yml b/roles/hive/metastore/tasks/config.yml index 5aeb25e7..c899794c 100644 --- a/roles/hive/metastore/tasks/config.yml +++ b/roles/hive/metastore/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Create hive credentials store ansible.builtin.import_role: diff --git a/roles/knox/gateway/tasks/config.yml b/roles/knox/gateway/tasks/config.yml index ed07c7e5..5e74a48e 100644 --- a/roles/knox/gateway/tasks/config.yml +++ b/roles/knox/gateway/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Copy services definition to data directory ansible.builtin.copy: diff --git a/roles/spark/client/tasks/config.yml b/roles/spark/client/tasks/config.yml index f027a73b..2da5a0dd 100644 --- a/roles/spark/client/tasks/config.yml +++ b/roles/spark/client/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template spark-env.sh ansible.builtin.template: diff --git a/roles/spark/historyserver/tasks/config.yml b/roles/spark/historyserver/tasks/config.yml index e261695e..30b3d1bc 100644 --- a/roles/spark/historyserver/tasks/config.yml +++ b/roles/spark/historyserver/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template spark-env.sh ansible.builtin.template: diff --git a/roles/yarn/apptimelineserver/tasks/config.yml b/roles/yarn/apptimelineserver/tasks/config.yml index 24cc943d..6e3c55c7 100644 --- a/roles/yarn/apptimelineserver/tasks/config.yml +++ b/roles/yarn/apptimelineserver/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/yarn/jobhistoryserver/tasks/config.yml b/roles/yarn/jobhistoryserver/tasks/config.yml index 53740308..c48b1155 100644 --- a/roles/yarn/jobhistoryserver/tasks/config.yml +++ b/roles/yarn/jobhistoryserver/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/yarn/nodemanager/tasks/config.yml b/roles/yarn/nodemanager/tasks/config.yml index 6462c495..cdaaef09 100644 --- a/roles/yarn/nodemanager/tasks/config.yml +++ b/roles/yarn/nodemanager/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/yarn/resourcemanager/tasks/config.yml b/roles/yarn/resourcemanager/tasks/config.yml index 5d79c733..55984455 100644 --- a/roles/yarn/resourcemanager/tasks/config.yml +++ b/roles/yarn/resourcemanager/tasks/config.yml @@ -10,8 +10,7 @@ group: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template hadoop-env.sh ansible.builtin.template: diff --git a/roles/zookeeper/client/tasks/config.yml b/roles/zookeeper/client/tasks/config.yml index 96c52b53..9767922b 100644 --- a/roles/zookeeper/client/tasks/config.yml +++ b/roles/zookeeper/client/tasks/config.yml @@ -10,8 +10,7 @@ owner: root mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template zoo.cfg ansible.builtin.template: diff --git a/roles/zookeeper/server/tasks/config.yml b/roles/zookeeper/server/tasks/config.yml index b87c8c70..5bf71475 100644 --- a/roles/zookeeper/server/tasks/config.yml +++ b/roles/zookeeper/server/tasks/config.yml @@ -10,8 +10,7 @@ owner: "{{ zookeeper_user }}" mode: "755" remote_src: true - tags: - - backup + tags: ['backup', 'never'] - name: Template zoo.cfg ansible.builtin.template: