From 020326ffa89fdfc8f8baae53e9f9ce8aaab10c35 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Wed, 8 Mar 2023 13:50:39 +0000 Subject: [PATCH] Add back in broken linting rule (#515) * Add back in broken linting rile * Add in undefined variable --- .ansible-lint | 2 -- roles/filetree_create/README.md | 9 +++++---- roles/filetree_create/defaults/main.yml | 3 +++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index 7da1d96d3..506390966 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -20,8 +20,6 @@ skip_list: - fqcn[keyword] - meta-runtime # This collection with the appropriate awx.awx or ansible.controller still works with older ansible. - role-name[path] -warn_list: - - jinja[invalid] # Temporarily adding this due to https://github.com/ansible/ansible-lint/issues/3048 kinds: - playbooks: "**/examples/templates/*.{yml,yaml}" - playbooks: "**/examples/*.{yml,yaml}" diff --git a/roles/filetree_create/README.md b/roles/filetree_create/README.md index 74036fa10..293b225a9 100644 --- a/roles/filetree_create/README.md +++ b/roles/filetree_create/README.md @@ -12,10 +12,11 @@ That role requires the following: The following variables are required for that role to work properly: -| Variable Name | Default Value | Required | Description | -| :------------ | :-----------: | :------: | :---------- | -| `controller_api_plugin` | `ansible.controller` | yes | Full path for the controller_api_plugin to be used.
Can have two possible values:
  - awx.awx.controller_api # For the community Collection version
  - ansible.controller.controller_api # For the Red Hat Certified Collection version| -| `output_path` | `/tmp/filetree_output` | yes | The path to the output directory where all the generated `yaml` files with the corresponding Objects as code will be written to. | +| Variable Name | Default Value | Required | Type | Description | +| :------------ | :-----------: | :------: | :------: | :---------- | +| `controller_api_plugin` | `ansible.controller` | yes | str | Full path for the controller_api_plugin to be used.
Can have two possible values:
  - awx.awx.controller_api # For the community Collection version
  - ansible.controller.controller_api # For the Red Hat Certified Collection version| +| `output_path` | `/tmp/filetree_output` | yes | str | The path to the output directory where all the generated `yaml` files with the corresponding Objects as code will be written to. | +| `input_tag` | `['all']` | no | bool | The tags which are applied to the 'sub-roles'. If 'all' is in the list (the default value) then all roles will be called. | ## Dependencies diff --git a/roles/filetree_create/defaults/main.yml b/roles/filetree_create/defaults/main.yml index 87a192b92..1e13a6a36 100644 --- a/roles/filetree_create/defaults/main.yml +++ b/roles/filetree_create/defaults/main.yml @@ -25,4 +25,7 @@ query_controller_api_max_objects: 10000 controller_configuration_filetree_create_secure_logging: "{{ controller_configuration_secure_logging | default('false') }}" +input_tag: + - all + ...