Skip to content

Commit

Permalink
fix(syntax): remove deprecated warn arg from shell tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jhampson-dbre committed Aug 11, 2024
1 parent 14bb875 commit 6a1c328
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
2 changes: 0 additions & 2 deletions roles/fail2ban/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
- name: restart home assistant
shell: |
ha core restart
args:
warn: no
3 changes: 1 addition & 2 deletions roles/harden_os/tasks/patching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
args:
creates: /etc/apt/apt.conf.d/20auto-upgrades
executable: /bin/bash
warn: no

- name: Configure unattended upgrades
template:
src: 50unattended-upgrades.j2
dest: /etc/apt/apt.conf.d/50unattended-upgrades
owner: root
group: root
mode: '0644'
mode: '0644'
2 changes: 0 additions & 2 deletions roles/install_hacs/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
- name: restart home assistant
shell: |
ha core restart
args:
warn: false
2 changes: 0 additions & 2 deletions roles/preinstall_config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
fi
register: switch_to_cgroup_v1
changed_when: switch_to_cgroup_v1.stdout is search('Switching to cgroup v1')
args:
warn: false

when: firmware_cmdline.stat.exists | bool

Expand Down
9 changes: 3 additions & 6 deletions roles/supervised_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
ping -c 3 -6 version.home-assistant.io
check_mode: false
changed_when: false
args:
warn: false
rescue:
- name: Disable IPv6 to prevent Home Assistant install hang
ansible.builtin.lineinfile:
Expand Down Expand Up @@ -83,7 +81,8 @@
when: resolve_conf_override_result is changed
when: supervised_install_resolve_conf_overrides is defined

- name: Get download url for latest os-agent .deb release
# use shell module so we can parse the output with shell commands
- name: Get download url for latest os-agent .deb release # noqa: command-instead-of-module
shell: |
curl -s https://api.github.com/repos/home-assistant/os-agent/releases/latest \
| grep "browser_download_url.*{{ arch[ansible_architecture]['os_agent'] }}.deb" \
Expand All @@ -92,9 +91,7 @@
register: os_agent_latest_url
failed_when: os_agent_latest_url.stdout is not search('os-agent_.*_linux_.*.deb')
changed_when: false
check_mode: no
args:
warn: false
check_mode: false

- name: Install os-agent
apt:
Expand Down

0 comments on commit 6a1c328

Please sign in to comment.