mirror of
https://github.com/geerlingguy/ansible-for-devops.git
synced 2024-05-19 06:50:03 +00:00
Fixes #230: Convert instances of ansible_ssh_user to ansible_user.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
subdomain.example.com
|
||||
|
||||
[letsencrypt:vars]
|
||||
ansible_ssh_user=myuser
|
||||
ansible_user=myuser
|
||||
letsencrypt_email=webmaster@example.com
|
||||
|
||||
@@ -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
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
@@ -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' }}"
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user