ansible-training-test/playbooks/tasks/switch_root.yml

5 lines
87 B
YAML

- name: Switch to root
become: true
shell: whoami
notify: switch to ansible_user