Skip to content

Commit

Permalink
feat: Add ansible script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinush Chathurya committed Jul 22, 2022
1 parent 2414a31 commit fce7d73
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ansible.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
---
- name: Run the test playbook
gather_facts: false
hosts: localhost
tasks:
- name: Get the username running this playbook
become: false
local_action: command whoami
register: username_on_the_host

- name: Display the User name
ansible.builtin.debug:
msg: "Hello User {{ username_on_the_host.stdout }} from Jenkins and Ansible!!"

0 comments on commit fce7d73

Please sign in to comment.