Skip to content

Commit

Permalink
Remove unsupported command module "warn" parameter
Browse files Browse the repository at this point in the history
As of ansible-core 2.14.0, the builtin command module no longer
has a "warn" parameter. Using it causes a fatal error that stops
playbook completion.

Signed-off-by: Brian Brookman <[email protected]>
  • Loading branch information
bcbrookman authored and dereknola committed Nov 7, 2023
1 parent 0121d4f commit a22c810
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions roles/k3s/master/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
ansible.builtin.command: systemctl reset-failed k3s-init
failed_when: false
changed_when: false
args:
warn: false # The ansible systemd module does not support reset-failed

- name: Init cluster inside the transient k3s-init service
ansible.builtin.command:
Expand All @@ -19,8 +17,6 @@
--unit=k3s-init \
k3s server {{ server_init_args }}"
creates: "{{ systemd_dir }}/k3s.service"
args:
warn: false # The ansible systemd module does not support transient units

- name: Verification
block:
Expand Down

0 comments on commit a22c810

Please sign in to comment.