add deconfigure backup
This commit is contained in:
parent
3b8652a97a
commit
171392bf04
@ -18,6 +18,11 @@
|
|||||||
import_tasks: deconfigure_supervision.yml
|
import_tasks: deconfigure_supervision.yml
|
||||||
tags: [ "deconfigure_supervision" ]
|
tags: [ "deconfigure_supervision" ]
|
||||||
|
|
||||||
|
- name: Deconfigure backup script
|
||||||
|
import_tasks: deconfigure_backup.yml
|
||||||
|
tags: [ "deconfigure_backup" ]
|
||||||
|
|
||||||
|
|
||||||
- name: Remove sentinel directory
|
- name: Remove sentinel directory
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
|
31
roles/deploy-web/tasks/deconfigure_backup.yml
Normal file
31
roles/deploy-web/tasks/deconfigure_backup.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# tasks file for stats script
|
||||||
|
|
||||||
|
- name: "Create log for backup script"
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- "/var/log/scw-log"
|
||||||
|
- "/root/log"
|
||||||
|
- "/opt/scw-backup.sh"
|
||||||
|
- "/opt/scw-restore.sh"
|
||||||
|
- "/root/.scw-configrc"
|
||||||
|
vars:
|
||||||
|
ansible_become: yes
|
||||||
|
ansible_become_method: sudo
|
||||||
|
ansible_become_password: "{{ sudo_password }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#- name: Crontab blacklist
|
||||||
|
# ansible.builtin.cron:
|
||||||
|
# name: "blacklist script"
|
||||||
|
# cron_file: "blacklist_cron"
|
||||||
|
# minute: "*/5"
|
||||||
|
# job: "bash /usr/local/bin/sentinel/blacklist.sh"
|
||||||
|
# user: root
|
||||||
|
#
|
||||||
|
# vars:
|
||||||
|
# ansible_become: yes
|
||||||
|
# ansible_become_method: sudo
|
||||||
|
# ansible_become_password: "{{ sudo_password }}"
|
Loading…
x
Reference in New Issue
Block a user