added some ansible playbooks for experiments
This commit is contained in:
21
ansible-playbooks/find-on-all.yml
Normal file
21
ansible-playbooks/find-on-all.yml
Normal file
@ -0,0 +1,21 @@
|
||||
- hosts: all
|
||||
remote_user: hyung-hwan
|
||||
tasks:
|
||||
- name: test connection
|
||||
find:
|
||||
paths: /var/log
|
||||
size: '1000000'
|
||||
recurse: yes
|
||||
register: out
|
||||
|
||||
- name: print result
|
||||
debug:
|
||||
msg: "xxx: {{ item.path }}"
|
||||
with_items: "{{ out.files }}"
|
||||
|
||||
|
||||
## - debug: var=item.path
|
||||
## with_items: "{{ out.files }}"
|
||||
|
||||
## - debug: var=out.files
|
||||
|
Reference in New Issue
Block a user