Convert role tasks to YAML format
This commit is contained in:
parent
1c988bd2ac
commit
79baaa609b
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Restart isc-dhcp-server
|
- name: Restart isc-dhcp-server
|
||||||
service: name=isc-dhcp-server state=restarted
|
service:
|
||||||
|
name: 'isc-dhcp-server'
|
||||||
|
state: 'restarted'
|
||||||
|
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install DHCP server packages
|
- name: Install DHCP packages
|
||||||
apt: pkg={{ item }} state=latest install_recommends=no
|
apt:
|
||||||
|
name: '{{ item }}'
|
||||||
|
state: 'present'
|
||||||
|
install_recommends: False
|
||||||
with_items: [ 'isc-dhcp-server' ]
|
with_items: [ 'isc-dhcp-server' ]
|
||||||
|
|
||||||
- name: Configure DHCP server
|
- name: Configure DHCP server
|
||||||
template: src={{ item }}.j2 dest=/{{ item }} owner=root group=root mode=0644
|
template:
|
||||||
|
src: '{{ item }}.j2'
|
||||||
|
dest: '/{{ item }}'
|
||||||
|
owner: 'root'
|
||||||
|
group: 'root'
|
||||||
|
mode: '0644'
|
||||||
with_items: [ 'etc/default/isc-dhcp-server', 'etc/dhcp/dhcpd.conf' ]
|
with_items: [ 'etc/default/isc-dhcp-server', 'etc/dhcp/dhcpd.conf' ]
|
||||||
notify: Restart isc-dhcp-server
|
notify: [ 'Restart isc-dhcp-server' ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user