3
0
forked from jakub/ansible

Refactor portainer.yml and miniplay: remove hardcoded passwords for security, update comments for clarity, and enhance task descriptions.

This commit is contained in:
fencl
2025-10-03 15:43:43 +02:00
parent 9b111803c6
commit 060065e040
2 changed files with 7 additions and 12 deletions

View File

@@ -1,10 +1,11 @@
---
- name: Sanity check SSH + sudo on portainer
- name: Sanity: pure SSH and then sudo
hosts: nextcloud_host
gather_facts: false
tasks:
- name: Who am I as SSH user?
- name: Who am I as SSH user? (no sudo)
become: false
ansible.builtin.command: whoami
changed_when: false
register: who
@@ -12,7 +13,7 @@
- ansible.builtin.debug:
msg: "SSH user is: {{ who.stdout }}"
- name: Who am I with sudo?
- name: Who am I with sudo? (explicit become)
become: true
become_method: sudo
ansible.builtin.command: whoami