From 0a9cee90e9a26c25e3d50aab400d90847187c595 Mon Sep 17 00:00:00 2001 From: Kevin Velarde Date: Tue, 10 Sep 2024 23:07:42 -0600 Subject: [PATCH] Fix ansible lint issues in playbooks --- .ansible-lint | 4 +++- galaxy.yml | 11 ++++++----- playbooks/install_active_standby.yml | 13 ------------- playbooks/prometheus.yml | 4 ++-- 4 files changed, 11 insertions(+), 21 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 4e77ee1d..a8d7896b 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -3,9 +3,11 @@ # Exclude these files from the linter exclude_paths: - - .gitlab + - .git* # Rules that we feel should not be errors but warnings warn_list: - yaml[line-length] - var-naming[no-role-prefix] + - meta-runtime[unsupported-version] + - run-once[task] diff --git a/galaxy.yml b/galaxy.yml index c892701e..9380bdb7 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -16,11 +16,11 @@ readme: README.md # A list of the collection's content authors. Can be just the name or in the format 'Full Name (url) # @nicks:irc/im.site#channel' authors: -- Steven Schattenberg -- Travis Nicks -- Kevin Velarde -- Peter Sprygada -- Nick Andreano + - Steven Schattenberg + - Travis Nicks + - Kevin Velarde + - Peter Sprygada + - Nick Andreano ### OPTIONAL but strongly recommended # A short summary description of the collection @@ -38,6 +38,7 @@ license_file: 'LICENSE' # A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character # requirements as 'namespace' and 'name' tags: + - tools - itential - deployer diff --git a/playbooks/install_active_standby.yml b/playbooks/install_active_standby.yml index 7bcb7da5..89564cdc 100644 --- a/playbooks/install_active_standby.yml +++ b/playbooks/install_active_standby.yml @@ -68,13 +68,6 @@ - mongodb - mongodb_install - # Insert some day zero data into the MongoDB, Itential users, profiles, - # configure redis, configure rabbitmq, etc... - - role: itential.deployer.mongodb_init - tags: - - mongodb - - mongodb_init - # Enable MongoDB replication, configure replica set if required # https://www.mongodb.com/docs/manual/replication/ - role: itential.deployer.mongodb_replication @@ -129,12 +122,6 @@ - platform - platform_install - # Install any listed apps and/or adapters - - role: itential.deployer.platform_adapters - tags: - - platform - - platform_adapters - - name: Install IAP hosts: platform become: true diff --git a/playbooks/prometheus.yml b/playbooks/prometheus.yml index eba2d886..c9562465 100644 --- a/playbooks/prometheus.yml +++ b/playbooks/prometheus.yml @@ -10,7 +10,7 @@ - role: itential.deployer.common_vars tags: - always - + - role: itential.deployer.prometheus tags: - - prometheus_install \ No newline at end of file + - prometheus_install