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_user: mongod
|
||||||
mongodb_system_group: mongod
|
mongodb_system_group: mongod
|
||||||
|
|
||||||
|
mongodb_packages:
|
||||||
|
- mongodb-org
|
||||||
|
|
||||||
mongodb_packages_extra: []
|
mongodb_packages_extra: []
|
||||||
|
|
||||||
mongodb_storage_dbpath: /var/lib/mongo
|
mongodb_storage_dbpath: /var/lib/mongo
|
||||||
|
@ -9,11 +9,17 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
gpgkey: "https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc"
|
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
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ mongodb_packages_extra + __mongodb_packages }}"
|
loop: "{{ mongodb_packages + __mongodb_ansible_deps }}"
|
||||||
|
|
||||||
- name: Create group '{{ mongodb_system_group }}'
|
- name: Create group '{{ mongodb_system_group }}'
|
||||||
group:
|
group:
|
||||||
@ -48,9 +54,3 @@
|
|||||||
notify: __mongod_restart
|
notify: __mongod_restart
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
- name: Install pymongo as ansible dependency
|
|
||||||
pip:
|
|
||||||
name: pymongo
|
|
||||||
state: present
|
|
||||||
extra_args: --user
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
__mongodb_packages:
|
__mongodb_ansible_deps:
|
||||||
- mongodb-org
|
- python-pymongo
|
||||||
- python2-pip
|
|
||||||
|
Loading…
Reference in New Issue
Block a user