diff options
Diffstat (limited to 'ansible/deployment_poc/tasks/configure_dhcp.yml')
-rw-r--r-- | ansible/deployment_poc/tasks/configure_dhcp.yml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ansible/deployment_poc/tasks/configure_dhcp.yml b/ansible/deployment_poc/tasks/configure_dhcp.yml index 9802b0e..1be9fcd 100644 --- a/ansible/deployment_poc/tasks/configure_dhcp.yml +++ b/ansible/deployment_poc/tasks/configure_dhcp.yml @@ -1,7 +1,7 @@ --- - name: Configure DHCP block: - - name: Query DHCP server + - name: Set DHCP host OS set_fact: dhcp_os: "{{ hostvars[dhcp_host]['platforms'][0] }}" @@ -15,7 +15,16 @@ become: yes become_method: doas when: dhcp_os == 'openbsd-x86_64' - + + - name: Restart dhcpd + ansible.builtin.command: + argv: + - /usr/bin/doas + - rcctl + - restart + - dhcpd + when: dhcp_os == 'openbsd-x86_64' + - name: Insert DHCP static mapping vyos.vyos.vyos_config: backup: yes |