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:
Louis Vallat 2022-11-17 10:02:05 +01:00
parent ba6fd7aced
commit 0ad05fedf2
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283
3 changed files with 36 additions and 0 deletions

View 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

View File

@ -28,3 +28,13 @@
- docker-compose-plugin - docker-compose-plugin
state: latest state: latest
update_cache: true 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
View File

@ -0,0 +1,10 @@
---
- name: "Update/upgrade debian and install docker and misc tools."
hosts: router
roles:
- system
- softwares
- bpytop
- dnsmasq
- nftables
- clean