dhcpd: ansible-lint fixes
This commit is contained in:
parent
ff07e84ca6
commit
09cd9001ec
2 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart dhcpd
|
||||
service:
|
||||
- name: Restart dhcpd
|
||||
ansible.builtin.service:
|
||||
name: "{{ dhcpd_service }}"
|
||||
state: restarted
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
- name: include OS-specific variables
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
- name: Include OS-specific variables
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ dhcpd_package }}"
|
||||
state: installed
|
||||
|
||||
- name: create config
|
||||
template:
|
||||
- name: Create config
|
||||
ansible.builtin.template:
|
||||
dest: "{{ dhcpd_config }}"
|
||||
src: "{{ dhcpd_template | default('dhcpd.conf.j2') }}"
|
||||
mode: 0644
|
||||
|
@ -17,8 +17,8 @@
|
|||
# validate: "dhcpd -t -cf %s"
|
||||
notify: restart dhcpd
|
||||
|
||||
- name: enable service
|
||||
service:
|
||||
- name: Enable service
|
||||
ansible.builtin.service:
|
||||
name: "{{ dhcpd_service }}"
|
||||
state: started
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Reference in a new issue