CentOS 7 docker file

This commit is contained in:
jsaliba 2017-09-14 09:47:27 +02:00
parent 84ecb5707e
commit 9bb46f2f20
5 changed files with 17 additions and 12 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
tests/*.retry
*~
\#*\#
.\#*

View File

@ -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 }}"

View File

@ -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

View File

@ -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"]

View File

@ -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"