File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
provision-contest/ansible/roles/system_fixes/tasks Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 43
43
notify : Update dconf
44
44
when : GRAPHICAL
45
45
46
- - name : Configure static IP address
47
- template :
48
- src : static_ip.j2
49
- dest : /etc/network/interfaces.d/{{ STATIC_IP_INTERFACE }}
50
- notify : Reboot the machine
46
+ - name : Configure network for static IP address
51
47
when : STATIC_IP_ENABLED
48
+ block :
49
+ - name : Configure static IP address
50
+ template :
51
+ src : static_ip.j2
52
+ dest : /etc/network/interfaces.d/{{ STATIC_IP_INTERFACE }}
53
+ notify : Reboot the machine
52
54
53
- - name : Load configuration from /etc/network/interfaces.d
54
- lineinfile :
55
- path : /etc/network/interfaces
56
- line : ' source-directory /etc/network/interfaces.d'
57
- notify : Reboot the machine
58
- when : STATIC_IP_ENABLED
55
+ - name : Load configuration from /etc/network/interfaces.d
56
+ lineinfile :
57
+ path : /etc/network/interfaces
58
+ line : ' source-directory /etc/network/interfaces.d'
59
+ notify : Reboot the machine
59
60
60
- - name : Use 8.8.8.8 as DNS server
61
- lineinfile :
62
- path : /etc/systemd/resolved.conf
63
- regexp : ' ^#?DNS='
64
- line : ' DNS=8.8.8.8'
65
- notify : Reboot the machine
66
- when : STATIC_IP_ENABLED
61
+ - name : Use 8.8.8.8 as DNS server
62
+ lineinfile :
63
+ path : /etc/systemd/resolved.conf
64
+ regexp : ' ^#?DNS='
65
+ line : ' DNS=8.8.8.8'
66
+ notify : Reboot the machine
67
67
68
68
- name : Flush handlers
69
69
meta : flush_handlers
You can’t perform that action at this time.
0 commit comments