aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/tasks/dhcpd.yml
blob: 79d2f0fc5072c5d8ec5e76eb2cde40d6dc6f8032 (plain) (tree)
1
2
3
4
5
6
7
8
9
   
                       
           
                                
                      


               
         
                 






                            

                          


                                                                        
              

                        
---
- name: Configure dhcpd
  template:
    dest: '/etc/dhcp/dhcpd.conf'
    src: dhcpd.conf.j2
    owner: root
    group: root
    mode: 0644
  notify:
  - restart dhcpd

- name: Enable dhcpd service
  systemd:
    name: dhcpd.service
    enabled: yes
    masked: no
    state: started
  when: not chroot
- name: '- when in chroot'
  command: systemctl enable dhcpd.service
  args:
    creates: '/etc/systemd/system/multi-user.target.wants/dhcpd.service'
  when: chroot

# vim: set ts=2 sw=2 et: