diff --git a/examples/playbook/roles/whoami/tasks/main.yml b/examples/playbook/roles/whoami/tasks/main.yml new file mode 100644 index 00000000..7555946f --- /dev/null +++ b/examples/playbook/roles/whoami/tasks/main.yml @@ -0,0 +1,8 @@ +--- + +- name: "This command should run as the SSH user" + command: whoami + +- name: "This command should run as root" + become: true + command: whoami diff --git a/examples/playbook/whoami.yml b/examples/playbook/whoami.yml new file mode 100644 index 00000000..133941f8 --- /dev/null +++ b/examples/playbook/whoami.yml @@ -0,0 +1,6 @@ +--- + + +- hosts: all + roles: + - whoami