From d3291000d754d12eb6c6e36c14153951f5866afd Mon Sep 17 00:00:00 2001 From: lefos Date: Wed, 27 Oct 2021 02:10:40 +0300 Subject: [PATCH] asd --- monitorall.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/monitorall.yml b/monitorall.yml index 26e2aef..f04db0c 100644 --- a/monitorall.yml +++ b/monitorall.yml @@ -1,5 +1,5 @@ -- -- hosts: service +- hosts: 172.29.0.3 remote_user: docker gather_facts: no vars: @@ -33,11 +33,14 @@ vars: packages: - build-essential - - git - - flex - - bison - - traceroute - - curl - - lynx - - ruby - - ruby-dev \ No newline at end of file + - 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 \ No newline at end of file