Commit fd640fcb72d8f62bfb4abf4bdb31e7f87a0e1cf8

Authored by Ricardo Gon├žalves
1 parent 475adff3e3
Exists in master

changes

Showing 2 changed files with 5 additions and 9 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   -{{webserver1}}:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
22   -{{webserver2}}:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  21 +{{webserver1}}:22
  22 +{{webserver2}}:22
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   -{{db_server}}:22 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  32 +{{db_server}}:22
33 33  
34 34 # Here's another example of host ranges, this time there are no
35 35 # leading 0s:
... ... @@ -37,7 +37,7 @@
37 37 #db-[99:101]-node.example.com
38 38  
39 39 [proxyserver]
40   -{{proxyserv}}:30023 ansible_ssh_user=ubuntu ansible_python_interpreter={{path_to_python}}
  40 +{{proxyserv}}:30023
41 41  
42 42 [jenkinserver]
43 43 193.136.46.156:30022 ansible_ssh_user=ubuntu
... ...
playbook.yml
... ... @@ -10,13 +10,9 @@
10 10 roles:
11 11 - docker-git-pip
12 12 - webserver
13   - vars_files:
14   - - vars/vars.yaml
15 13  
16 14 - hosts: dbservers
17 15 become: true
18 16 roles:
19 17 - docker-git-pip
20   - - dbserver
21   - vars_files:
22   - - vars/vars.yaml
23 18 \ No newline at end of file
  19 + - dbserver
24 20 \ No newline at end of file
... ...