- command: find /home/ -name 'prefs.js' 2>/dev/null
register: prefs
- lineinfile:
dest: "{{ item }}"
...
with_items: "{{ prefs.stdout_lines }}"
> $800
> качеству к MacBook air 13
> что-то более технологическое.
Note: To enable this functionality, agent configuration file must have EnableRemoteCommands=1 option.
- local_action: lineinfile dest={{ inventory_file }} regexp='^{{ inventory_hostname }}.*' line='{{ inventory_hostname }} ansible_ssh_port={{ new_port }}' state=present