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 ed7487c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 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
6 changes: 1 addition & 5 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 @@ -92,9 +90,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 ed7487c

Please sign in to comment.