2021-04-28 22:09:56 -04:00
|
|
|
---
|
2022-06-09 18:19:03 +08:00
|
|
|
- name: "download rpm packages: firewall"
|
|
|
|
|
yum:
|
|
|
|
|
name: "{{ item.value }}"
|
|
|
|
|
conf_file: "{{ rpm_repo_config_path }}"
|
|
|
|
|
state: present
|
|
|
|
|
download_only: yes
|
|
|
|
|
download_dir: "{{ path_download }}"
|
|
|
|
|
with_dict: "{{ firewall_rpm_version }}"
|
|
|
|
|
|
2021-07-13 11:20:18 +08:00
|
|
|
- name: "Install firwall that are sapp plugins"
|
2023-11-21 23:41:37 +08:00
|
|
|
shell: rpm -i /tmp/rpm_download/{{ item.1 }}* --prefix {{ prefix_path.sapp }}
|
|
|
|
|
when:
|
|
|
|
|
- item.1 is not search("stellar-c")
|
|
|
|
|
- item.1 is not search("firewall")
|
2023-11-22 10:27:18 +08:00
|
|
|
loop: "{{ firewall_rpm_version | dictsort }}"
|
2023-11-21 23:41:37 +08:00
|
|
|
|
|
|
|
|
- name: "Install firwall and stellar-c rpm plugins"
|
|
|
|
|
shell: rpm -i /tmp/rpm_download/{{ item }}* --prefix /opt/tsg/
|
|
|
|
|
with_items:
|
|
|
|
|
- "{{ firewall_rpm_version['stellar-c'] }}"
|
|
|
|
|
- "{{ firewall_rpm_version['firewall'] }}"
|
2021-04-28 22:09:56 -04:00
|
|
|
|
|
|
|
|
- name: "Template the tsgconf/main.conf"
|
|
|
|
|
template:
|
2021-05-08 18:27:14 +08:00
|
|
|
src: "{{ role_path }}/templates/main.conf.j2.j2"
|
2021-05-25 12:25:40 +08:00
|
|
|
dest: /opt/tsg/tsg-os-provision/templates/main.conf.j2
|
2021-04-28 22:09:56 -04:00
|
|
|
tags: template
|
2022-09-01 16:59:31 +08:00
|
|
|
when: runtime_env != 'TSG-X-P0906'
|
2021-04-28 22:09:56 -04:00
|
|
|
|
|
|
|
|
- name: "Template the tsgconf/maat.conf"
|
|
|
|
|
template:
|
2021-05-08 18:27:14 +08:00
|
|
|
src: "{{ role_path }}/templates/maat.conf.j2.j2"
|
2021-05-25 12:25:40 +08:00
|
|
|
dest: /opt/tsg/tsg-os-provision/templates/maat.conf.j2
|
2021-04-28 22:09:56 -04:00
|
|
|
tags: template
|
2022-09-01 16:59:31 +08:00
|
|
|
when: runtime_env != 'TSG-X-P0906'
|
2021-04-28 22:09:56 -04:00
|
|
|
|
2021-06-07 14:05:32 +08:00
|
|
|
- name: "Template the conf/http/http.conf"
|
|
|
|
|
template:
|
|
|
|
|
src: "{{ role_path }}/templates/http.conf.j2"
|
2021-07-13 11:20:18 +08:00
|
|
|
dest: /opt/tsg/sapp/conf/http/http.conf
|
2021-06-07 14:05:32 +08:00
|
|
|
tags: template
|
|
|
|
|
|
2021-09-18 18:05:36 +08:00
|
|
|
- name: "Template the conf/quic/main.conf"
|
|
|
|
|
template:
|
|
|
|
|
src: "{{ role_path }}/templates/quic/main.conf.j2"
|
|
|
|
|
dest: /opt/tsg/sapp/conf/quic/main.conf
|
|
|
|
|
tags: template
|
2023-09-22 17:46:40 +08:00
|
|
|
|
|
|
|
|
- name: "Template the /opt/tsg/sapp/plug/business/firewall/firewall.inf"
|
|
|
|
|
template:
|
|
|
|
|
src: "{{ role_path }}/templates/firewall.inf.j2.j2"
|
|
|
|
|
dest: /opt/tsg/tsg-os-provision/templates/firewall.inf.j2
|
|
|
|
|
tags: template
|
|
|
|
|
when: runtime_env != 'TSG-X-P0906'
|