-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sap_hostagent: ansible-lint 6.22.0 cleanup
Relates to #535. Signed-off-by: Bernd Finger <[email protected]>
- Loading branch information
1 parent
a605485
commit da862bd
Showing
10 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
--- | ||
exclude_paths: | ||
- tests/ | ||
enable_list: | ||
- yaml | ||
skip_list: | ||
- meta-runtime[unsupported-version] # We don't want to enforce new Ansible versions for Galaxy | ||
- ignore-errors # We use ignore_errors for all the assert tasks, which should be acceptable | ||
- schema # We want to allow single digit version numbers in a role's meta/main.yml file. This is allowed as per https://galaxy.ansible.com/docs/contributing/creating_role.html and https://galaxy.ansible.com/api/v1/platforms/?page=6. | ||
- name[template] # Allow templating inside name. During dev and qa, it should be possible to identify cases where it doesn't work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
|
||
- name: Extract the SAPHOSTAGENT TGZ file from the Bundle | ||
unarchive: | ||
ansible.builtin.unarchive: | ||
src: "{{ sap_hostagent_bundle_path }}/HOSTAGENT.TGZ" | ||
dest: "{{ sap_hostagent_agent_tmp_directory }}" | ||
remote_src: yes | ||
mode: '0755' | ||
|
||
- name: Install SAPHOSTAGENT | ||
command: "{{ sap_hostagent_agent_tmp_directory }}/global/hdb/saphostagent_setup/saphostexec -install" | ||
ansible.builtin.command: "{{ sap_hostagent_agent_tmp_directory }}/global/hdb/saphostagent_setup/saphostexec -install" | ||
register: installagent | ||
args: | ||
chdir: "{{ sap_hostagent_agent_tmp_directory }}/global/hdb/saphostagent_setup/" | ||
changed_when: "'Install service' in installagent.stdout" | ||
changed_when: "'Install service' in installagent.stdout" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- | ||
|
||
- name: Copy RPM based SAPHOSTAGENT to the target host | ||
copy: | ||
ansible.builtin.copy: | ||
src: "{{ sap_hostagent_rpm_local_path }}/{{ sap_hostagent_rpm_file_name }}" | ||
dest: "{{ sap_hostagent_agent_tmp_directory }}/{{ sap_hostagent_rpm_file_name }}" | ||
mode: '0755' | ||
when: sap_hostagent_rpm_local_path is defined | ||
|
||
- name: Ensure RPM file is installed | ||
yum: | ||
ansible.builtin.yum: | ||
name: "{{ sap_hostagent_agent_tmp_directory }}/{{ sap_hostagent_rpm_file_name }}" | ||
state: present | ||
disable_gpg_check: yes | ||
when: sap_hostagent_rpm_local_path is defined | ||
|
||
- name: Ensure RPM file is installed | ||
yum: | ||
ansible.builtin.yum: | ||
name: "{{ sap_hostagent_rpm_remote_path }}/{{ sap_hostagent_rpm_file_name }}" | ||
state: present | ||
disable_gpg_check: yes | ||
when: sap_hostagent_rpm_remote_path is defined | ||
when: sap_hostagent_rpm_remote_path is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
--- | ||
|
||
# Execute common pre installation tasks | ||
- import_tasks: common_pre.yml | ||
- name: Execute common pre installation tasks | ||
ansible.builtin.import_tasks: common_pre.yml | ||
|
||
# Deploy SAPHOSTAGENT using RPM file | ||
- import_tasks: deploy_rpm.yml | ||
- name: Deploy SAPHOSTAGENT using RPM file | ||
ansible.builtin.import_tasks: deploy_rpm.yml | ||
when: sap_hostagent_installation_type == "rpm" | ||
|
||
# Deploy SAPHOSTAGENT using SAR file | ||
- import_tasks: deploy_sar.yml | ||
- name: Deploy SAPHOSTAGENT using SAR file | ||
ansible.builtin.import_tasks: deploy_sar.yml | ||
when: sap_hostagent_installation_type == "sar" | ||
|
||
# Deploy SAPHOSTAGENT using SAR file existing on system | ||
- import_tasks: deploy_sar_remote.yml | ||
- name: Deploy SAPHOSTAGENT using SAR file existing on system | ||
ansible.builtin.import_tasks: deploy_sar_remote.yml | ||
when: sap_hostagent_installation_type == "sar-remote" | ||
|
||
# Deploy SAPHOSTAGENT using SAP Installation Bundle | ||
- import_tasks: deploy_bundle.yml | ||
- name: Deploy SAPHOSTAGENT using SAP Installation Bundle | ||
ansible.builtin.import_tasks: deploy_bundle.yml | ||
when: sap_hostagent_installation_type == "bundle" | ||
|
||
# Configuring SSL for SAP Host Agent | ||
- import_tasks: config_ssl.yml | ||
- name: Configure SSL for SAP Host Agent | ||
ansible.builtin.import_tasks: config_ssl.yml | ||
when: sap_hostagent_config_ssl | ||
|
||
# Execute common post installation tasks | ||
- import_tasks: common_post.yml | ||
- name: Execute common post installation tasks | ||
ansible.builtin.import_tasks: common_post.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
--- | ||
exclude_paths: | ||
- tests/ | ||
enable_list: | ||
- yaml | ||
skip_list: | ||
- meta-runtime[unsupported-version] # We don't want to enforce new Ansible versions for Galaxy | ||
- ignore-errors # We use ignore_errors for all the assert tasks, which should be acceptable | ||
- schema # We want to allow single digit version numbers in a role's meta/main.yml file. This is allowed as per https://galaxy.ansible.com/docs/contributing/creating_role.html and https://galaxy.ansible.com/api/v1/platforms/?page=6. | ||
- name[template] # Allow templating inside name. During dev and qa, it should be possible to identify cases where it doesn't work |