Commit 7830a162 authored by nimrod's avatar nimrod
Browse files

Debian server role: Some small fixes.

- Apply tagging to all included tasks.
- Restart the Docker service after updating the container restart
  drop-in, in case there are containers in need of a restart.
- Reload Systemd after updating the btrfs scrub and check units, simple
  omission.
parent 56201092
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@
      {{ (ansible_facts.mounts|selectattr("device", "equalto", device)|first)["mount"] }}
    # yamllint enable rule:line-length
  tags: [scrub]
  notify:
    - Systemd daemon reload

- name: Enable btrfs scrub timers
  ansible.builtin.systemd:
@@ -46,6 +48,8 @@
    mode: 0o0644
    src: btrfs_check.{{ item }}.j2
  vars: *vars
  notify:
    - Systemd daemon reload

- name: Enable the btrfs check timers
  ansible.builtin.systemd:
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
    mode: 0o0644
  notify:
    - Systemd daemon reload
    - Restart Docker

- name: Allow access from the toolbox container
  ansible.builtin.copy:
+6 −0
Original line number Diff line number Diff line
@@ -100,12 +100,18 @@
- name: Include Docker tasks
  ansible.builtin.include_tasks:
    file: docker.yml
    apply:
      tags:
        - docker
  tags:
    - always

- name: Include web tasks
  ansible.builtin.include_tasks:
    file: web.yml
    apply:
      tags:
        - web
  tags:
    - always