feat: ordered stuff
This commit is contained in:
parent
8a5be08322
commit
c9dad6d865
3 changed files with 15 additions and 16 deletions
|
|
@ -1,6 +1,13 @@
|
|||
---
|
||||
|
||||
# unbound
|
||||
- name: "restart unbound alpine"
|
||||
ansible.builtin.service:
|
||||
name: "unbound"
|
||||
state: "restarted"
|
||||
enabled: true
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
|
||||
- name: "restart unbound debian"
|
||||
ansible.builtin.systemd:
|
||||
name: "unbound.service"
|
||||
|
|
@ -8,10 +15,3 @@
|
|||
daemon_reload: true
|
||||
enabled: true
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: "restart unbound alpine"
|
||||
ansible.builtin.service:
|
||||
name: "unbound"
|
||||
state: "restarted"
|
||||
enabled: true
|
||||
when: ansible_os_family == "Alpine"
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
group: "root"
|
||||
mode: "0644"
|
||||
notify:
|
||||
- "restart unbound debian"
|
||||
- "restart unbound alpine"
|
||||
- "restart unbound debian"
|
||||
|
||||
# configure unbound zones
|
||||
- name: "config - unbound zones"
|
||||
|
|
@ -21,5 +21,5 @@
|
|||
group: "root"
|
||||
mode: "0644"
|
||||
notify:
|
||||
- "restart unbound debian"
|
||||
- "restart unbound alpine"
|
||||
- "restart unbound debian"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
---
|
||||
|
||||
# install unbound
|
||||
- name: "install unbound"
|
||||
ansible.builtin.apt:
|
||||
name: "unbound"
|
||||
cache_valid_time: 120
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
|
||||
# install unbound
|
||||
- name: "install unbound"
|
||||
community.general.apk:
|
||||
name: "unbound"
|
||||
update_cache: true
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
|
||||
- name: "install unbound"
|
||||
ansible.builtin.apt:
|
||||
name: "unbound"
|
||||
cache_valid_time: 120
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue