Commit 2fc61ce35f22c73547080926d17f88b34bccd606

Authored by Ricardo Gon├žalves
1 parent 5ea64c392e
Exists in master

changes

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
hosts
... ... @@ -18,8 +18,8 @@
18 18 # Ex 2: A collection of hosts belonging to the 'webservers' group
19 19  
20 20 [webservers]
21   -10.10.10.57 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
22   -10.10.10.47 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  21 +10.10.10.57:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  22 +10.10.10.47:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
23 23  
24 24 # If you have multiple hosts following a pattern you can specify
25 25 # them like this:
... ... @@ -29,7 +29,7 @@
29 29 # Ex 3: A collection of database servers in the 'dbservers' group
30 30  
31 31 [dbservers]
32   -10.10.10.74 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  32 +10.10.10.74:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
33 33  
34 34 # Here's another example of host ranges, this time there are no
35 35 # leading 0s:
... ...
playbook.yml
... ... @@ -11,7 +11,7 @@
11 11 become: true
12 12 roles:
13 13 - docker-git-pip
14   - - webservers
  14 + - webserver
15 15 vars_files:
16 16 - vars/vars.yaml
17 17  
... ...