still modifying

This commit is contained in:
2025-05-23 08:01:15 -04:00
parent d03dec9419
commit 4a000055a4
+5 -6
View File
@@ -1,12 +1,11 @@
---
- hosts: debianhosts
tasks:
- name: change working directo
become: yes
become_method: sudo
command: pwd
args:
chdir: /tmp
- name: change working directory
ansible.builtin.command:
cmd: pwd
args:
chdir: /tmp
register: exec_result
- debug: var=exec_result.stdout_lines