Commit aec39ba7c02aef3233fd2de0d3351fc23215d16e

Authored by Ricardo Gonçalves
1 parent 3082c1fde7
Exists in master

changes

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
22   -10.10.10.47
  21 +10.10.10.57 ansible_python_interpreter: {{path_to_python}}
  22 +10.10.10.47 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
  32 +10.10.10.74 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:
... ... @@ -37,7 +37,7 @@
37 37 #db-[99:101]-node.example.com
38 38  
39 39 [proxyserver]
40   -10.10.10.33
  40 +10.10.10.33:22 ansible_ssh_user=ubuntu ansible_python_interpreter: {{path_to_python}}
41 41  
42 42 [jenkinserver]
43 43 193.136.46.156:30022 ansible_ssh_user=ubuntu
... ...
roles/proxyserver/tasks/main.yml
1   -- name: Installing Git
  1 +- name: Installing Git and pip
2 2 apt:
3 3 update_cache: yes
4   - name: git
  4 + name: ['git', 'pip']
5 5 state: present
6 6  
7 7 - name: Get Dockerfiles from Git to {{proxy_dir}}
... ...
vars/vars.yaml
... ... @@ -10,6 +10,8 @@ proxy_dir: /opt/proxyserver/
10 10 webs_dir: /opt/webserver/
11 11 db_dir: /opt/dbserver/
12 12  
  13 +path_to_python: /usr/bin/python3.6
  14 +
13 15 #portos para a aplicação
14 16 proxy_port: 8002
15 17 webser_port: 8090
... ...