Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
refactor(ansible): better docker prereq check
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMtnez committed Jan 13, 2024
1 parent 17d398a commit 0430ef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ansible/playbooks/k3s-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
ansible.builtin.lineinfile:
path: /boot/dietpi/.installed
line: "aSOFTWARE_INSTALL_STATE[162]=2"
state: present
state: absent
check_mode: true
changed_when: false
register: prereq_docker

- name: Install containerd (docker) # noqa no-handler no-changed-when
ansible.builtin.command:
cmd: /boot/dietpi/dietpi-software install 162
when: prereq_docker is changed
when: not prereq_docker.found

- name: Setup nfs
ansible.builtin.package:
Expand Down

0 comments on commit 0430ef6

Please sign in to comment.