mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
network install once
This commit is contained in:
parent
ea44bcaf05
commit
8bb6166914
1 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,8 @@
|
||||||
src=network/hostname.j2
|
src=network/hostname.j2
|
||||||
owner=root
|
owner=root
|
||||||
mode=0644
|
mode=0644
|
||||||
|
when: is_debuntu
|
||||||
|
register: hostname_change
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
- domain
|
- domain
|
||||||
|
@ -25,6 +27,8 @@
|
||||||
owner=root
|
owner=root
|
||||||
group=root
|
group=root
|
||||||
mode=0644
|
mode=0644
|
||||||
|
when: is_redhat
|
||||||
|
register: hostname_change
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
- domain
|
- domain
|
||||||
|
@ -35,7 +39,6 @@
|
||||||
mode=0644
|
mode=0644
|
||||||
with_items:
|
with_items:
|
||||||
- iiab_domain_name
|
- iiab_domain_name
|
||||||
register: domainname
|
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
- domain
|
- domain
|
||||||
|
@ -48,17 +51,20 @@
|
||||||
- include: hosts.yml
|
- include: hosts.yml
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
|
- domain
|
||||||
|
|
||||||
##### end hostname setup
|
##### end hostname setup
|
||||||
##### start install portion
|
##### start install portion
|
||||||
# only needs to be done once
|
# only needs to be done once
|
||||||
- include: installing.yml
|
- include: installing.yml
|
||||||
|
when: hostname_change.changed or installing
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
- named
|
- named
|
||||||
- dhcpd
|
- dhcpd
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- squid
|
- squid
|
||||||
|
- domain
|
||||||
|
|
||||||
- include: avahi.yml
|
- include: avahi.yml
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue