You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

3 years ago
---
3 years ago
- hosts: service
3 years ago
remote_user: docker
gather_facts: no
vars:
user: "docker"
3 years ago
3 years ago
tasks:
# ------------------------
# apt update
# -------------------------
3 years ago
# - name: apt update packages
# become: true
# apt:
# update_cache: 'yes'
# force_apt_get: 'yes'
# upgrade: 'dist'
# cache_valid_time: 3600
# install_recommends: true
# autoremove: true
3 years ago
# ------------------------
# apt install packages
# -------------------------
3 years ago
# - name: apt install packages
# become: true
# apt:
# update_cache: 'yes'
# force_apt_get: 'yes'
# install_recommends: true
# autoremove: true
# name: "{{ packages }}"
# vars:
# packages:
# - build-essential
# - git
# - flex
# - bison
# - traceroute
# - curl
# - lynx
3 years ago
# - ruby
3 years ago
- name: Import the public key used by the package management system
apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=7F0CEB10 state=present
- name: Add MongoDB repository
apt_repository: repo='deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' state=present
- name: install mongodb
apt: pkg=mongodb-org state=latest update_cache=yes
3 years ago
# notify:
# - start mongodb