Browse Source

Make sure that sudo is installed

This also splits the package update and installation into two separate
tasks.
remove-logs
Andreas Linz 3 years ago
parent
commit
557ef93339
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      roles/common/tasks/main.yml

+ 7
- 1
roles/common/tasks/main.yml View File

@ -16,7 +16,13 @@
mode: 0600
notify: restart-journald
- name: Update package index
apt: update_cache=yes package=sudo
apt:
update_cache: true
become: true
- name: Install packages
apt:
package:
- sudo
become: true
- name: Check sudo group
become: true

Loading…
Cancel
Save