Skip to content

Commit

Permalink
sap_general_preconfigure: Add more examples to README.md
Browse files Browse the repository at this point in the history
Relates to sap-linuxlab#342.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Feb 12, 2024
1 parent f828b4c commit c653640
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions roles/sap_general_preconfigure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,24 @@ With the following tags, the role can be called to perform certain activities on
- tag `sap_general_preconfigure_etc_hosts`: Perform only the tasks(s) related to this step. This step might be one of multiple
configuration activities of a SAP note. Also this step might be valid for multiple RHEL major releases.

Sample call for only performing all installation and configuration tasks. This is the default behavior. If no tag is specified, all
installation and configuration tasks are enabled:
```
# ansible-playbook sap-general-preconfigure.yml
```

Sample call for only performing all installation tasks:
```
# ansible-playbook sap-general-preconfigure.yml --tags=sap_general_preconfigure_installation
```

Sample call for only performing all configuration tasks. The tag sap_general_preconfigure_configuration is needed to only use
the configuration tasks, and the tag sap_general_preconfigure_configuration_all_steps activates each individual configuration task. Both
need to be enabled for running all the configuration tasks:
```
# ansible-playbook sap-general-preconfigure.yml --tags=sap_general_preconfigure_configuration,sap_general_preconfigure_configuration_all_steps
```

Sample call for only verifying and modifying the /etc/hosts file:
```
# ansible-playbook sap-general-preconfigure.yml --tags=sap_general_preconfigure_configuration,sap_general_preconfigure_etc_hosts
Expand Down
1 change: 0 additions & 1 deletion roles/sap_general_preconfigure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
- '{{ ansible_os_family }}.yml'
tags:
- sap_general_preconfigure_configuration
# - sap_general_preconfigure_configuration_all_steps

# allow a reboot at the end of the preconfigure role
- name: Flush handlers
Expand Down

0 comments on commit c653640

Please sign in to comment.