Skip to content

Commit

Permalink
fixed lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
arodier committed Sep 22, 2023
1 parent 709e168 commit ac0505f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions roles/dns-pdns/tasks/backup/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---

- name: Stop the DNS server
systemd:
ansible.builtin.systemd:
name: pdns
state: stopped

- name: Retrieve the database
fetch:
ansible.builtin.fetch:
src: /var/lib/powerdns/default.db
dest: '{{ backup_directory }}/pdns/default.db'
flat: true

- name: Start the DNS server
systemd:
ansible.builtin.systemd:
name: pdns
state: started
6 changes: 3 additions & 3 deletions roles/dns-pdns/tasks/restore/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---

- name: Stop the DNS server
systemd:
ansible.builtin.systemd:
name: pdns
state: stopped

- name: Copy the database
copy:
ansible.builtin.copy:
src: '{{ backup_directory }}/pdns/default.db'
dest: /var/lib/powerdns/default.db

- name: Start the DNS server
systemd:
ansible.builtin.systemd:
name: pdns
state: started

0 comments on commit ac0505f

Please sign in to comment.