feat: added service status for services and added dnsmasq to the softwares needed for a router
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
ba6fd7aced
commit
0ad05fedf2
16
roles/dnsmasq/tasks/main.yaml
Normal file
16
roles/dnsmasq/tasks/main.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Install dnsmasq
|
||||
ansible.builtin.apt:
|
||||
name: dnsmasq
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
- name: Enable dnsmasq service
|
||||
ansible.builtin.service:
|
||||
name: dnsmasq
|
||||
state: started
|
||||
|
||||
- name: Start dnsmasq service
|
||||
ansible.builtin.service:
|
||||
name: dnsmasq
|
||||
enabled: true
|
@ -28,3 +28,13 @@
|
||||
- docker-compose-plugin
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
- name: Enable docker service
|
||||
ansible.builtin.service:
|
||||
name: docker
|
||||
enabled: true
|
||||
|
||||
- name: Start docker service
|
||||
ansible.builtin.service:
|
||||
name: docker
|
||||
state: started
|
||||
|
10
router.yaml
Normal file
10
router.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: "Update/upgrade debian and install docker and misc tools."
|
||||
hosts: router
|
||||
roles:
|
||||
- system
|
||||
- softwares
|
||||
- bpytop
|
||||
- dnsmasq
|
||||
- nftables
|
||||
- clean
|
Loading…
Reference in New Issue
Block a user