File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
playbooks/roles/ocp-config/tasks Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1010 block :
1111 - name : Remove pool, range and deny statements
1212 shell : |
13- sed -i.bak '/pool {/d' /etc/dhcp/dhcpd.conf
14- sed -i '/range /d' /etc/dhcp/dhcpd.conf
15- sed -i '$d' /etc/dhcp/dhcpd.conf
16- sed -i 's/deny unknown-clients/#deny unknown-clients/' /etc/dhcp/dhcpd.conf
17- sed -i 's/authoritative;/#authoritative;/' /etc/dhcp/dhcpd.conf
13+ sudo sed -i.bak '/pool {/d' /etc/dhcp/dhcpd.conf
14+ sudo sed -i '/range /d' /etc/dhcp/dhcpd.conf
15+ sudo sed -i '$d' /etc/dhcp/dhcpd.conf
16+ sudo sed -i 's/deny unknown-clients/#deny unknown-clients/' /etc/dhcp/dhcpd.conf
17+ sudo sed -i 's/authoritative;/#authoritative;/' /etc/dhcp/dhcpd.conf
1818
1919 - name : restart dhcpd
20+ become : true
2021 service :
2122 name : dhcpd
2223 state : restarted
You can’t perform that action at this time.
0 commit comments