aboutsummaryrefslogblamecommitdiff
path: root/base_apps.yml
blob: 76e2365bd636840a399020d1bf4d43df80ad4068 (plain) (tree)
1
   




































                                                                                     
 






                         
---
- name: Base
  hosts: tamriel
  remote_user: ansible_worker
  become: yes
  tasks:
  - name: docker gpg keys
    apt_key:
      url: https://download.docker.com/linux/debian/gpg
  - name: Ensure apt has https transport
    apt: name=apt-transport-https
  - name: docker debian repository
    apt_repository:
      repo: deb [arch=amd64] https://download.docker.com/linux/debian stretch stable 
      update_cache: true
  - name: Base packages
    apt:
      name: "{{ item }}"
    with_items:
    - tmux
    - htop
    - syncthing
    - docker-ce
    - tig
    - git
    - hugo
    - rsync
    - python-pip
    - mc
  - name: Upgrade all packages
    apt:
      upgrade: full
  - name: Install docker-compose
    pip:
      name: "{{ item }}"
    with_items:
    - docker
    - docker-compose

  - name: Enable services
    systemd:
      enabled: true
      state: started
      name: "{{ item }}"
    with_items:
    - "syncthing@pawel"