diff options
author | Georg Pfuetzenreuter | 2022-02-13 01:37:39 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-02-13 01:41:30 +0100 |
commit | 642290c73407a7969857197810123633c83c6a26 (patch) | |
tree | 501c138a617d11abaf88d28812baab5a2ee639dd /ansible/deployment_poc/tasks/configure_dhcp.yml | |
parent | a2be10311173cef2c39da721b3e47888c379e7bc (diff) | |
download | system-642290c73407a7969857197810123633c83c6a26.tar.gz system-642290c73407a7969857197810123633c83c6a26.tar.bz2 system-642290c73407a7969857197810123633c83c6a26.zip |
Bulk update
Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
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 |