mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
install iptables in 2-common
This commit is contained in:
parent
e8bb95a33a
commit
5132062bf7
3 changed files with 4 additions and 13 deletions
|
@ -11,12 +11,7 @@
|
||||||
- include_tasks: xo.yml
|
- include_tasks: xo.yml
|
||||||
when: xo_model != "none" or osbuilder is defined
|
when: xo_model != "none" or osbuilder is defined
|
||||||
|
|
||||||
# set FQDN for IIAB
|
- include_tasks: roles/network/tasks/iptables.yml
|
||||||
#- include_tasks: hostname.yml
|
|
||||||
# tags:
|
|
||||||
# - network
|
|
||||||
# - domain
|
|
||||||
# - hostname
|
|
||||||
|
|
||||||
- include_tasks: centos.yml
|
- include_tasks: centos.yml
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
|
@ -47,10 +47,10 @@
|
||||||
group='root'
|
group='root'
|
||||||
mode={{ item.2 }}
|
mode={{ item.2 }}
|
||||||
with_items:
|
with_items:
|
||||||
- { 0: 'gateway/iptables-config', 1: '/etc/sysconfig/iptables-config', 2: '0644' }
|
- { 0: 'roles/network/templates/gateway/iptables-config', 1: '/etc/sysconfig/iptables-config', 2: '0644' }
|
||||||
- { 0: 'gateway/check-LAN', 1: '/usr/bin/check-LAN', 2: '0755' }
|
- { 0: 'roles/network/templates/gateway/check-LAN', 1: '/usr/bin/check-LAN', 2: '0755' }
|
||||||
|
|
||||||
- name: Install Debian config
|
- name: Install Debian config
|
||||||
template: src=gateway/iptables dest=/etc/network/if-pre-up.d/iptables
|
template: src=roles/network/templates/gateway/iptables dest=/etc/network/if-pre-up.d/iptables
|
||||||
mode=0755
|
mode=0755
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
|
@ -25,10 +25,6 @@
|
||||||
- hostname
|
- hostname
|
||||||
- domain
|
- domain
|
||||||
|
|
||||||
- include_tasks: iptables.yml
|
|
||||||
tags:
|
|
||||||
- network
|
|
||||||
|
|
||||||
#### start services
|
#### start services
|
||||||
- include_tasks: avahi.yml
|
- include_tasks: avahi.yml
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue