CentOS 7 docker file
This commit is contained in:
parent
84ecb5707e
commit
9bb46f2f20
|
@ -1,4 +1,5 @@
|
|||
tests/*.retry
|
||||
*~
|
||||
\#*\#
|
||||
.\#*
|
||||
/.python-version
|
||||
/.python-version
|
||||
|
|
|
@ -32,16 +32,6 @@
|
|||
state: latest
|
||||
when: not mongodb_pymongo_from_pip
|
||||
|
||||
# - name: Install python-devel
|
||||
# yum:
|
||||
# name: "python-devel"
|
||||
# when: mongodb_pymongo_from_pip
|
||||
|
||||
# - name: Install PIP
|
||||
# yum:
|
||||
# name: "python-pip"
|
||||
# when: mongodb_pymongo_from_pip
|
||||
|
||||
- name: Install PIP
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
when: ( mongodb_security_authorization == 'enabled'
|
||||
and (not mongodb_replication_replset
|
||||
or mongodb_replication_replset == '') )
|
||||
no_log: true
|
||||
# no_log: true
|
||||
tags: [mongodb]
|
||||
|
||||
- name: Include authorization configuration
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
FROM centos:7
|
||||
|
||||
# This is needed so that ansible managed to read "ansible_default_ipv4"
|
||||
RUN yum install iproute
|
||||
|
||||
# we can has SSH
|
||||
EXPOSE 22
|
||||
|
||||
# pepare for takeoff
|
||||
CMD ["/usr/sbin/init"]
|
|
@ -20,6 +20,10 @@
|
|||
- hosts: "{{ target }}"
|
||||
become: no
|
||||
gather_facts: yes
|
||||
pre_tasks:
|
||||
- name: Show hostvars
|
||||
debug:
|
||||
var: "hostvars[inventory_hostname]['ansible_default_ipv4']"
|
||||
roles:
|
||||
- role: greendayonfire.mongodb
|
||||
when: "'mongo_master' in group_names"
|
||||
|
|
Loading…
Reference in New Issue