still modifying
This commit is contained in:
+5
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user