s/ansible_ssh_/ansible_
authorLorin Hochstein <lhochstein@netflix.com>
Sat, 24 Sep 2016 04:42:52 +0000 (21:42 -0700)
committerLorin Hochstein <lhochstein@netflix.com>
Sat, 24 Sep 2016 05:25:01 +0000 (22:25 -0700)
ch01/playbooks/hosts
ch02/playbooks/hosts
ch03/inventory/vagrant.py
ch04/playbooks/hosts
ch06/playbooks/hosts
ch06/playbooks/mezzanine.yml
ch08/playbooks/roles/mezzanine/vars/main.yml
ch09/playbooks/templates/disable-requiretty.j2
ch10/playbooks/hosts

index 23c16b4..22a5c9f 100644 (file)
@@ -1 +1 @@
-testserver ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222
+testserver ansible_host=127.0.0.1 ansible_port=2222
index 2ba623d..1f1cdb7 100644 (file)
@@ -1,2 +1,2 @@
 [webservers]
-testserver ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222
+testserver ansible_host=127.0.0.1 ansible_port=2222
index 767a6f0..33b3c85 100755 (executable)
@@ -33,10 +33,10 @@ def get_host_details(host):
     config = paramiko.SSHConfig()
     config.parse(p.stdout)
     c = config.lookup(host)
-    return {'ansible_ssh_host': c['hostname'],
-            'ansible_ssh_port': c['port'],
-            'ansible_ssh_user': c['user'],
-            'ansible_ssh_private_key_file': c['identityfile'][0]}
+    return {'ansible_host': c['hostname'],
+            'ansible_port': c['port'],
+            'ansible_user': c['user'],
+            'ansible_private_key_file': c['identityfile'][0]}
 
 
 def main():
index 33a75be..a884145 100644 (file)
@@ -1,7 +1,7 @@
 [vagrant]
-server1 ansible_ssh_host=192.168.4.10 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/ubuntu/virtualbox/private_key
-server2 ansible_ssh_host=192.168.4.11 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/centos/virtualbox/private_key
-server3 ansible_ssh_host=192.168.4.12 ansible_ssh_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/precise/virtualbox/private_key
+server1 ansible_host=192.168.4.10 ansible_user=vagrant ansible_private_key_file=.vagrant/machines/ubuntu/virtualbox/private_key
+server2 ansible_host=192.168.4.11 ansible_user=vagrant ansible_private_key_file=.vagrant/machines/centos/virtualbox/private_key
+server3 ansible_host=192.168.4.12 ansible_user=vagrant ansible_private_key_file=.vagrant/machines/precise/virtualbox/private_key
 
 
 [ubuntu]
index 3386f5e..b3e4f80 100644 (file)
@@ -1 +1 @@
-web ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222
+web ansible_host=127.0.0.1 ansible_port=2222
index cb0bfcb..7d646a0 100644 (file)
@@ -2,7 +2,7 @@
 - name: Deploy mezzanine
   hosts: web
   vars:
-    user: "{{ ansible_ssh_user }}"
+    user: "{{ ansible_user }}"
     proj_name: mezzanine-example
     venv_home: "{{ ansible_env.HOME }}"
     venv_path: "{{ venv_home }}/{{ proj_name }}"
index 77eabea..40d1c79 100644 (file)
@@ -1,6 +1,6 @@
 ---
 # vars file for mezzanine
-mezzanine_user: "{{ ansible_ssh_user }}"
+mezzanine_user: "{{ ansible_user }}"
 mezzanine_venv_home: "{{ ansible_env.HOME }}"
 mezzanine_venv_path: "{{ mezzanine_venv_home }}/{{ mezzanine_proj_name }}"
 mezzanine_repo_url: git@github.com:lorin/mezzanine-example.git
index 9a5cbaf..2e1122f 100644 (file)
@@ -1 +1 @@
-Defaults:{{ ansible_ssh_user }} !requiretty
+Defaults:{{ ansible_user }} !requiretty
index 23c16b4..22a5c9f 100644 (file)
@@ -1 +1 @@
-testserver ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222
+testserver ansible_host=127.0.0.1 ansible_port=2222