mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update static.yml
This commit is contained in:
parent
d81a6788a6
commit
73a2ce03da
1 changed files with 10 additions and 8 deletions
|
@ -1,8 +1,9 @@
|
||||||
# supply an ifcfg if no gateway detected but wan_ip is set
|
# supply an ifcfg if no gateway detected but wan_ip is set
|
||||||
# set user_wan_iface: <device> and use wan_* for static info
|
# set user_wan_iface: <device> and use wan_* for static info
|
||||||
- name: Supply WAN interface file
|
- name: Install WAN interface file /etc/sysconfig/network-scripts/ifcfg-WAN from template
|
||||||
template: src=network/ifcfg-WAN.j2
|
template:
|
||||||
dest=/etc/sysconfig/network-scripts/ifcfg-WAN
|
src: network/ifcfg-WAN.j2
|
||||||
|
dest: /etc/sysconfig/network-scripts/ifcfg-WAN
|
||||||
|
|
||||||
- include_tasks: NM.yml
|
- include_tasks: NM.yml
|
||||||
when: 'ansible_distribution_version <= "20" and wan_ip != "dhcp"'
|
when: 'ansible_distribution_version <= "20" and wan_ip != "dhcp"'
|
||||||
|
@ -12,8 +13,9 @@
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: 'ansible_distribution_version >= "21" and wan_ip != "dhcp"'
|
when: 'ansible_distribution_version >= "21" and wan_ip != "dhcp"'
|
||||||
|
|
||||||
- name: Use upstream nameserver until named is installed
|
- name: Use upstream nameserver until named (etc) is installed
|
||||||
lineinfile: dest=/etc/resolv.conf
|
lineinfile:
|
||||||
line='nameserver {{ wan_nameserver }}'
|
dest: /etc/resolv.conf
|
||||||
create=yes
|
line: "nameserver {{ wan_nameserver }}"
|
||||||
state=present
|
create: yes
|
||||||
|
state: present
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue