Advertisement
Typhoon

Ansible Hints

Jun 24th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. 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
  2.  
  3. - name : "Open Mongo on Firewall"
  4.   ufw:
  5.     rule: allow
  6.     port: 27017
  7.     src: "{{ hostvars[item]['ansible_ssh_host'] }}"
  8.   with_items:
  9.      - "{{ groups['analytics'] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement