Skip to content

Commit e7067e5

Browse files
committed
Possible solution for connecting via docker-ansible and adding level of information when running ansible
1 parent 8157bef commit e7067e5

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__pycache__
66
db.sqlite3
77
media
8-
8+
sshkeys/
99
# Backup files #
1010
*.bak
1111

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ RUN apt-get update \
99
# Install Ansible, Ansible Core, ncclient, jxmlease, xmltodict e ansible-pylibssh
1010
RUN pip install ansible ansible-core ncclient jxmlease xmltodict ansible-pylibssh
1111
# Install Docker and dependencies
12-
RUN pip install django django-allauth django-compat django-environ Pillow psycopg2-binary
12+
RUN pip install django django-allauth django-compat django-environ Pillow psycopg2-binary djangorestframework
1313
# Copy files
1414
COPY /WebApi /WebApi
15-
15+
COPY /sshkeys /root/.ssh
1616
# Set working directory
1717
WORKDIR /WebApi
1818

ansible.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[defaults]
2+
host_key_checking = False
3+
deprecation_warnings = False

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ django-allauth
99
django-compat
1010
django-environ
1111
Pillow
12-
psycopg2-binary
12+
psycopg2-binary
13+
djangorestframework

0 commit comments

Comments
 (0)