Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Nov 28, 2023
1 parent 6f51a50 commit ff8250c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions playbooks/networkid_pk_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@
ansible.builtin.shell: |
/bin/bash -c "set -o pipefail; journalctl -u {{ default_service }} -n 100000 | grep 'Local node identity is:' | tail -1 | awk '{print \$NF}'"
register: networkid
ignore_errors: true
ignore_errors: True
when: network_dir.matched > 0

# print
- name: Print networkid
ansible.builtin.debug:
msg: "Network ID: {{ networkid.stdout | trim }}"
when: network_dir.matched > 0 and networkid.stdout != ""
when: network_dir.matched > 0 and networkid.stdout

- name: Backup secrets from servers to local storage
become: True
Expand All @@ -38,6 +37,6 @@
src: "{{ network_dir.files[0].path }}/network/secret_ed25519"
dest: "/opt/backup/{{ subdomain }}_{{ networkid.stdout | trim }}_secret_ed25519"
flat: yes

Check warning on line 39 in playbooks/networkid_pk_backup.yaml

View workflow job for this annotation

GitHub Actions / build (3.10)

39:15 [truthy] truthy value should be one of [False, True]
when: network_dir.matched > 0 and networkid.stdout != ""
when: network_dir.matched > 0 and networkid.stdout
tags: backup
...

0 comments on commit ff8250c

Please sign in to comment.