|
2 | 2 | - hosts: dev_servers |
3 | 3 | gather_facts: yes |
4 | 4 | become: true |
5 | | - # become_method: sudo |
6 | | -# connection: docker |
7 | 5 |
|
8 | 6 | tasks: |
9 | 7 | - name: Install apt-transport-https |
|
37 | 35 | state: latest |
38 | 36 | update_cache: true |
39 | 37 |
|
40 | | - - name: Install git |
| 38 | + - name: Install git - curl - ssh client |
41 | 39 | apt: |
42 | 40 | name: "{{ item }}" |
43 | 41 | state: installed |
44 | 42 | state: "{{ item.state | default('present') }}" |
45 | 43 | with_items: |
46 | 44 | - git |
47 | 45 | - curl |
48 | | - #- systemctl |
| 46 | + - openssh-client |
| 47 | + - net-tools |
| 48 | + - postgresql-client |
| 49 | + |
49 | 50 | - name: Install docker-compose |
50 | 51 | command: sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose |
| 52 | + |
51 | 53 | - name: Create symbolic link for docker-compose |
52 | 54 | command: sudo ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose |
| 55 | + |
53 | 56 | - name: Setting permissions right for docker-compose |
54 | 57 | command: sudo chmod +x /usr/local/bin/docker-compose |
| 58 | + |
55 | 59 | - name: Create dir for project |
56 | 60 | command: mkdir -p /home/ubuntu/tagbase-server/ |
| 61 | + |
57 | 62 | - name: Change ownership |
58 | 63 | command: chown ubuntu:ubuntu -R /home/ubuntu/tagbase-server/ |
59 | | - #- name: Cloning tagbase-server project |
60 | | - # git: |
61 | | - # repo: https://github.com/tagbase/tagbase-server.git |
62 | | - # dest: /root/tagbase-server |
63 | | - # clone: yes |
64 | | - # update: yes |
65 | | - #- name: Checkout specific tagserver branch |
66 | | - # command: chdir=/root/tagbase-server git checkout -b 149_configuration_tool origin/149_configuration_tool |
| 64 | + |
67 | 65 | - name: Setting up tagbase-server env file |
| 66 | + become: false |
68 | 67 | copy: |
69 | 68 | content: | |
70 | 69 | |
|
73 | 72 | POSTGRES_PORT=5432 |
74 | 73 | SLACK_BOT_CHANNEL=tagbase-server |
75 | 74 | SLACK_BOT_TOKEN=XYZXYZ |
76 | | - dest: /home/ubuntu/.env |
77 | | - #- name: Build Tagbase services |
78 | | - # command: chdir=/root/tagbase-server docker-compose build |
79 | | - #- name: Deploy Tagbase services |
80 | | - # command: chdir=/root/tagbase-server docker-compose up -d |
| 75 | + dest: /home/ubuntu/tagbase-server/.env |
0 commit comments