Browse Source

test

master
lefos 3 years ago
parent
commit
adc1dde2b0
  1. 24
      monitorall.yml

24
monitorall.yml

@ -1,5 +1,5 @@
---
- hosts: 192.25.0.3
- hosts: service
remote_user: docker
gather_facts: no
vars:
@ -33,14 +33,14 @@
vars:
packages:
- build-essential
- 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
notify:
- start mongodb
handlers:
- name: start mongodb
service: name=mongod state=started
# - 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
# notify:
# - start mongodb
# handlers:
# - name: start mongodb
# service: name=mongod state=started
Loading…
Cancel
Save