Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hatcher committed Dec 14, 2023
1 parent 6c322cd commit df17253
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

image: ghcr.io/dbrennand/ansible-gitpod-workspace:latest

vscode:
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ autorestic_info: false
autorestic_check: false
autorestic_cron: false
autorestic_cron_verbose: false
autorestic_state: present
autorestic_state: present
8 changes: 4 additions & 4 deletions tasks/autorestic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@
ansible.builtin.get_url:
url: "https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_arm64.bz2" # noqa yaml[line-length]
dest: /tmp/autorestic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "aarch64"

- name: "Download autorestic binary for armv7l v{{ autorestic_version }}"
# E.g., Raspberry Pi 3 (32bit)
ansible.builtin.get_url:
url: "https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_arm.bz2"
dest: /tmp/autorestic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "armv7l"

- name: "Download autorestic binary for x86_64 v{{ autorestic_version }}"
ansible.builtin.get_url:
url: "https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_amd64.bz2" # noqa yaml[line-length]
dest: /tmp/autorestic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "x86_64"

- name: "Download autorestic binary for other architectures v{{ autorestic_version }}"
# Generic list containing available linux builds
ansible.builtin.get_url:
url: "https://github.com/cupcakearmy/autorestic/releases/download/v{{ autorestic_version }}/autorestic_{{ autorestic_version }}_linux_{{ item }}.bz2"
dest: /tmp/autorestic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == item
with_items:
- mips
Expand Down
6 changes: 2 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
ansible.builtin.copy:
content: "{{ autorestic_config }}"
dest: ~/.autorestic.yml
mode: 0600
mode: "0600"

- name: Run autorestic info
ansible.builtin.command:
Expand Down Expand Up @@ -78,10 +78,8 @@
name: Configure autorestic crontab job
minute: "*/5"
job: |
{% if autorestic_cron_verbose == true %}
{% if autorestic_cron_verbose == true %}
autorestic -c ~/.autorestic.yml --ci cron -vvvvv > /tmp/autorestic.log 2>&1
{% else %}
autorestic -c ~/.autorestic.yml --ci cron > /tmp/autorestic.log 2>&1
{% endif %}
8 changes: 4 additions & 4 deletions tasks/restic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@
ansible.builtin.get_url:
url: "https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_arm64.bz2"
dest: /tmp/restic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "aarch64"

- name: "Download restic binary for armv7l v{{ autorestic_restic_version }}"
# E.g., Raspberry Pi 3 (32bit)
ansible.builtin.get_url:
url: "https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_arm.bz2"
dest: /tmp/restic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "armv7l"

- name: "Download restic binary for x86_64 v{{ autorestic_restic_version }}"
ansible.builtin.get_url:
url: "https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_amd64.bz2"
dest: /tmp/restic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == "x86_64"

- name: "Download restic binary for other architectures v{{ autorestic_restic_version }}"
# Generic list containing available linux builds
ansible.builtin.get_url:
url: "https://github.com/restic/restic/releases/download/v{{ autorestic_restic_version }}/restic_{{ autorestic_restic_version }}_linux_{{ item }}.bz2"
dest: /tmp/restic.bz2
mode: 0644
mode: "0644"
when: ansible_architecture == item
with_items:
- mips
Expand Down

0 comments on commit df17253

Please sign in to comment.