disabled cron for ansible and added error handler
This commit is contained in:
@@ -13,22 +13,22 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_distribution == "Archlinux"
|
||||||
|
|
||||||
- name: system setup | cron | schedule automatic ansible provisioning
|
# - name: system setup | cron | schedule automatic ansible provisioning
|
||||||
tags: cron
|
# tags: cron
|
||||||
cron:
|
# cron:
|
||||||
name: "ansible provision"
|
# name: "ansible provision"
|
||||||
user: ansible
|
# user: ansible
|
||||||
hour: "{{ ansible_cron_hour | default('*') }}"
|
# hour: "{{ ansible_cron_hour | default('*') }}"
|
||||||
minute: "{{ ansible_cron_minute | default('*/30') }}"
|
# minute: "{{ ansible_cron_minute | default('*/30') }}"
|
||||||
job: "/usr/local/bin/provision > /dev/null"
|
# job: "/usr/local/bin/provision > /dev/null"
|
||||||
|
|
||||||
- name: system setup | cron | schedule ansible cleanup at boot
|
# - name: system setup | cron | schedule ansible cleanup at boot
|
||||||
tags: cron
|
# tags: cron
|
||||||
cron:
|
# cron:
|
||||||
name: "ansible refresh at boot"
|
# name: "ansible refresh at boot"
|
||||||
user: ansible
|
# user: ansible
|
||||||
special_time: reboot
|
# special_time: reboot
|
||||||
job: "/bin/rm -rf /home/ansible/.ansible"
|
# job: "/bin/rm -rf /home/ansible/.ansible"
|
||||||
|
|
||||||
- name: system setup | cron | Send me a list of upgradeable packages daily
|
- name: system setup | cron | Send me a list of upgradeable packages daily
|
||||||
tags: cron
|
tags: cron
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
- include_tasks: system_setup/prepare_packagemanager.yml
|
- include_tasks: system_setup/prepare_packagemanager.yml
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- debug:
|
|
||||||
msg: "mysql: {{ mysql }}"
|
|
||||||
- include_role: name=database
|
- include_role: name=database
|
||||||
- include_tasks: system_setup/prepare_database.yml
|
- include_tasks: system_setup/prepare_database.yml
|
||||||
- include_role: name=webserver
|
- include_role: name=webserver
|
||||||
@@ -19,3 +17,5 @@
|
|||||||
- include_tasks: system_setup/ruby.yml
|
- include_tasks: system_setup/ruby.yml
|
||||||
- include_tasks: system_setup/mastodon.yml
|
- include_tasks: system_setup/mastodon.yml
|
||||||
- include_tasks: system_setup/letsencrypt.yml
|
- include_tasks: system_setup/letsencrypt.yml
|
||||||
|
rescue:
|
||||||
|
- set_fact: task_failed=true
|
||||||
Reference in New Issue
Block a user