Fixes #230: Convert instances of ansible_ssh_user to ansible_user.

This commit is contained in:
Jeff Geerling
2020-05-12 23:11:40 -05:00
parent 95b557f0e6
commit 284d7a4e14
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ balancer
app
[deployments:vars]
ansible_ssh_user=vagrant
ansible_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
+1 -1
View File
@@ -5,5 +5,5 @@
192.168.3.5
[nodejs-api:vars]
ansible_ssh_user=vagrant
ansible_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
+1 -1
View File
@@ -2,5 +2,5 @@
192.168.33.7
[rails:vars]
ansible_ssh_user=vagrant
ansible_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
+1 -1
View File
@@ -17,7 +17,7 @@ function example_inventory() {
'group' => [
'hosts' => ['192.168.28.71', '192.168.28.72'],
'vars' => [
'ansible_ssh_user' => 'vagrant',
'ansible_user' => 'vagrant',
'ansible_ssh_private_key_file' => '~/.vagrant.d/insecure_private_key',
'ansible_python_interpreter' => '/usr/bin/python3',
'example_variable' => 'value',
+1 -1
View File
@@ -38,7 +38,7 @@ class ExampleInventory(object):
'group': {
'hosts': ['192.168.28.71', '192.168.28.72'],
'vars': {
'ansible_ssh_user': 'vagrant',
'ansible_user': 'vagrant',
'ansible_ssh_private_key_file':
'~/.vagrant.d/insecure_private_key',
'ansible_python_interpreter':
+1 -1
View File
@@ -2,5 +2,5 @@
subdomain.example.com
[letsencrypt:vars]
ansible_ssh_user=myuser
ansible_user=myuser
letsencrypt_email=webmaster@example.com
+1 -1
View File
@@ -10,5 +10,5 @@ k8s-master
k8s-nodes
[k8s:vars]
ansible_ssh_user=vagrant
ansible_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
+1 -1
View File
@@ -71,7 +71,7 @@ Vagrant.configure("2") do |config|
ansible.inventory_path = "inventories/vagrant/inventory"
ansible.limit = "all"
ansible.extra_vars = {
ansible_ssh_user: 'vagrant',
ansible_user: 'vagrant',
ansible_ssh_private_key_file: "~/.vagrant.d/insecure_private_key"
}
end
+1 -1
View File
@@ -96,7 +96,7 @@
name: "{{ item.1.tagged_instances.0.public_ip }}"
groups: "aws,{{ item.1.item.group }},{{ item.1.item.name }}"
# You can dynamically add inventory variables per-host.
ansible_ssh_user: ec2-user
ansible_user: ec2-user
host_key_checking: false
mysql_replication_role: >
{{ 'master' if (item.1.item.name == 'a4d.lamp.db.1')
@@ -33,7 +33,7 @@
name: "{{ item.1.droplet.ip_address }}"
groups: "do,{{ droplets[item.0].group }},{{ item.1.droplet.name }}"
# You can dynamically add inventory variables per-host.
ansible_ssh_user: root
ansible_user: root
mysql_replication_role: >
"{{ 'master' if (item.1.droplet.name == 'a4d.lamp.db.1')
else 'slave' }}"
+1 -1
View File
@@ -14,6 +14,6 @@ db
# Variables that will be applied to all servers
[multi:vars]
ansible_ssh_user=vagrant
ansible_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
ansible_ssh_common_args='-o StrictHostKeyChecking=no'