Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_general_preconfigure: use tags instead of role parameters for limiting the role scope #342

Closed
berndfinger opened this issue Mar 13, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@berndfinger
Copy link
Member

We can use apply: to promote tags to tasks in dynamically included files, like in

- name: SAP SWPM Pre Install - Firewall Setup

Advantages:

  1. Get rid of many parameters
  2. Introduce the ability to skip one or more steps of SAP notes without having to specify the remaining steps
@berndfinger berndfinger self-assigned this Mar 13, 2023
@berndfinger berndfinger added the enhancement New feature or request label Mar 13, 2023
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 9, 2024
... for limiting the role scope.

Relates to sap-linuxlab#342.

Sample playbook calls:

$ ansible-playbook sap.yml --tags \
sap_general_preconfigure_configuration,sap_general_preconfigure_configuration_all_steps

$ ansible-playbook sap.yml --tags \
sap_general_preconfigure_configuration,sap_general_preconfigure_2772999_02

$ ansible-playbook sap.yml --tags \
sap_general_preconfigure_configuration,sap_general_preconfigure_selinux

$ ansible-playbook sap.yml --tags \
sap_general_preconfigure_configuration,sap_general_preconfigure_configuration_all_steps \
--skip-tags sap_general_preconfigure_2772999_02

$ ansible-playbook sap.yml --tags \
sap_general_preconfigure_configuration,sap_general_preconfigure_configuration_all_steps \
--skip-tags sap_general_preconfigure_selinux

Signed-off-by: Bernd Finger <[email protected]>
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 12, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 12, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 12, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 12, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 16, 2024
…ion steps

Examples for using tags: See README.md.

Relates to: sap-linuxlab#342.

Signed-off-by: Bernd Finger <[email protected]>
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 27, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 28, 2024
berndfinger added a commit to berndfinger/community.sap_install that referenced this issue Feb 28, 2024
@berndfinger
Copy link
Member Author

Solved in PR #653.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant