mirror of
https://forge.chapril.org/tykayn/workflow
synced 2025-06-20 01:44:43 +02:00
add backup strategy
This commit is contained in:
parent
1fb5c50757
commit
ed0166db29
16 changed files with 374 additions and 9 deletions
23
automatisation/ansible/riseup_checks.yml
Normal file
23
automatisation/ansible/riseup_checks.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
- name: vérifier les services de riseup
|
||||
hosts: localhost
|
||||
become: true
|
||||
become_user: root
|
||||
vars:
|
||||
server_name: localhost
|
||||
tasks:
|
||||
- name: Make sure there is no 'apache2'
|
||||
systemd:
|
||||
name: apache2
|
||||
state: stopped
|
||||
enabled: no
|
||||
register: result_apache
|
||||
|
||||
- name: Make sure 'nginx' is started
|
||||
systemd:
|
||||
name: nginx
|
||||
state: started
|
||||
enabled: yes
|
||||
register: result_nginx
|
||||
- name: Show result
|
||||
debug:
|
||||
msg: "{{ result_nginx }}"
|
Loading…
Add table
Add a link
Reference in a new issue