OMZ installation and sudo on Alpine #36

Merged
max merged 2 commits from issue-16-omz-installation into dev 2026-09-16 17:30:46 +04:00
Showing only changes of commit 74f567c8eb - Show all commits
+10 -1
View File
@@ -21,13 +21,22 @@
become: true
# The same commands for Alpine
- name: Update and install packages on Alpine
- name: Install sudo on Alpine
when: (ansible_facts['distribution'] == "Alpine")
community.general.apk:
name: sudo
update_cache: true
remote_user: ansible
- name: Enable sudo for root and human_admin_user
when: (ansible_facts['distribution'] == "Alpine")
ansible.builtin.copy:
dest: /etc/sudoers.d/80-ansible-created-users
content: |
root ALL=(ALL) ALL:ALL
{{ human_admin_user }} ALL=(ALL) ALL:ALL
remote_user: ansible
## Creating and setting up the ansible user
## First, create sshusers group to grant ssh access