Satellite 6 Install WIP

This commit is contained in:
Patrick Toal
2018-11-20 10:36:24 -05:00
parent 0223705ed2
commit cc0ff049bd
48 changed files with 911 additions and 132 deletions

View File

@@ -0,0 +1,53 @@
---
- name: "Include firewall.yml"
include_vars: "vars/firewall.yml"
tags:
- "firewall"
#Install firewalld and enable it
- name: "Install firewalld"
become: "yes"
yum:
name: "firewalld"
state: "present"
ignore_errors: "yes"
tags:
- "firewall"
- name: "Set hostname with hostnamectl"
hostname:
name: "{{ satellite_deployment_hostname_full }}"
tags:
- "firewall"
- name: "Update /etc/hosts wiht satellite hostname"
lineinfile:
line: "{{ satellite_deployment_ip_address }}
{{ satellite_deployment_hostname_full }}
{{ satellite_deployment_hostname_short }}"
dest: "/etc/hosts"
tags:
- "firewall"
- name: "Enable Firewalld"
become: "yes"
service:
enabled: "yes"
name: "firewalld"
state: "started"
tags:
- "firewall"
#Opening firewall ports
- name: "Firewall and hostname | Opening Firewalld ports"
become: "yes"
firewalld:
permanent: "yes"
immediate: "yes"
port: "{{ item }}"
state: "enabled"
with_items: "{{ satellite_deployment_fw_ports +
satellite_deployment_plugin_ports }}"
ignore_errors: "yes"
tags:
- "firewall"