Skip to content

Commit

Permalink
adding hauler store
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 14, 2024
1 parent a8e56c0 commit 9701d5a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/deploy_hauler/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@
# defaults file for deploy_hauler
deploy_hauler_directory: "{{ global_directory_package_target }}"
deploy_hauler_server: "{{ global_hauler_ip }}"

# Firewall rules
hauler_firewalld_rules:
inbound:
- name: hauler
zone: public
ports:
- {port: 5000, protocol: tcp}
- {port: 8080, protocol: tcp}
15 changes: 15 additions & 0 deletions roles/deploy_hauler/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
ansible_os_family is not defined
tags: [always]

- name: Populate service facts
ansible.builtin.service_facts: {}
tags: [always]

- name: Hauler firewalld
vars:
firewalld_rules: "{{ hauler_firewalld_rules }}"
ansible.builtin.import_role:
name: set_firewalld
tasks_from: main
when:
- ansible_facts['services']['firewalld.service'] is defined
- ansible_facts['services']['firewalld.service']['state'] == "running"
tags: firewalld

- name: Hauler Install and settings for RHEL-like OS
ansible.builtin.import_tasks: rhel.yml
when: ansible_os_family == "RedHat"
Expand Down

0 comments on commit 9701d5a

Please sign in to comment.