change: make roles more verbose

This commit is contained in:
rcordier 2024-05-22 04:05:56 -04:00
parent 0e566e0181
commit 9544771e52
2 changed files with 29 additions and 1 deletions

View File

@ -2,3 +2,17 @@
- name: This task configure the DB server - name: This task configure the DB server
debug: debug:
msg: The DB server has been configured msg: The DB server has been configured
- name: Dump DB env
become: true
shell: |-
echo "Current hostname: $(hostname -f)"
echo "Current User=$(id -un) (uid:$(id -u))"
echo "Current PATH=$PATH"
register: output
- name: Show DB output
debug:
msg: "{{ output}}"

View File

@ -1,4 +1,18 @@
- name: This task configure the web server - name: This task configure the web server
debug: debug:
msg: The WEB server has been configured msg: The WEB server has been configureds
- name: Dump env
become: true
shell: |-
echo "Current hostname: $(hostname -f)"
echo "Current User=$(id -un) (uid:$(id -u))"
echo "Current PATH=$PATH"
env | sort
register: output
- name: Show output
debug:
msg: "{{ output}}"