-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix idempotency of contaienr eestarting
- Loading branch information
1 parent
9cc8267
commit 32e38cf
Showing
13 changed files
with
68 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
--- | ||
- name: restart apache | ||
systemd: | ||
name: apache2 | ||
state: restarted | ||
# - name: restart apache | ||
# systemd: | ||
# name: apache2 | ||
# state: restarted | ||
|
||
- name: Restart the Etherpad container | ||
docker_container: | ||
name: "{{ containers.etherpad }}" | ||
restart: true | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
--- | ||
- name: restart MariaDB | ||
systemd: | ||
daemon_reload: true | ||
name: "mariadb" | ||
state: "restarted" | ||
enabled: true | ||
# - name: restart MariaDB | ||
# systemd: | ||
# daemon_reload: true | ||
# name: "mariadb" | ||
# state: "restarted" | ||
# enabled: true | ||
|
||
- name: Restart the database container | ||
docker_container: | ||
name: "{{ containers.db }}" | ||
restart: true | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
- name: restart nginx | ||
service: | ||
name: nginx | ||
state: restarted | ||
# - name: restart nginx | ||
# service: | ||
# name: nginx | ||
# state: restarted | ||
|
||
- name: "systemd daemon-reload" | ||
systemd: | ||
daemon_reload: true | ||
# - name: "systemd daemon-reload" | ||
# systemd: | ||
# daemon_reload: true | ||
|
||
- name: "restart zabbix-agent" | ||
systemd: | ||
name: "zabbix-agent2.service" | ||
state: "restarted" | ||
# - name: "restart zabbix-agent" | ||
# systemd: | ||
# name: "zabbix-agent2.service" | ||
# state: "restarted" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
--- | ||
- name: enable plsc job | ||
systemd: | ||
name: "plsc.timer" | ||
enabled: true | ||
state: "restarted" | ||
daemon_reload: true | ||
# - name: enable plsc job | ||
# systemd: | ||
# name: "plsc.timer" | ||
# enabled: true | ||
# state: "restarted" | ||
# daemon_reload: true | ||
|
||
- name: "restart zabbix-agent" | ||
systemd: | ||
name: "zabbix-agent2.service" | ||
state: "restarted" | ||
# - name: "restart zabbix-agent" | ||
# systemd: | ||
# name: "zabbix-agent2.service" | ||
# state: "restarted" | ||
|
||
- name: Restart the plsc container | ||
docker_container: | ||
name: "{{ containers.plsc }}" | ||
restart: true | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters