Select Page

Ansible – find IP addresses of the instance

Based on: https://stackoverflow.com/questions/39819378/ansible-get-current-target-hosts-ip-address - name: test playbook hosts: newinstance become: yes become_method: sudo gather_facts: yes tasks: - debug: msg="{{ansible_all_ipv4_addresses}}" - debug:...

Download crontabs for all users (Ubuntu version)

If you have Ubuntu only environment you can easily download all crontabs for all users from machines you need using this playbook. Just create folder “crontabs” in directory where you will run playbook or modify path in synchronize.dest (Made 2016/03 for...