dhcpd: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-30 15:53:03 +00:00
parent ff07e84ca6
commit 09cd9001ec
2 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
--- ---
- name: restart dhcpd - name: Restart dhcpd
service: ansible.builtin.service:
name: "{{ dhcpd_service }}" name: "{{ dhcpd_service }}"
state: restarted state: restarted

View file

@ -1,14 +1,14 @@
--- ---
- name: include OS-specific variables - name: Include OS-specific variables
include_vars: "{{ ansible_os_family }}.yml" ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: install packages - name: Install packages
package: ansible.builtin.package:
name: "{{ dhcpd_package }}" name: "{{ dhcpd_package }}"
state: installed state: installed
- name: create config - name: Create config
template: ansible.builtin.template:
dest: "{{ dhcpd_config }}" dest: "{{ dhcpd_config }}"
src: "{{ dhcpd_template | default('dhcpd.conf.j2') }}" src: "{{ dhcpd_template | default('dhcpd.conf.j2') }}"
mode: 0644 mode: 0644
@ -17,8 +17,8 @@
# validate: "dhcpd -t -cf %s" # validate: "dhcpd -t -cf %s"
notify: restart dhcpd notify: restart dhcpd
- name: enable service - name: Enable service
service: ansible.builtin.service:
name: "{{ dhcpd_service }}" name: "{{ dhcpd_service }}"
state: started state: started
enabled: true enabled: true