make everything more configurable

This commit is contained in:
hybris 2019-01-22 15:28:46 +01:00
parent ad8e3cc155
commit 0482b34923
6 changed files with 63 additions and 16 deletions

View file

@ -1,4 +1,22 @@
---
#######################
#### NETWORK TASKS ####
#######################
- name: set static ipv6 for hosts
lineinfile:
path: /etc/sysconfig/network-scripts/ifcfg-eth0
line: {{ item.line }}
regexp: {{ item.regexp }}
with_items:
- { regexp: "^IPV6INIT=", line: "IPV6INIT=yes" }
- { regexp: "^IPV6AUTOCONF=", line: "IPV6AUTOCONF=no" }
- { regexp: "^IPV6ADDR=", line: "IPV6ADDR={{ host_ipv6 }}"}
- { regexp: "^IPV6_DEFAULTGW=", line: "IPV6_DEFAULTGW={{ network_default_gw }}"}
- name: reboot
reboot:
########################
#### FIREWALL TASKS ####
########################