Skip to content

Commit

Permalink
sap_swpm: Two more tags (issue #281)
Browse files Browse the repository at this point in the history
New tags:
- sap_swpm_setup_firewall: Only run the tasks in pre_install/firewall.yml
- sap_swpm_update_etchosts: Only run the tasks in pre_install/update_etchosts.yml
  • Loading branch information
berndfinger committed Dec 5, 2022
1 parent 08c299e commit fa606d9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions roles/sap_swpm/tasks/pre_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@
# Firewall

- name: SAP SWPM Pre Install - Firewall Setup
ansible.builtin.include_tasks: pre_install/firewall.yml
ansible.builtin.include_tasks:
file: pre_install/firewall.yml
apply:
tags: sap_swpm_setup_firewall
when: "sap_swpm_setup_firewall | bool"
tags: sap_swpm_setup_firewall

# /etc/hosts

- name: SAP SWPM Pre Install - Update /etc/hosts
ansible.builtin.include_tasks: pre_install/update_etchosts.yml
ansible.builtin.include_tasks:
file: pre_install/update_etchosts.yml
apply:
tags: sap_swpm_update_etchosts
when: "sap_swpm_update_etchosts | bool"
tags: sap_swpm_update_etchosts

################
# Display Parameters
Expand Down

0 comments on commit fa606d9

Please sign in to comment.