Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(syntax): remove deprecated warn arg from shell tasks #59

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading