test jenkinsfile update for windows 1
This commit is contained in:
15
roles/display_hostname/tasks/main.yaml
Normal file
15
roles/display_hostname/tasks/main.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Show some information
|
||||
become: true
|
||||
ansible.windows.win_command: |
|
||||
hostname
|
||||
whoami
|
||||
gpresult /v | find "DC=cosmos"
|
||||
|
||||
|
||||
|
||||
...
|
||||
19
roles/show_user_vars/tasks/main.yaml
Normal file
19
roles/show_user_vars/tasks/main.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
|
||||
- name: show user vars
|
||||
debug:
|
||||
msg:
|
||||
- "User email:"
|
||||
- "{{ jenkins_user}}"
|
||||
- "Jenkins Group:"
|
||||
- "{{ jenkins_group}}"
|
||||
- "SERVER_SUBNET_GROUP:"
|
||||
- "{{ SERVER_SUBNET_GROUP }}"
|
||||
- "subnet_group_check:"
|
||||
- "{{ subnet_group_check }}"
|
||||
- "Host IP:"
|
||||
- "{{ ansible_ssh_host }}"
|
||||
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user