added test files and README, ready for pull request

This commit is contained in:
d_auras
2023-01-05 11:31:13 +01:00
parent 55a4cf1fd0
commit 8921b4f8dd
3 changed files with 7 additions and 10 deletions
+3
View File
@@ -0,0 +1,3 @@
To test the ansible playbook on localhost run ```ansible-playbook -i test.inventory.ini dev.yaml```.
Point Redis Insights to the Redis database by visiting localhost:8001 in a browser and select "I already have a database" followed by "Connect to a Redis Database".
For host, port and name fill in ```oasst-redis```, ```6379``` and ```redis```.
+2 -10
View File
@@ -12,8 +12,7 @@
- name: Set up Redis
community.docker.docker_container:
name: redis
#name: oasst-redis
name: oasst-redis
image: redis
state: started
restart_policy: always
@@ -31,20 +30,13 @@
- name: Set up Redis Insights
community.docker.docker_container:
name: redis-insights
#name: oasst-redis-insights
name: oasst-redis-insights
image: redislabs/redisinsight:latest
#command: pip install redis-cli python entry.pyc
state: started
restart_policy: always
network_mode: oasst
ports:
- 8001:8001
env:
REDIS_URL: redis://redis:6379
REDIS_HOST: redis
#environment:
#- REDIS_URL=redis://redis:6379
- name: Create postgres containers
community.docker.docker_container:
+2
View File
@@ -0,0 +1,2 @@
[test]
dev ansible_connection=local