Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ansible all -m authorized_key -a "user=root key='{{ lookup('file', '/root/.ssh/id_rsa.pub') }}' path=/root/.ssh/authorized_keys manage_dir=no" --ask-pass -c paramiko
- - name : "Open Mongo on Firewall"
- ufw:
- rule: allow
- port: 27017
- src: "{{ hostvars[item]['ansible_ssh_host'] }}"
- with_items:
- - "{{ groups['analytics'] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement