playbook.yml 1.32 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
---
- hosts: all
  become: yes
  gather_facts: yes
  vars:
    ansible_user: root
    commit: dev
    pip_install_packages:
      - name: docker
  
  pre_tasks:
    - name: "Install required ansible dependencies"
      become: yes
      package:
        name: libselinux-python
        state: present

    - name: "Install git"
      become: yes
      package:
        name: git
        state: present

    - name: "Install wget"
      become: yes
      package:
        name: wget
        state: present

    - name: "Install tmux"
      become: yes
      package:
        name: tmux
        state: present

    - name: "Install nano"
      become: yes
      package:
        name: nano
        state: present

    - name: "Install htop"
      become: yes
      package:
        name: htop
        state: present
    
    - name: "Install nodejs"
      become: yes
      package:
        name: nodejs
        state: present
    

  roles:
    - geerlingguy.pip
    - geerlingguy.docker
  
  tasks:

    - name: "copy this repo"
      git:
        repo: "https://gitlab.utc.fr/rex-dri/open-tiler.git"
        dest: /usr/src/open-tiler
        force: yes
        version: "{{ commit }}"

    - name: "copy openmaptiles repo"
      git:
        repo: "https://github.com/openmaptiles/openmaptiles.git"
        dest: /usr/src/openmaptiles
        force: yes