install ansible deps with yum
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3ebc4b92fb
commit
0ec33daa96
@ -3,6 +3,9 @@ mongodb_version: 3.6
|
||||
mongodb_system_user: mongod
|
||||
mongodb_system_group: mongod
|
||||
|
||||
mongodb_packages:
|
||||
- mongodb-org
|
||||
|
||||
mongodb_packages_extra: []
|
||||
|
||||
mongodb_storage_dbpath: /var/lib/mongo
|
||||
|
@ -9,11 +9,17 @@
|
||||
enabled: yes
|
||||
gpgkey: "https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc"
|
||||
|
||||
- name: Install dependencies
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ mongodb_packages_extra }}"
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ mongodb_packages_extra + __mongodb_packages }}"
|
||||
loop: "{{ mongodb_packages + __mongodb_ansible_deps }}"
|
||||
|
||||
- name: Create group '{{ mongodb_system_group }}'
|
||||
group:
|
||||
@ -48,9 +54,3 @@
|
||||
notify: __mongod_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
||||
- name: Install pymongo as ansible dependency
|
||||
pip:
|
||||
name: pymongo
|
||||
state: present
|
||||
extra_args: --user
|
||||
|
@ -1,4 +1,3 @@
|
||||
---
|
||||
__mongodb_packages:
|
||||
- mongodb-org
|
||||
- python2-pip
|
||||
__mongodb_ansible_deps:
|
||||
- python-pymongo
|
||||
|
Loading…
Reference in New Issue
Block a user