Skip to content

Commit 9bb46f2

Browse files
committed
CentOS 7 docker file
1 parent 84ecb57 commit 9bb46f2

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
tests/*.retry
12
*~
23
\#*\#
34
.\#*
4-
/.python-version
5+
/.python-version

tasks/install.redhat.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@
3232
state: latest
3333
when: not mongodb_pymongo_from_pip
3434

35-
# - name: Install python-devel
36-
# yum:
37-
# name: "python-devel"
38-
# when: mongodb_pymongo_from_pip
39-
40-
# - name: Install PIP
41-
# yum:
42-
# name: "python-pip"
43-
# when: mongodb_pymongo_from_pip
44-
4535
- name: Install PIP
4636
yum:
4737
name: "{{ item }}"

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
when: ( mongodb_security_authorization == 'enabled'
4040
and (not mongodb_replication_replset
4141
or mongodb_replication_replset == '') )
42-
no_log: true
42+
# no_log: true
4343
tags: [mongodb]
4444

4545
- name: Include authorization configuration

tests/Dockerfile.centos_7-builded

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM centos:7
2+
3+
# This is needed so that ansible managed to read "ansible_default_ipv4"
4+
RUN yum install iproute
5+
6+
# we can has SSH
7+
EXPOSE 22
8+
9+
# pepare for takeoff
10+
CMD ["/usr/sbin/init"]

tests/site.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
- hosts: "{{ target }}"
2121
become: no
2222
gather_facts: yes
23+
pre_tasks:
24+
- name: Show hostvars
25+
debug:
26+
var: "hostvars[inventory_hostname]['ansible_default_ipv4']"
2327
roles:
2428
- role: greendayonfire.mongodb
2529
when: "'mongo_master' in group_names"

0 commit comments

Comments
 (0)