make everything more configurable
This commit is contained in:
parent
ad8e3cc155
commit
0482b34923
6 changed files with 63 additions and 16 deletions
|
@ -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 ####
|
||||
########################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue