base: make sure we install and setup ipset for builders
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
9abc608b4b
commit
08ccdd41fc
1 changed files with 16 additions and 0 deletions
|
@ -142,6 +142,22 @@
|
||||||
- packages
|
- packages
|
||||||
- base
|
- base
|
||||||
|
|
||||||
|
- name: Ensure ipset is installed
|
||||||
|
package: state=present name=ipset
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
- base
|
||||||
|
|
||||||
|
- name: setup builder ipset if this is a new install
|
||||||
|
command: /usr/sbin/ipset create osbuildapi hash:ip >& /dev/null
|
||||||
|
ignore_errors: true
|
||||||
|
changed_when: false
|
||||||
|
when: inventory_hostname.startswith('build')
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
- base
|
||||||
|
- iptables
|
||||||
|
|
||||||
- name: iptables
|
- name: iptables
|
||||||
template: src={{ item }} dest=/etc/sysconfig/iptables mode=0600 validate="/sbin/iptables-restore --test %s"
|
template: src={{ item }} dest=/etc/sysconfig/iptables mode=0600 validate="/sbin/iptables-restore --test %s"
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue