Skip to content

Commit

Permalink
[ADD] Restart policty on boot for container
Browse files Browse the repository at this point in the history
  • Loading branch information
wdrdres3qew5ts21 committed Jun 22, 2020
1 parent c2fc845 commit 08ab61c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Ansible-ELK-Stack/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- docker-logrotate
- docker-engine


- name: "Install yum-utils"
yum:
name: yum-utils
Expand Down
2 changes: 2 additions & 0 deletions Ansible-ELK-Stack/roles/elk_ansible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# ตำแหน่งของ cert_dir ที่อยู่ใน "container" แล้ว ว่าไฟล์อยู่ในที่ไหนของ "container"
- cert_dir: "/usr/share/elasticsearch/config/certificates"
docker_container:
restart_policy: always
name: elasticsearch1
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
state: started
Expand Down Expand Up @@ -96,6 +97,7 @@
# ตำแหน่งของ cert_dir ที่อยู่ใน "container" แล้ว ว่าไฟล์อยู่ในที่ไหนของ "container"
- cert_dir: "/usr/share/elasticsearch/config/certificates"
docker_container:
restart_policy: always
image: docker.elastic.co/kibana/kibana:7.7.0
name: kibana
restart: yes
Expand Down

0 comments on commit 08ab61c

Please sign in to comment.