Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsbwilliams committed Apr 28, 2021
2 parents 14bc5f2 + ef8d3a1 commit 1db9c87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
run: pip3 install yamllint ansible-lint ansible

- name: Run yamllint.
run: yamllint .
Expand Down
2 changes: 1 addition & 1 deletion roles/k3s/master/tasks/main.yml
Expand Up @@ -7,7 +7,7 @@
dest: "{{ systemd_dir }}/k3s.service"
owner: root
group: root
mode: 0755
mode: 0644

- name: Enable and check K3s service
systemd:
Expand Down
4 changes: 2 additions & 2 deletions roles/reset/tasks/main.yml
Expand Up @@ -30,12 +30,12 @@
name: "{{ item }}"
state: absent
with_items:
- /usr/local/bin/k3s
- "{{ systemd_dir }}/k3s.service"
- "{{ systemd_dir }}/k3s-node.service"
- /etc/rancher/k3s
- /var/lib/rancher/k3s
- /var/lib/kubelet
- /usr/local/bin/k3s
- /var/lib/rancher/k3s

- name: daemon_reload
systemd:
Expand Down
3 changes: 2 additions & 1 deletion roles/reset/tasks/umount_with_children.yml
Expand Up @@ -6,10 +6,11 @@
executable: /bin/bash
failed_when: false
changed_when: get_mounted_filesystems.stdout | length > 0
check_mode: false

- name: Umount filesystem
mount:
path: "{{ item }}"
state: unmounted
with_items:
"{{ get_mounted_filesystems.stdout_lines }}"
"{{ get_mounted_filesystems.stdout_lines | reverse | list }}"

0 comments on commit 1db9c87

Please sign in to comment.